diff --git a/home/environments/niri/autostart.nix b/home/environments/niri/autostart.nix index 6742927b..0f0544d9 100644 --- a/home/environments/niri/autostart.nix +++ b/home/environments/niri/autostart.nix @@ -45,7 +45,7 @@ in { "${systemctl}" "--user" "start" - "mako.service" + "swaync.service" ]; } #{ diff --git a/home/environments/niri/waybar.nix b/home/environments/niri/waybar.nix index a7b13496..641b1482 100644 --- a/home/environments/niri/waybar.nix +++ b/home/environments/niri/waybar.nix @@ -80,7 +80,7 @@ _: { margin: 0px; } - #mode, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris { + #mode, #custom-notification, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris { padding: 0 5px; margin: 0 5px; } @@ -89,6 +89,10 @@ _: { color: @mantle; } + #custom-notification { + font-size: 200%; + } + #mpris.playing { background-color: @base0E; } @@ -159,6 +163,7 @@ _: { "backlight" "battery" "tray" + "custom/notification" ]; idle_inhibitor = { @@ -203,7 +208,26 @@ _: { tray = { spacing = 4; }; - + "custom/notification" = { + tooltip = false; + format = "{} {icon}"; + "format-icons" = { + notification = "󱅫"; + none = ""; + "dnd-notification" = " "; + "dnd-none" = "󰂛"; + "inhibited-notification" = " "; + "inhibited-none" = ""; + "dnd-inhibited-notification" = " "; + "dnd-inhibited-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"; + escape = true; + }; clock = { format = "{:%F %H:%M %Z}"; interval = 60;