🐛 fix polybar battery module

This commit is contained in:
Moritz Böhme 2022-10-06 20:19:28 +02:00
parent 85de3b3ac6
commit a7f9f05ccf
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 74 additions and 64 deletions

View file

@ -36,8 +36,7 @@ in
{ {
home-manager.users.moritz = { home-manager.users.moritz = {
programs = { programs = {
kitty.extraConfig = kitty.extraConfig = ''
''
# vim:ft=kitty # vim:ft=kitty
## name: Catppuccin-Frappe ## name: Catppuccin-Frappe
@ -253,6 +252,14 @@ in
format-connected-foreground = base; format-connected-foreground = base;
format-connected-background = mauve; format-connected-background = mauve;
}; };
"module/battery" = {
format-charging-foreground = base;
format-charging-background = green;
format-full-foreground = base;
format-full-background = green;
format-discharging-foreground = base;
format-discharging-background = red;
};
}; };
}; };
}; };

View file

@ -74,8 +74,11 @@ in
time-format = "%H:%M"; time-format = "%H:%M";
format-charging = "<animation-charging> <label-charging>"; format-charging = "<animation-charging> <label-charging>";
format-charging-padding = 1;
format-discharging = "<animation-discharging> <label-discharging>"; format-discharging = "<animation-discharging> <label-discharging>";
format-discharging-padding = 1;
format-full = " <label-full>"; format-full = " <label-full>";
format-full-padding = 1;
label-charging = "%percentage%% %time% remaining"; label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining"; label-discharging = "%percentage%% %time% remaining";