Add battery modules

This commit is contained in:
Skylar Hill 2023-12-08 22:27:53 -06:00
parent f0956d156e
commit fbf270df59

View file

@ -59,7 +59,7 @@ module-margin = 0
font-0 = JetBrainsMono Nerd Font:size=12;3 font-0 = JetBrainsMono Nerd Font:size=12;3
modules-left = round-left filesystem pulseaudio memory cpu round-right modules-left = round-left filesystem pulseaudio memory cpu bat0 bat1 round-right
modules-center = round-left xworkspaces round-right modules-center = round-left xworkspaces round-right
modules-right = round-left mpd date round-right modules-right = round-left mpd date round-right
@ -74,6 +74,33 @@ enable-ipc = true
; override-redirect = true ; override-redirect = true
[module/bat0]
type = internal/battery
battery = BAT0
label-charging = 󰂅 %percentage%%
format-charging-background = ${colors.background}
format-charging-foreground = ${colors.yellow}
label-discharging = 󰁹 %percentage%%
format-discharging-background = ${colors.background}
format-discharging-foreground = ${colors.flamingo}
label-full = 󱈏 %percentage%%
format-full-background = ${colors.background}
format-full-foreground = ${colors.flamingo}
[module/bat1]
full-at = 99
type = internal/battery
battery = BAT1
label-charging = 󰂅 %percentage%%
format-charging-background = ${colors.background}
format-charging-foreground = ${colors.yellow}
label-discharging = 󰁹 %percentage%%
format-discharging-background = ${colors.background}
format-discharging-foreground = ${colors.flamingo}
label-full = 󱈏 %percentage%%
format-full-background = ${colors.background}
format-full-foreground = ${colors.flamingo}
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
host = 127.0.0.1 host = 127.0.0.1