From bfe8556c512faff06c3bfab52d5341a899620bc1 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 6 Jun 2023 00:28:10 +0200 Subject: [PATCH] Fix polybar icons --- hm_modules/polybar.nix | 66 ++++++++++++------------------------------ 1 file changed, 18 insertions(+), 48 deletions(-) diff --git a/hm_modules/polybar.nix b/hm_modules/polybar.nix index e2904e2..0b1a7ca 100644 --- a/hm_modules/polybar.nix +++ b/hm_modules/polybar.nix @@ -12,7 +12,7 @@ let zscroll = "${pkgs.zscroll}/bin/zscroll"; notificationStatus = pkgs.writeShellScript "notificationStatus" '' PATH=$PATH:"${lib.makeBinPath [ pkgs.dbus ]}" - if [[ `${dunstctl} is-paused` == "true" ]]; then echo ; else echo ; fi + if [[ `${dunstctl} is-paused` == "true" ]]; then echo 󰂚; else echo 󰂛; fi ''; notificationToggle = pkgs.writeShellScript "notificationToggle" '' PATH=$PATH:"${lib.makeBinPath [ pkgs.dbus ]}" @@ -178,14 +178,8 @@ in full.at = 98; animation = { - charging = { - text = [ "" "" "" "" "" "" "" "" "" "" ]; - framerate = "750"; - }; - discharging = { - text = [ "" "" "" "" "" "" "" "" "" "" ]; - framerate = "750"; - }; + charging = { text = [ "" "" "" "" "" ]; framerate = "750"; }; + discharging = { text = [ "" "" "" "" "" ]; framerate = "750"; }; }; format = { @@ -195,7 +189,7 @@ in discharging = recursiveUpdate colors.active { text = " "; }; - full = recursiveUpdate colors.normal { text = " "; }; + full = recursiveUpdate colors.normal { text = " "; }; }; label.text = "%percentage%%"; @@ -221,16 +215,14 @@ in { focused = recursiveUpdate common colors.selected; occupied = recursiveUpdate common colors.active; - urgent = recursiveUpdate (recursiveUpdate common colors.active) { - background = colors.alert; - }; + urgent = recursiveUpdate (recursiveUpdate common colors.active) { background = colors.alert; }; empty = recursiveUpdate common colors.normal; }; }; "module/cpu" = { type = "internal/cpu"; - format = recursiveUpdate colors.normal { text = "