diff --git a/home-manager/modules/waybar/default.nix b/home-manager/modules/waybar/default.nix index 399764f..ff50bba 100644 --- a/home-manager/modules/waybar/default.nix +++ b/home-manager/modules/waybar/default.nix @@ -11,7 +11,7 @@ with lib; let ENABLED=" " DISABLED=" " if [[ ''${COUNT} != 0 ]]; then DISABLED=" ''${COUNT}"; fi - if ${pkgs.dunst}/bin/dunstctl is-paused | grep -q "false" ; then echo "''${ENABLED}"; else echo "''${DISABLED}"; fi + if ${pkgs.dunst}/bin/dunstctl is-paused | grep -q "false" ; then ${pkgs.coreutils}/bin/echo "''${ENABLED}"; else ${pkgs.coreutils}/bin/echo "''${DISABLED}"; fi ''; in { @@ -108,6 +108,7 @@ in "custom/now_playing" = { exec = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token"; exec-on-event = false; + escape = true; format = " ♪ {}"; restart-interval = 1; return-type = "json";