2018-11-04 21:07:06 +00:00
|
|
|
[colours]
|
2022-02-21 20:44:17 +00:00
|
|
|
background = #0000
|
2018-11-04 21:07:06 +00:00
|
|
|
text = #eceff1
|
|
|
|
icon = #147a82
|
2019-10-11 23:06:07 +00:00
|
|
|
warning = #ffcb00
|
2018-11-04 21:07:06 +00:00
|
|
|
critical = #bd2c40
|
2019-10-11 23:06:07 +00:00
|
|
|
urgent = #e53935
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
[settings]
|
|
|
|
format-foreground = ${colours.text}
|
|
|
|
format-background = ${colours.background}
|
|
|
|
format-spacing = 0
|
2021-12-03 09:49:46 +00:00
|
|
|
format-margin = 3
|
2018-11-04 21:07:06 +00:00
|
|
|
format-offset = 0
|
|
|
|
|
2019-10-11 23:06:07 +00:00
|
|
|
screenchange-reload = true
|
|
|
|
|
2018-11-04 21:07:06 +00:00
|
|
|
[bar/i3bar]
|
|
|
|
dpi = ${xrdb:Xft.dpi:96}
|
|
|
|
fixed-center = false
|
|
|
|
enable-ipc = true
|
|
|
|
|
|
|
|
width = 100%
|
2019-10-11 23:06:07 +00:00
|
|
|
height = 16pt
|
2018-11-04 21:07:06 +00:00
|
|
|
bottom = true
|
|
|
|
radius = 0
|
|
|
|
|
2020-08-19 22:00:59 +00:00
|
|
|
font-0 = sans:pixelsize=9;2pt
|
2021-11-30 22:12:04 +00:00
|
|
|
font-1 = FontAwesome6ProLight:pixelsize=10;2pt
|
2019-10-11 23:06:07 +00:00
|
|
|
|
2018-11-04 21:07:06 +00:00
|
|
|
foreground = ${colours.text}
|
|
|
|
background = ${colours.background}
|
|
|
|
|
2019-10-11 23:06:07 +00:00
|
|
|
padding-left = 0
|
|
|
|
padding-right = 2pt
|
|
|
|
|
|
|
|
border-size = 0
|
|
|
|
border-left-size = 16pt
|
|
|
|
border-right-size = 16pt
|
2021-12-03 09:49:46 +00:00
|
|
|
border-bottom-size = 10pt
|
2019-10-11 23:06:07 +00:00
|
|
|
|
2018-11-04 21:07:06 +00:00
|
|
|
line-size = 0
|
|
|
|
line-colour = #f00
|
|
|
|
|
|
|
|
modules-left = i3
|
|
|
|
modules-center =
|
2023-03-29 12:32:50 +00:00
|
|
|
modules-right = volume updates weather wifi ethernet memory cpu cputemp backlight battery date
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
tray-position = right
|
|
|
|
tray-detached = false
|
2019-10-11 23:06:07 +00:00
|
|
|
tray-background = ${colours.background}
|
|
|
|
#tray-offset-x = -20
|
|
|
|
#tray-offset-y = 0
|
2022-02-21 20:44:17 +00:00
|
|
|
tray-maxsize = 16pt
|
2019-10-11 23:06:07 +00:00
|
|
|
tray-padding = 8pt
|
2018-11-04 21:07:06 +00:00
|
|
|
tray-scale = 1.0
|
|
|
|
|
|
|
|
cursor-click = pointer
|
|
|
|
cursor-scroll = ns-resize
|
|
|
|
|
|
|
|
|
|
|
|
[module/updates]
|
|
|
|
type = custom/script
|
|
|
|
exec = $XDG_CONFIG_HOME/polybar/update.sh
|
|
|
|
tail = true
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
2020-03-22 12:35:49 +00:00
|
|
|
click-left = systemd-run --user --no-block -- i3-sensible-terminal --class floating-term -e sh -c "yay; kill -USR1 %pid%; sleep 1"
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
[module/weather]
|
|
|
|
type = custom/script
|
|
|
|
exec = $XDG_CONFIG_HOME/polybar/weather.sh
|
|
|
|
interval = 120
|
2020-03-22 11:10:14 +00:00
|
|
|
click-left = systemd-run --user --no-block -- i3-sensible-terminal --class floating-term -d 125 40 --hold -e sh -c "curl wttr.in"
|
2018-11-04 21:07:06 +00:00
|
|
|
|
2020-02-23 23:11:34 +00:00
|
|
|
[module/gateway]
|
|
|
|
type = custom/script
|
2020-03-22 09:54:42 +00:00
|
|
|
exec = for v in 4 6; do ip -$v r show default | xargs -rL1 sh -c 'fping --retry=1 --quiet --iface "$4" "$2"'; done && echo || echo '%{F#f41f1c}%{F-}'
|
2020-02-23 23:11:34 +00:00
|
|
|
interval = 2
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
|
2018-11-04 21:07:06 +00:00
|
|
|
[module/xkeyboard]
|
|
|
|
type = internal/xkeyboard
|
|
|
|
|
|
|
|
format = <label-layout> <label-indicator>
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
format-prefix-underline = ${colours.background}
|
|
|
|
|
|
|
|
label-layout = %name%
|
|
|
|
label-indicator = %name%
|
|
|
|
|
|
|
|
|
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
index-sort = true
|
|
|
|
wrapping-scroll = false
|
|
|
|
|
|
|
|
; Only show workspaces on the same output as the bar
|
|
|
|
; pin-workspaces = true
|
|
|
|
|
|
|
|
label-mode-padding = 2
|
|
|
|
label-mode-foreground = ${colours.text}
|
|
|
|
label-mode-background = ${colours.background}
|
|
|
|
|
|
|
|
; focused = Active workspace on focused monitor
|
|
|
|
label-focused = %index%
|
|
|
|
label-focused-padding = ${self.label-mode-padding}
|
|
|
|
label-focused-foreground = ${colours.text}
|
|
|
|
label-focused-background = ${colours.background}
|
|
|
|
label-focused-underline = ${colours.background}
|
|
|
|
|
|
|
|
; unfocused = Inactive workspace on any monitor
|
|
|
|
label-unfocused = ${self.label-focused}
|
|
|
|
label-unfocused-padding = ${self.label-focused-padding}
|
|
|
|
label-unfocused-foreground= ${colours.icon}
|
|
|
|
label-unfocused-underline = ${self.label-focused-underline}
|
|
|
|
|
|
|
|
; visible = Active workspace on unfocused monitor
|
|
|
|
label-visible = ${self.label-focused}
|
|
|
|
label-visible-foreground= ${colours.icon}
|
|
|
|
label-visible-padding = ${self.label-focused-padding}
|
|
|
|
label-visible-background = ${self.label-focused-background}
|
|
|
|
label-visible-underline = ${self.label-focused-underline}
|
|
|
|
|
|
|
|
; urgent = Workspace with urgency hint set
|
|
|
|
label-urgent = ${self.label-focused}
|
2019-10-11 23:06:07 +00:00
|
|
|
label-urgent-foreground = ${colours.urgent}
|
2018-11-04 21:07:06 +00:00
|
|
|
label-urgent-padding = ${self.label-focused-padding}
|
|
|
|
|
|
|
|
|
2023-03-29 12:32:50 +00:00
|
|
|
[module/backlight]
|
|
|
|
type = internal/backlight
|
|
|
|
card = intel_backlight
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
label = %percentage%
|
|
|
|
format = <label>
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
|
|
|
interval = 2
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
format-underline = ${colours.background}
|
|
|
|
label = %percentage%%
|
|
|
|
|
|
|
|
|
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
|
|
|
interval = 2
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
label = %percentage_used%%
|
|
|
|
|
|
|
|
|
2023-03-29 12:32:50 +00:00
|
|
|
[module/wifi]
|
2018-11-04 21:07:06 +00:00
|
|
|
type = internal/network
|
2023-03-29 12:32:50 +00:00
|
|
|
interface-type = wireless
|
2018-11-04 21:07:06 +00:00
|
|
|
interval = 3.0
|
|
|
|
|
|
|
|
format-connected = <ramp-signal> <label-connected>
|
|
|
|
format-connected-underline = ${colours.background}
|
|
|
|
label-connected = %essid%
|
|
|
|
|
|
|
|
format-disconnected =
|
|
|
|
;format-disconnected = <label-disconnected>
|
|
|
|
;format-disconnected-underline = ${self.format-connected-underline}
|
|
|
|
;label-disconnected = %ifname% disconnected
|
|
|
|
;label-disconnected-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
ramp-signal-0 =
|
|
|
|
ramp-signal-1 =
|
|
|
|
ramp-signal-2 =
|
|
|
|
ramp-signal-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
|
2023-03-29 12:32:50 +00:00
|
|
|
[module/ethernet]
|
2018-11-04 21:07:06 +00:00
|
|
|
type = internal/network
|
2023-03-29 12:32:50 +00:00
|
|
|
interface-type = wired
|
2022-02-21 20:44:17 +00:00
|
|
|
interval = 10.0
|
2018-11-04 21:07:06 +00:00
|
|
|
|
2022-02-21 20:44:17 +00:00
|
|
|
label-connected = %local_ip% & %local_ip6%
|
2018-11-04 21:07:06 +00:00
|
|
|
format-connected-prefix = " "
|
|
|
|
format-connected-prefix-foreground = ${colours.icon}
|
|
|
|
format-connected-underline = ${colours.background}
|
|
|
|
|
|
|
|
;format-disconnected = RIP
|
|
|
|
;format-disconnected = <label-disconnected>
|
|
|
|
;format-disconnected-underline = ${self.format-connected-underline}
|
|
|
|
;label-disconnected = %ifname% disconnected
|
|
|
|
label-disconnected-foreground = ${colours.critical}
|
|
|
|
|
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
interval = 1
|
|
|
|
|
2020-03-22 11:10:14 +00:00
|
|
|
label = %{A3:systemd-run --user --no-block -- i3-sensible-terminal --class floating-term -d 66 35 -qq --hold -e sh -c "cal -y $(date +%Y)":}%date% %time%%{A}
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
time = %H:%M
|
|
|
|
time-alt = %a %e %b %Y %H:%M:%S
|
|
|
|
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
|
|
|
|
[module/volume]
|
|
|
|
type = internal/pulseaudio
|
|
|
|
|
|
|
|
label-volume = %percentage%
|
2020-03-21 23:22:27 +00:00
|
|
|
format-volume = %{A3:systemd-run --user --no-block -- pavucontrol:}<ramp-volume> <label-volume>%{A}
|
|
|
|
format-muted = %{A3:systemd-run --user --no-block -- pavucontrol:}<label-muted>%{A}
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
format-muted-foreground = ${colours.icon}
|
|
|
|
ramp-volume-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
label-muted = ""
|
|
|
|
ramp-volume-0 = ""
|
|
|
|
ramp-volume-1 = ""
|
|
|
|
ramp-volume-2 = ""
|
|
|
|
ramp-volume-3 = ""
|
|
|
|
ramp-volume-4 = ""
|
|
|
|
ramp-volume-5 = ""
|
|
|
|
|
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC0
|
2019-10-11 23:06:07 +00:00
|
|
|
full-at = 98
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
format-full = <label-full>
|
|
|
|
format-charging = <label-charging>
|
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
|
|
|
|
|
|
format-full-underline = ${self.format-charging-underline}
|
|
|
|
format-charging-underline = ${colours.background}
|
|
|
|
format-discharging-underline = ${self.format-charging-underline}
|
|
|
|
|
|
|
|
format-full-prefix = " "
|
|
|
|
format-charging-prefix = " "
|
|
|
|
|
|
|
|
ramp-capacity-0 =
|
|
|
|
ramp-capacity-1 =
|
|
|
|
ramp-capacity-2 =
|
|
|
|
ramp-capacity-3 =
|
|
|
|
ramp-capacity-4 =
|
|
|
|
|
|
|
|
format-full-prefix-foreground = ${colours.icon}
|
|
|
|
format-charging-prefix-foreground = ${colours.icon}
|
|
|
|
ramp-capacity-foreground = ${colours.icon}
|
|
|
|
ramp-capacity-0-foreground = ${colours.critical}
|
|
|
|
ramp-capacity-1-foreground = ${colours.warning}
|
|
|
|
|
|
|
|
|
2020-03-21 22:53:48 +00:00
|
|
|
[module/cputemp]
|
2018-11-04 21:07:06 +00:00
|
|
|
type = internal/temperature
|
2020-03-21 21:25:16 +00:00
|
|
|
hwmon-path = /sys/devices/platform/nct6775.656/hwmon/hwmon1/temp2_input
|
|
|
|
base-temperature = 25
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
format = <ramp> <label>
|
|
|
|
format-warn = <ramp> <label-warn>
|
|
|
|
|
|
|
|
label = %temperature-c%
|
|
|
|
label-warn = %temperature-c%
|
|
|
|
label-warn-foreground = ${colours.background}
|
|
|
|
|
|
|
|
ramp-0 =
|
|
|
|
ramp-1 =
|
|
|
|
ramp-2 =
|
|
|
|
ramp-3 =
|
|
|
|
ramp-4 =
|
|
|
|
ramp-5 =
|
|
|
|
ramp-foreground = ${colours.icon}
|
|
|
|
|
2020-03-21 22:53:48 +00:00
|
|
|
[module/gputemp]
|
|
|
|
type = custom/script
|
|
|
|
exec = nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
|
|
|
|
interval = 10
|
|
|
|
|
|
|
|
label = %output%°C
|
|
|
|
format-prefix = " "
|
|
|
|
format-prefix-foreground = ${colours.icon}
|
|
|
|
|
2018-11-04 21:07:06 +00:00
|
|
|
|
|
|
|
[module/powermenu]
|
|
|
|
type = custom/menu
|
|
|
|
|
|
|
|
expand-right = true
|
|
|
|
|
|
|
|
label-open =
|
|
|
|
label-close = cancel
|
|
|
|
label-separator = |
|
|
|
|
label-open-foreground = ${colours.icon}
|
|
|
|
label-close-foreground = ${colours.background}
|
|
|
|
label-separator-foreground = ${colours.icon}
|
|
|
|
|
|
|
|
menu-0-0 = reboot
|
|
|
|
menu-0-0-exec = menu-open-1
|
|
|
|
menu-0-1 = power off
|
|
|
|
menu-0-1-exec = menu-open-2
|
|
|
|
|
|
|
|
menu-1-0 = cancel
|
|
|
|
menu-1-0-exec = menu-open-0
|
|
|
|
menu-1-1 = reboot
|
|
|
|
menu-1-1-exec = sudo reboot
|
|
|
|
|
|
|
|
menu-2-0 = power off
|
|
|
|
menu-2-0-exec = sudo poweroff
|
|
|
|
menu-2-1 = cancel
|
|
|
|
menu-2-1-exec = menu-open-0
|
|
|
|
|
|
|
|
; vim:ft=dosini
|