diff --git a/polybar/config b/polybar/config index f7ce833..7b05867 100644 --- a/polybar/config +++ b/polybar/config @@ -32,9 +32,9 @@ font-0 = NimbusSans:bold:fixed:pixelsize=14;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1+e -modules-left = bspwm i3 +modules-left = i3 modules-center = xwindow -modules-right = battery date +modules-right = volume battery date tray-position = right tray-padding = 2 @@ -102,7 +102,7 @@ format-underline = ${colors.blue} [module/battery] type = internal/battery full-at = 99 -time-format = %H:%M +time-format = %-H:%M ; $ ls -1 /sys/class/power_supply/ battery = BAT0 adapter = ADP1 @@ -116,6 +116,18 @@ format-discharging = format-discharging-underline = ${colors.blue-light} label-discharging = %percentage%% (%time%) +[module/volume] +type = internal/alsa + +format-volume = +label-volume = VOL %percentage%% +label-volume-foreground = ${root.foreground} +format-volume-underline = ${colors.blue} + +format-muted-prefix = " " +label-muted = VOL %percentage%% +format-muted-underline = ${colors.pink} + [settings] screenchange-reload = true ;compositing-background = xor