diff --git a/home/waybar/default.nix b/home/waybar/default.nix index 4f833c62..b35dca2d 100644 --- a/home/waybar/default.nix +++ b/home/waybar/default.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{ config, pkgs, ... }: { systemd.user.targets.tray.Unit = { Description = "Home Manager System Tray"; Requires = [ "graphical-session-pre.target" ]; @@ -39,7 +39,7 @@ ".*WebCord (.*)" = "󰙯 $1"; "(Steam|steam)" = "󰓓 "; "(.*) - mpv" = "󰦟 $1"; - "(.*) | Microsoft Teams" = "󰊻 $1"; + "Microsoft Teams - (.*)" = "󰊻 $1"; }; "separate-outputs" = true; }; @@ -154,7 +154,8 @@ tooltip-format = "{capacity}% {time}"; format-icons = [ "󱃍" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; }; - "custom/notification" = { + "custom/notification" = let swaync = pkgs.swaynotificationcenter; + in { "tooltip" = false; "format" = "{icon}{}"; "format-icons" = { @@ -168,10 +169,10 @@ "dnd-inhibited-none" = "󰂜 "; }; "return-type" = "json"; - "exec-if" = "which swaync-client"; - "exec" = "swaync-client -swb"; - "on-click" = "swaync-client -t -sw"; - "on-click-right" = "swaync-client -d -sw"; + "exec-if" = "which ${swaync}/bin/swaync-client"; + "exec" = "${swaync}/bin/swaync-client -swb"; + "on-click" = "${swaync}/bin/swaync-client -t -sw"; + "on-click-right" = "${swaync}/bin/swaync-client -d -sw"; "escape" = true; }; tray = {