From fbf270df5921e485b027ac970e0ccd8ec124c763 Mon Sep 17 00:00:00 2001 From: Skylar Hill Date: Fri, 8 Dec 2023 22:27:53 -0600 Subject: [PATCH] Add battery modules --- polybar.config | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) 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