2021-01-18 15:17:28 +01:00
|
|
|
[colors]
|
2021-04-14 12:59:25 +02:00
|
|
|
background = ${xrdb:background:#222}
|
|
|
|
background-alt = ${xrdb:color0:#222}
|
2021-05-14 11:49:10 +02:00
|
|
|
foreground = ${xrdb:foreground:#222}
|
|
|
|
foreground-alt = ${xrdb:foreground:#222}
|
2021-06-05 16:25:29 +02:00
|
|
|
primary = ${xrdb:color5:#222}
|
|
|
|
secondary = ${xrdb:color2:#222}
|
|
|
|
alert = ${xrdb:color6:#222}
|
2021-01-18 15:17:28 +01:00
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
[module/updates]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/modules/updates
|
|
|
|
exec-if = file ~/tmp/updates.json
|
|
|
|
interval = 5
|
|
|
|
click-left = update-system; systemctl --user start updates.service
|
2021-04-14 12:59:25 +02:00
|
|
|
label = " %output%"
|
2021-02-05 17:55:24 +01:00
|
|
|
|
|
|
|
[module/my-updates]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/modules/my-updates
|
|
|
|
exec-if = file ~/tmp/auroch.json
|
|
|
|
interval = 5
|
|
|
|
click-left = systemctl --user start auroch.service
|
2021-05-14 12:20:15 +02:00
|
|
|
label = " %output%"
|
2021-02-05 17:55:24 +01:00
|
|
|
|
2021-02-17 15:54:42 +01:00
|
|
|
[module/covid]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/modules/covid
|
|
|
|
interval = 3600
|
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
[module/weather]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/waybar/modules/weather.sh
|
|
|
|
interval = 3600
|
|
|
|
|
|
|
|
[module/swap]
|
|
|
|
type = custom/script
|
|
|
|
exec = free -h | grep Swap | awk '{print $3}'
|
2021-04-14 12:59:25 +02:00
|
|
|
label = " %output%"
|
2021-02-05 17:55:24 +01:00
|
|
|
interval = 5
|
|
|
|
|
2021-01-18 15:17:28 +01:00
|
|
|
[module/xwindow]
|
|
|
|
type = internal/xwindow
|
|
|
|
label = %title:0:30:...%
|
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
[module/home_storage]
|
|
|
|
type = custom/script
|
|
|
|
exec = df -h 2>/dev/null | grep sda3 | awk '{print $5}'
|
2021-04-14 12:59:25 +02:00
|
|
|
label = " %output%"
|
2021-02-05 17:55:24 +01:00
|
|
|
interval = 30
|
2021-01-18 15:17:28 +01:00
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
[module/root_storage]
|
|
|
|
type = custom/script
|
|
|
|
exec = df -h 2>/dev/null | grep sda2 | awk '{print $5}'
|
2021-04-14 12:59:25 +02:00
|
|
|
label = " %output%"
|
2021-02-05 17:55:24 +01:00
|
|
|
interval = 30
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2021-06-05 16:25:29 +02:00
|
|
|
label-mode-padding = 4
|
2021-05-14 12:02:07 +02:00
|
|
|
label-mode-foreground = ${colors.foreground}
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
; focused = Active workspace on focused monitor
|
2021-04-14 13:27:28 +02:00
|
|
|
label-focused = %index% %icon%
|
2021-05-14 12:02:07 +02:00
|
|
|
label-focused-foreground = ${colors.primary}
|
2021-06-05 16:25:29 +02:00
|
|
|
label-focused-padding = 4
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
; unfocused = Inactive workspace on any monitor
|
2021-04-14 13:27:28 +02:00
|
|
|
label-unfocused = %index% %icon%
|
2021-06-05 16:25:29 +02:00
|
|
|
label-unfocused-padding = 4
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
; visible = Active workspace on unfocused monitor
|
2021-04-14 13:27:28 +02:00
|
|
|
label-visible = %index% %icon%
|
2021-01-18 15:17:28 +01:00
|
|
|
label-visible-background = ${self.label-focused-background}
|
|
|
|
label-visible-padding = ${self.label-focused-padding}
|
|
|
|
|
|
|
|
; urgent = Workspace with urgency hint set
|
2021-04-14 13:27:28 +02:00
|
|
|
label-urgent = %index% %icon%
|
2021-05-14 12:02:07 +02:00
|
|
|
label-urgent-foreground = ${colors.alert}
|
2021-06-05 16:25:29 +02:00
|
|
|
label-urgent-padding = 4
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
; Separator in between workspaces
|
|
|
|
; label-separator = |
|
|
|
|
|
2021-04-14 13:27:28 +02:00
|
|
|
ws-icon-0 = 1;
|
|
|
|
ws-icon-1 = 2;
|
2021-05-14 12:02:07 +02:00
|
|
|
ws-icon-2 = 3;
|
2021-04-14 13:27:28 +02:00
|
|
|
ws-icon-3 = 4;
|
|
|
|
ws-icon-default =
|
|
|
|
|
2021-01-18 15:17:28 +01:00
|
|
|
[module/xbacklight]
|
|
|
|
type = internal/xbacklight
|
|
|
|
|
2021-06-02 11:18:57 +02:00
|
|
|
format = <label>
|
2021-05-14 12:20:15 +02:00
|
|
|
label = %percentage%
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
[module/backlight-acpi]
|
|
|
|
inherit = module/xbacklight
|
|
|
|
type = internal/backlight
|
|
|
|
card = intel_backlight
|
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
2021-02-05 17:55:24 +01:00
|
|
|
interval = 1
|
2021-04-14 12:59:25 +02:00
|
|
|
format-prefix = " "
|
2021-01-18 15:17:28 +01:00
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
label = %percentage:2%%
|
|
|
|
|
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
|
|
|
interval = 2
|
2021-04-14 12:59:25 +02:00
|
|
|
format-prefix = " "
|
2021-01-18 15:17:28 +01:00
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
label = %percentage_used%%
|
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
interval = 5
|
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
date = "%a %d %b"
|
2021-01-18 15:17:28 +01:00
|
|
|
date-alt = " %Y-%m-%d"
|
|
|
|
|
|
|
|
time = %H:%M
|
|
|
|
time-alt = %H:%M:%S
|
|
|
|
|
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
label = %date% %time%
|
|
|
|
|
|
|
|
[module/pulseaudio]
|
|
|
|
type = internal/pulseaudio
|
|
|
|
|
2021-02-05 17:55:24 +01:00
|
|
|
format-volume = <label-volume>
|
2021-04-14 12:59:25 +02:00
|
|
|
label-volume = %percentage%%
|
2021-01-18 15:17:28 +01:00
|
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
|
2021-06-02 11:18:57 +02:00
|
|
|
label-muted =
|
2021-02-05 17:55:24 +01:00
|
|
|
label-muted-foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
interval = 1
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC
|
|
|
|
full-at = 98
|
|
|
|
|
|
|
|
format-charging = <animation-charging> <label-charging>
|
|
|
|
format-discharging = <animation-discharging> <label-discharging>
|
|
|
|
|
2021-04-14 12:59:25 +02:00
|
|
|
format-full-prefix = " "
|
2021-01-18 15:17:28 +01:00
|
|
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
|
2021-04-14 12:59:25 +02:00
|
|
|
ramp-capacity-0 =
|
|
|
|
ramp-capacity-1 =
|
|
|
|
ramp-capacity-2 =
|
2021-01-18 15:17:28 +01:00
|
|
|
ramp-capacity-foreground = ${colors.foreground-alt}
|
|
|
|
|
2021-04-14 12:59:25 +02:00
|
|
|
animation-charging-0 =
|
|
|
|
animation-charging-1 =
|
|
|
|
animation-charging-2 =
|
2021-01-18 15:17:28 +01:00
|
|
|
animation-charging-foreground = ${colors.foreground-alt}
|
|
|
|
animation-charging-framerate = 750
|
|
|
|
|
|
|
|
animation-discharging-0 =
|
2021-04-14 12:59:25 +02:00
|
|
|
animation-discharging-1 =
|
|
|
|
animation-discharging-2 =
|
2021-01-18 15:17:28 +01:00
|
|
|
animation-discharging-foreground = ${colors.foreground-alt}
|
|
|
|
animation-discharging-framerate = 750
|
|
|
|
|
|
|
|
[module/powermenu]
|
|
|
|
type = custom/menu
|
|
|
|
|
|
|
|
expand-right = true
|
|
|
|
|
|
|
|
format-spacing = 1
|
|
|
|
|
2021-04-14 12:59:25 +02:00
|
|
|
label-open =
|
2021-01-18 15:17:28 +01:00
|
|
|
label-open-foreground = ${colors.secondary}
|
2021-04-14 12:59:25 +02:00
|
|
|
label-close = cancel
|
2021-01-18 15:17:28 +01:00
|
|
|
label-close-foreground = ${colors.secondary}
|
|
|
|
label-separator = |
|
|
|
|
label-separator-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
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
|
2021-06-02 11:18:57 +02:00
|
|
|
menu-1-1-exec = systemctl reboot
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
menu-2-0 = power off
|
2021-06-02 11:18:57 +02:00
|
|
|
menu-2-0-exec = systemctl -i poweroff
|
2021-01-18 15:17:28 +01:00
|
|
|
menu-2-1 = cancel
|
|
|
|
menu-2-1-exec = menu-open-0
|
|
|
|
|
|
|
|
[settings]
|
|
|
|
screenchange-reload = true
|
2021-06-01 21:18:26 +02:00
|
|
|
|
|
|
|
[bar/top]
|
|
|
|
monitor = ${env:MONITOR:}
|
|
|
|
width = 1900
|
|
|
|
height = 30
|
|
|
|
override-redirect = true
|
|
|
|
wm-restack = i3
|
|
|
|
offset-x = 10
|
|
|
|
offset-y = 10
|
|
|
|
radius = 4.0
|
|
|
|
fixed-center = true
|
|
|
|
|
|
|
|
background = ${colors.background}
|
|
|
|
foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
line-size = 3
|
|
|
|
line-color = ${colors.foreground}
|
|
|
|
|
|
|
|
border-size = 0
|
|
|
|
border-color = ${colors.primary}
|
|
|
|
|
2021-06-05 16:25:29 +02:00
|
|
|
padding-left = 3
|
|
|
|
padding-right = 3
|
2021-06-01 21:18:26 +02:00
|
|
|
|
2021-06-05 16:25:29 +02:00
|
|
|
module-margin-left = 4
|
|
|
|
module-margin-right = 4
|
2021-06-01 21:18:26 +02:00
|
|
|
|
|
|
|
font-1 = Font Awesome 5 Free:style=Solid:pixelsize=8;2
|
|
|
|
font-2 = Font Awesome 5 Free:style=Regular:pixelsize=8;2
|
|
|
|
font-3 = Font Awesome 5 Brands:pixelsize=8;2
|
|
|
|
font-4 = Font Awesome 5 Regular:pixelsize=8;2
|
2021-06-05 16:25:29 +02:00
|
|
|
font-0 = Kanit Medium:size=8;2
|
2021-06-01 21:18:26 +02:00
|
|
|
|
|
|
|
modules-left = date battery root_storage home_storage memory swap cpu
|
|
|
|
modules-center = i3
|
|
|
|
modules-right = covid weather updates my-updates backlight-acpi pulseaudio powermenu
|
|
|
|
|
|
|
|
cursor-click = pointer
|
|
|
|
cursor-scroll = ns-resize
|
|
|
|
|
|
|
|
tray-position = right
|
|
|
|
tray-padding = 2
|
|
|
|
;tray-offset-x = 100
|
|
|
|
;tray-background = #00000000
|
|
|
|
|
|
|
|
;[bar/bottom]
|
|
|
|
;bottom = true
|
|
|
|
;width = 300
|
|
|
|
;height = 30
|
|
|
|
;override-redirect = true
|
|
|
|
;wm-restack = i3
|
|
|
|
;offset-x = 10
|
|
|
|
;offset-y = 10
|
|
|
|
;radius = 4.0
|
|
|
|
;fixed-center = true
|
|
|
|
|
|
|
|
;background = ${colors.background}
|
|
|
|
;foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
;line-size = 3
|
|
|
|
;line-color = ${colors.foreground}
|
|
|
|
|
|
|
|
;border-size = 0
|
|
|
|
;border-color = ${colors.primary}
|
|
|
|
|
|
|
|
;padding-left = 2
|
|
|
|
;padding-right = 2
|
|
|
|
|
|
|
|
;module-margin-left = 2
|
|
|
|
;module-margin-right = 2
|
|
|
|
|
|
|
|
;font-1 = Font Awesome 5 Free:style=Solid:pixelsize=8;2
|
|
|
|
;font-2 = Font Awesome 5 Free:style=Regular:pixelsize=8;2
|
|
|
|
;font-3 = Font Awesome 5 Brands:pixelsize=8;2
|
|
|
|
;font-4 = Font Awesome 5 Regular:pixelsize=8;2
|
|
|
|
;font-0 = Fira Code:style=Medium:size=8;2
|
|
|
|
|
2021-06-02 11:18:57 +02:00
|
|
|
;modules-left =
|
2021-06-01 21:18:26 +02:00
|
|
|
;modules-center =
|
|
|
|
;modules-right = powermenu
|
|
|
|
|
|
|
|
;tray-position = center
|
|
|
|
;tray-padding = 2
|
2021-01-18 15:17:28 +01:00
|
|
|
|
|
|
|
; vim:ft=dosini
|