From 787dda981b4f675e4a74bbf81eb492608504ddf6 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 18 Jul 2024 13:05:20 -0400 Subject: [PATCH] Reapply "meta: Replace dunst with swaync" Might be able to use swaync after all if I avoid using the mpris module with it. This has the advantage of being supported by ironbar, which would make missing notifications less likely. --- home/dunst.nix | 36 ------------------------------------ home/hyprland.nix | 2 +- home/swaync.nix | 12 ++++++++++++ 3 files changed, 13 insertions(+), 37 deletions(-) delete mode 100644 home/dunst.nix create mode 100644 home/swaync.nix diff --git a/home/dunst.nix b/home/dunst.nix deleted file mode 100644 index c7d1c819..00000000 --- a/home/dunst.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ pkgs, ... }: - -let - inherit (pkgs) libnotify papirus-icon-theme; -in -{ - home.packages = [ libnotify ]; - - services.dunst = { - enable = true; - - iconTheme = { - package = papirus-icon-theme; - name = "Papirus"; - }; - - settings = { - global = { - geometry = "1870x5-25+45"; - width = 350; - separator_height = 5; - padding = 24; - horizontal_padding = 24; - frame_width = 3; - idle_threshold = 120; - alignment = "center"; - word_wrap = "yes"; - transparency = 5; - format = "%s: %b"; - markup = "full"; - min_icon_size = 32; - max_icon_size = 128; - }; - }; - }; -} diff --git a/home/hyprland.nix b/home/hyprland.nix index 5ade6933..54152059 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -200,7 +200,7 @@ in "${super}_SHIFT, Q, killactive" "${super}, W, exec, ~/.config/${randomBackgroundScript}" "${super}_SHIFT, W, exec, ~/.config/${swapBackgroundScript}" - "${super}, P, exec, dunstify --icon=$(grimblast save screen) Screenshot Captured." + "${super}, P, exec, notify-send --icon=$(grimblast save screen) Screenshot Captured." ", Print, exec, grimblast --freeze copy area" "${super}_ALT, delete, exit" "${super}, T, exec, tessen" diff --git a/home/swaync.nix b/home/swaync.nix new file mode 100644 index 00000000..f2f82583 --- /dev/null +++ b/home/swaync.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +let + inherit (pkgs) libnotify; +in +{ + home.packages = [ libnotify ]; + + services.swaync = { + enable = true; + }; +}