diff --git a/polybar.config b/polybar.config index 4a7bdec..d93aa78 100644 --- a/polybar.config +++ b/polybar.config @@ -59,7 +59,7 @@ module-margin = 0 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-right = round-left mpd date round-right @@ -74,6 +74,33 @@ enable-ipc = 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] type = internal/mpd host = 127.0.0.1