Browse Source

battery module

ubuntuserver
Juni Kim 2 years ago
parent
commit
6f342b66b2
  1. 41
      polybar/.config/polybar/config.ini

41
polybar/.config/polybar/config.ini

@ -73,7 +73,7 @@ bottom = true
width = 100%
modules-left = pulseaudio backlight
modules-center = xwindow
modules-right = filesystem memory cpu
modules-right = filesystem memory cpu battery
padding-left = 0
padding-right = 1
@ -230,6 +230,45 @@ ramp-2 = 🌓
ramp-3 = 🌒
ramp-4 = 🌑
[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = ADP1
poll-interval = 5
format-charging-prefix-background = ${colors.primary-underline}
format-charging-prefix-padding = 1
format-charging-background = ${colors.primary}
format-charging-foreground = ${colors.background}
format-charging-margin = 1
format-charging-alignment = center
label-charging = %percentage%%
label-charging-padding = 1
format-charging-prefix = 󰂄
format-charging = +<label-charging>
format-discharging-prefix-background = ${colors.primary-underline}
format-discharging-prefix-padding = 1
format-discharging-background = ${colors.primary}
format-discharging-foreground = ${colors.background}
format-discharging-margin = 1
format-discharging-alignment = center
label-discharging = %percentage%%
label-discharging-padding = 1
format-discharging-prefix = 󰁹
format-discharging = <label-discharging>
format-full-prefix-background = ${colors.primary-underline}
format-full-prefix-padding = 1
format-full-background = ${colors.primary}
format-full-foreground = ${colors.background}
format-full-margin = 1
format-full-alignment = center
format-full-prefix = 󰁹
label-full = 100%
label-full-padding = 1
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock

Loading…
Cancel
Save