aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/module/battery.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 14:46:01 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 14:46:01 +0530
commit47a4bf5c092a70095a250eed0372835221905067 (patch)
tree223d1b5e651eb03d2d49d2c220063855411f9396 /modules/desktop/waybar/module/battery.nix
parent282a085718b6cba16913771a80256040351d1746 (diff)
downloadhome-manager-config-47a4bf5c092a70095a250eed0372835221905067.tar.gz
home-manager-config-47a4bf5c092a70095a250eed0372835221905067.zip
feat(waybar): color icons with base16, refactor modules, polish bar styling
- Color individual module icons with base16 palette via iconColor param - Refactor vpn module into writeShellScript for Pango markup support - Switch window module from max-length to expand, fix-center to false - Add persistent-workspaces to reserve workspaces across monitor changes - Overhaul waybar CSS: borders, padding, hover/active workspace states - Change memory display from {usedGb} GB to {percentage}%
Diffstat (limited to 'modules/desktop/waybar/module/battery.nix')
-rw-r--r--modules/desktop/waybar/module/battery.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/desktop/waybar/module/battery.nix b/modules/desktop/waybar/module/battery.nix
index bf3527c..ec14b8b 100644
--- a/modules/desktop/waybar/module/battery.nix
+++ b/modules/desktop/waybar/module/battery.nix
@@ -1,9 +1,9 @@
-{ config }:
+{ config, iconColor }:
with config.scheme.withHashtag;
{
- format = "{icon} {capacity}%";
- format-charging = "󰂄 {capacity}%";
- format-plugged = "󰁹 {capacity}%";
+ format = "<span foreground='${iconColor}'>{icon}</span> {capacity}%";
+ format-charging = "<span foreground='${iconColor}'>󰂄</span> {capacity}%";
+ format-plugged = "<span foreground='${iconColor}'>󰁹</span> {capacity}%";
format-alt = "{time} {icon}";
format-icons = [
"󰁺"