aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/polybar/module/battery.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-07 20:37:13 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-07 20:37:13 +0530
commite0dfcfb753be2ae086f497e06affd40beddceb20 (patch)
treeddf17690a892763ec398c9f7beef9c223204bcd3 /modules/desktop/polybar/module/battery.nix
parentb7d4e1711262591475016ae57f1ead6cf54b07f6 (diff)
downloadhome-manager-config-e0dfcfb753be2ae086f497e06affd40beddceb20.tar.gz
home-manager-config-e0dfcfb753be2ae086f497e06affd40beddceb20.zip
Added wifi and ether sections to the polybar config + some other slight modification to make sure the components don't resize
Diffstat (limited to 'modules/desktop/polybar/module/battery.nix')
-rw-r--r--modules/desktop/polybar/module/battery.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/desktop/polybar/module/battery.nix b/modules/desktop/polybar/module/battery.nix
index 5787f24..f2a10c8 100644
--- a/modules/desktop/polybar/module/battery.nix
+++ b/modules/desktop/polybar/module/battery.nix
@@ -6,10 +6,14 @@ with config.scheme.withHashtag;
battery = "BAT1";
adapter = "ADP1";
+ low-at = 0;
format-charging = "%{T2}%{F${base03}}<animation-charging>%{F-}%{T-} <label-charging>";
format-discharging = "%{T2}%{F${base03}}<ramp-capacity>%{F-}%{T-} <label-discharging>";
format-full-prefix = "󰁹 ";
+ label-charging = "%percentage:3%%";
+ label-discharging = "%percentage:3%%";
+
ramp-capacity-0 = "󰁺";
ramp-capacity-1 = "󰁻";
ramp-capacity-2 = "󰁼";