🐛 fix polybar battery module

nixos
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 = {
programs = {
kitty.extraConfig =
''
kitty.extraConfig = ''
# vim:ft=kitty
## name: Catppuccin-Frappe
@ -253,6 +252,14 @@ in
format-connected-foreground = base;
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";
format-charging = "<animation-charging> <label-charging>";
format-charging-padding = 1;
format-discharging = "<animation-discharging> <label-discharging>";
format-discharging-padding = 1;
format-full = " <label-full>";
format-full-padding = 1;
label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining";