diff --git a/.config/polybar/config b/.config/polybar/config index f645276..85e7eae 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -183,7 +183,7 @@ use-ui-max = true bar-volume-width = 7 bar-volume-foreground-0 = ${colors.white} bar-volume-foreground-1 = ${colors.yellow} -bar-volume-foreground-2 = ${colors.yellor} +bar-volume-foreground-2 = ${colors.yellow} bar-volume-foreground-3 = ${colors.blue} bar-volume-foreground-4 = ${colors.blue} bar-volume-foreground-5 = ${colors.green} @@ -272,6 +272,25 @@ time-alt = %H:%M:%S format-underline = ${colors.cyan} label = "%date% %time%" +[module/battery] +type = internal/battery +battery = BAT0 +adapter = ADP0 + +time-format = %H:%M +format-discharging = +format-discharging-underline = ${colors.cyan} +format-charging-underline = ${colors.yellow} +format-full-underline = ${colors.green} +label-discharging = %percentage%% %time% +label-charging =  %percentage%% %time% + +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + [settings] screenchange-reload = true ;compositing-background = xor diff --git a/bin/polybar.sh b/bin/polybar.sh index 9259b91..9bd3386 100755 --- a/bin/polybar.sh +++ b/bin/polybar.sh @@ -25,7 +25,7 @@ declare -A BAR_HEIGHT=( declare -A BLOCKS=( ["DVI-D-0"]="pulseaudio SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP" ["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP" - ["eDP1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP sun aw-afk date TSEP" + ["eDP1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP" ) pkill polybar