From bb980158a785b0ce23d25fa0f74c996311df7a67 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 7 Nov 2021 20:45:30 -0500 Subject: fix(gs/home): Move dunst shortcuts into i3 config Dunst as of 1.7.0 apparently no longer supports keyboard shortcuts (so much for semantic versioning) in favor of having them be bound in the window manager to invocations of `dunstctl`. Change-Id: Ic3f10a29061c19ea0002e0f6d596baeafa58d968 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3815 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/system/home/modules/i3.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'users/grfn/system/home/modules') diff --git a/users/grfn/system/home/modules/i3.nix b/users/grfn/system/home/modules/i3.nix index c56c9d556ba8..df0859b46aef 100644 --- a/users/grfn/system/home/modules/i3.nix +++ b/users/grfn/system/home/modules/i3.nix @@ -166,6 +166,10 @@ in { # Notifications "${mod}+Shift+n" = "exec killall -SIGUSR1 .dunst-wrapped"; "${mod}+n" = "exec killall -SIGUSR2 .dunst-wrapped"; + "Control+space" = "exec ${pkgs.dunst}/bin/dunstctl close"; + "Control+Shift+space" = "exec ${pkgs.dunst}/bin/dunstctl close-all"; + "Control+grave" = "exec ${pkgs.dunst}/bin/dunstctl history-pop"; + "Control+Shift+period" = "exec ${pkgs.dunst}/bin/dunstctl action"; })]); fonts = [ decorationFont ]; @@ -333,13 +337,6 @@ in { color = "#aaaaaa"; }; - shortcuts = { - close = "ctrl+space"; - close_all = "ctrl+shift+space"; - history = "ctrl+grave"; - context = "ctrl+shift+period"; - }; - urgency_low = { background = base03; foreground = base3; -- cgit 1.4.1