From f8d6447ac4487a723fb67407d6cba222dfcc586d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 6 Apr 2021 18:59:52 +0000 Subject: [PATCH] home: wm: i3: add dunst bindings --- home/wm/i3.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/wm/i3.nix b/home/wm/i3.nix index 7c29c8b..38a5f9e 100644 --- a/home/wm/i3.nix +++ b/home/wm/i3.nix @@ -237,6 +237,16 @@ in in "exec ${toggleXautolock}"; }) + ( + let + execDunstctl = "exec ${pkgs.dunst}/bin/dunstctl"; + in + lib.optionalAttrs config.my.home.wm.dunst.enable { + "${modifier}+minus" = "${execDunstctl} close"; + "${modifier}+Shift+minus" = "${execDunstctl} close-all"; + "${modifier}+equal" = "${execDunstctl} history-pop"; + } + ) ]; keycodebindings =