Polybar: Add bspwm module, use it

This commit is contained in:
Salt 2020-05-31 18:08:24 -05:00
parent f4f820ac5f
commit dcaf238c51

View File

@ -63,7 +63,7 @@ monitor = ${env:PB_MONITOR:eDP-1}
bottom = false bottom = false
inherit = template/bar inherit = template/bar
border-bottom-size = ${res/config.border-size} border-bottom-size = ${res/config.border-size}
modules-left = i3 modules-left = i3 bspwm
modules-center = xwindow modules-center = xwindow
modules-right = fshome | wlan modules-right = fshome | wlan
@ -112,6 +112,28 @@ bar-capacity-empty = ${res/config.bar-empty}
bar-capacity-empty-foreground = ${res/colors.gray} bar-capacity-empty-foreground = ${res/colors.gray}
bar-capacity-indicator = ${res/config.bar-indicator} bar-capacity-indicator = ${res/config.bar-indicator}
[module/bspwm]
type = internal/bspwm
format = <label-state> <label-mode>
format-padding = 0
enable-scroll = false
pin-workspaces = true
label-mode-padding = 4
label-mode-background = ${res/colors.red}
label-focused = %name%
label-focused-padding = 4
label-focused-foreground = ${res/colors.bg}
label-focused-background = ${res/colors.selection}
label-dimmed = %name%
label-dimmed-background = ${res/colors.border}
label-dimmed-padding = 4
label-occupied = %name%
label-occupied-padding = 4
label-empty = %name%
label-empty-foreground = ${res/colors.gray}
label-empty-padding = 4
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 1 interval = 1