Polybar: Add bspwm module, use it
This commit is contained in:
		@@ -63,7 +63,7 @@ monitor = ${env:PB_MONITOR:eDP-1}
 | 
			
		||||
bottom = false
 | 
			
		||||
inherit = template/bar
 | 
			
		||||
border-bottom-size = ${res/config.border-size}
 | 
			
		||||
modules-left = i3
 | 
			
		||||
modules-left = i3 bspwm
 | 
			
		||||
modules-center = xwindow
 | 
			
		||||
modules-right = fshome | wlan
 | 
			
		||||
 | 
			
		||||
@@ -112,6 +112,28 @@ bar-capacity-empty = ${res/config.bar-empty}
 | 
			
		||||
bar-capacity-empty-foreground = ${res/colors.gray}
 | 
			
		||||
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]
 | 
			
		||||
type = internal/cpu
 | 
			
		||||
interval = 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user