Polish Polybar up, re-adding the spacing at the edges and adding a new keylock indicator

This commit is contained in:
Salt 2021-05-04 12:15:19 -05:00
parent a10b25428d
commit 6d3f874d0f

View File

@ -50,9 +50,10 @@ foreground = ${res/colors.fg}
border-color = ${res/colors.border} border-color = ${res/colors.border}
tray-background = ${res/colors.bg} tray-background = ${res/colors.bg}
height = 40 height = 40
width = 100% width = 100%:-12
offset-x = 6
padding = 2 padding = 2
border-bottom-size = ${res/config.border-size} border-size = ${res/config.border-size}
font-0 = "IBM Plex Sans:style=Medium:size=10;2" font-0 = "IBM Plex Sans:style=Medium:size=10;2"
font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2" font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2"
font-2 = "IBM Plex Sans:style=Bold:size=10;2" font-2 = "IBM Plex Sans:style=Bold:size=10;2"
@ -65,13 +66,15 @@ monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar inherit = template/bar
tray-position = center tray-position = center
modules-left = i3 bspwm service-ansible service-backup reboot-required modules-left = i3 bspwm service-ansible service-backup reboot-required
modules-right = backlight pulse battery | date modules-right = xkeyboard backlight pulse battery | date
border-top-size = 0
[bar/secondary] [bar/secondary]
monitor= ${env:PB_MONITOR:HDMI-A-0} monitor= ${env:PB_MONITOR:HDMI-A-0}
inherit = template/bar inherit = template/bar
modules-left = i3 bspwm modules-left = i3 bspwm
modules-right = pulse wlan-desktop-stats mpd | date modules-right = xkeyboard pulse wlan-desktop-stats mpd | date
border-top-size = 0
## MODULES ## MODULES
[module/|] [module/|]
@ -291,8 +294,17 @@ label-connected = U %upspeed% D %downspeed%
[module/xkeyboard] [module/xkeyboard]
type = internal/xkeyboard type = internal/xkeyboard
format = <label-layout> format = <label-indicator>
label-layout = %name% label-indicator-on = %icon%
label-indicator-off = %icon%
label-indicator-on-capslock = 
label-indicator-on-capslock-padding = 4
label-indicator-on-capslock-background = ${res/colors.yellow}
label-indicator-on-capslock-foreground = ${res/colors.black}
label-indicator-off-numlock = 
label-indicator-off-numlock-padding = 4
label-indicator-off-numlock-background = ${res/colors.yellow}
label-indicator-off-numlock-foreground = ${res/colors.black}
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow