From 7cec265f6dcd86dca78620415f26146c3cf2f5e2 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sun, 10 Dec 2023 18:18:24 +0100 Subject: [PATCH] replace libnotify with dunstify and add close all shortcut --- modules/graphical/hyprland.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/graphical/hyprland.nix b/modules/graphical/hyprland.nix index 945517f..4bb3ede 100644 --- a/modules/graphical/hyprland.nix +++ b/modules/graphical/hyprland.nix @@ -285,7 +285,8 @@ in extraConfig = let wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy"; wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste"; - notify = "${pkgs.libnotify}/bin/notify-send"; + dunstify = "${pkgs.dunst}/bin/dunstify"; + dunstctl = "${pkgs.dunst}/bin/dunstctl"; in '' bind = $mainMod, A, submap, notes @@ -298,7 +299,8 @@ in bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/old_gdrive/fh/risikomanagement/crisam.txt | sed 's/[ \t]*$//' | ${wl-copy} # trim bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | ${wl-copy} - bind = $mainMod, N, exec, ${notify} "$(${wl-paste})" + bind = $mainMod, N, exec, ${dunstify} "$(${wl-paste})" + bind = $mainMod, D, exec, ${dunstctl} close-all # notes bind = $mainMod, 1, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/1.txt | ${wl-copy} bind = $mainMod, 2, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/2.txt | ${wl-copy}