diff --git a/modules/hm/waybar.nix b/modules/hm/waybar.nix index 7dc241f..a5cf2a6 100644 --- a/modules/hm/waybar.nix +++ b/modules/hm/waybar.nix @@ -14,6 +14,7 @@ let tertiary_background_hex = nix-rice.color.setAlphaRgba alpha colorPalette.primary.background; }; }; + swaync-client = "${pkgs.swaynotificationcenter}/bin/swaync-client"; in { home.packages = [ pkgs.swaynotificationcenter ]; @@ -42,8 +43,8 @@ in "battery" "battery#bat2" "clock" - "tray" "custom/notification" + "tray" ]; "custom/notification" = { @@ -56,10 +57,10 @@ in dnd-none = ""; }; return-type = "json"; - exec-if = "which swaync-client"; - exec = "swaync-client -swb"; - on-click = "sleep 0.1 && swaync-client -t -sw"; - on-click-right = "sleep 0.1 && swaync-client -d -sw"; + # exec-if = "which swaync-client"; + exec = "${swaync-client} -swb"; + on-click = "sleep 0.1 && ${swaync-client} -t -sw"; + on-click-right = "sleep 0.1 && ${swaync-client} -d -sw"; escape = true; };