Polybar: Add xbacklight back onto the default bar

This commit is contained in:
Salt 2018-08-19 22:06:58 -05:00
parent 0926ee34d3
commit 6932ecbe96

View File

@ -88,7 +88,7 @@ border-top-size = 0
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:cpu memory}
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:volume battery date}
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:xbacklight volume battery date}
[bar/primary-2]
monitor = ${env:PB_MONITOR:eDP-1}
@ -309,20 +309,12 @@ label-disconnected-foreground = ${res/colors.foreground-dark}
[module/xbacklight]
type = internal/xbacklight
format = <bar> <label>
format = <label>
format-prefix = "XBL: "
format-prefix-foreground = ${res/colors.icon-xbacklight}
label = %percentage:3%%
bar-width = ${res/config.bar-width}
bar-fill = ${res/config.bar-fill}
bar-fill-foreground = ${res/colors.icon-xbacklight}
bar-empty = ${self.bar-fill}
bar-empty-foreground = ${res/colors.bar-empty}
bar-indicator = ${res/config.bar-indicator}
bar-indicator-foreground = ${res/colors.background-alt}
[module/xwindow]
type = internal/xwindow
format = <label>