aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/module/battery.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/waybar/module/battery.nix')
-rw-r--r--modules/desktop/waybar/module/battery.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/desktop/waybar/module/battery.nix b/modules/desktop/waybar/module/battery.nix
index e9b8186..05ae449 100644
--- a/modules/desktop/waybar/module/battery.nix
+++ b/modules/desktop/waybar/module/battery.nix
@@ -1,9 +1,12 @@
-{ config, iconColor }:
+{ config, mkIcon }:
with config.scheme.withHashtag;
+let
+ iconColor = base09;
+in
{
- format = "<span foreground='${iconColor}'>{icon}</span> {capacity}%";
- format-charging = "<span foreground='${iconColor}'>󰂄</span> {capacity}%";
- format-plugged = "<span foreground='${iconColor}'>󰁹</span> {capacity}%";
+ format = "${mkIcon iconColor "{icon}"} {capacity}%";
+ format-charging = "${mkIcon iconColor "󰂄"} {capacity}%";
+ format-plugged = "${mkIcon iconColor "󰁹"} {capacity}%";
format-alt = "{time} {icon}";
format-icons = [
"󰁺"
@@ -13,7 +16,7 @@ with config.scheme.withHashtag;
"󰁾"
"󰁿"
"󰂀"
- "󰂁"
+ "󰁂"
"󰂂"
"󰁹"
];