From f7e5b10c543ad47515cb50c839bb6fb3273d7938 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 00:24:33 +0530 Subject: refactor(waybar): extract mkIcon helper, drop per-module iconColor parameter - Add lib.nix with shared mkIcon function for consistent icon formatting - Pass mkIcon instead of per-module iconColor to all modules - Define iconColor locally within each module - Fix battery icon character --- modules/desktop/waybar/lib.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/desktop/waybar/lib.nix (limited to 'modules/desktop/waybar/lib.nix') diff --git a/modules/desktop/waybar/lib.nix b/modules/desktop/waybar/lib.nix new file mode 100644 index 0000000..9053cd5 --- /dev/null +++ b/modules/desktop/waybar/lib.nix @@ -0,0 +1,7 @@ +{ lib, ... }: +let + mkIcon = color: icon: "${icon}"; +in +{ + inherit mkIcon; +} -- cgit v1.2.3