From 170461002890d55718618bec64feaa8856c3a6d4 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Fri, 28 Nov 2025 00:01:27 +0530 Subject: Organised the configuration to allow for different options for different users. --- modules/desktop/polybar/module/battery.nix | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/desktop/polybar/module/battery.nix (limited to 'modules/desktop/polybar/module/battery.nix') diff --git a/modules/desktop/polybar/module/battery.nix b/modules/desktop/polybar/module/battery.nix new file mode 100644 index 0000000..5787f24 --- /dev/null +++ b/modules/desktop/polybar/module/battery.nix @@ -0,0 +1,36 @@ +{ config }: + +with config.scheme.withHashtag; +{ + type = "internal/battery"; + battery = "BAT1"; + adapter = "ADP1"; + + format-charging = "%{T2}%{F${base03}}%{F-}%{T-} "; + format-discharging = "%{T2}%{F${base03}}%{F-}%{T-} "; + format-full-prefix = "󰁹 "; + + ramp-capacity-0 = "󰁺"; + ramp-capacity-1 = "󰁻"; + ramp-capacity-2 = "󰁼"; + ramp-capacity-3 = "󰁽"; + ramp-capacity-4 = "󰁾"; + ramp-capacity-5 = "󰁿"; + ramp-capacity-6 = "󰂀"; + ramp-capacity-7 = "󰂁"; + ramp-capacity-8 = "󰂂"; + ramp-capacity-9 = "󰁹"; + + animation-charging-0 = "󰁺"; + animation-charging-1 = "󰁻"; + animation-charging-2 = "󰁼"; + animation-charging-3 = "󰁽"; + animation-charging-4 = "󰁾"; + animation-charging-5 = "󰁿"; + animation-charging-6 = "󰂀"; + animation-charging-7 = "󰂁"; + animation-charging-8 = "󰂂"; + animation-charging-9 = "󰁹"; + + animation-charging-framerate = 750; +} -- cgit v1.2.3