From 1815782f9a080b51f8fdabaeeabf5a6c7fef9dfd Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Sat, 19 Nov 2022 17:23:53 +0100 Subject: [PATCH] Add keybind to toggle do not disturb --- home-manager/modules/sway/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/sway/default.nix b/home-manager/modules/sway/default.nix index b008f85..7b789ab 100644 --- a/home-manager/modules/sway/default.nix +++ b/home-manager/modules/sway/default.nix @@ -204,7 +204,8 @@ in "XF86AudioMute" = "exec ${pkgs.pamedia}/bin/pamedia mute"; "XF86Calculator" = "exec ${pkgs.gnome.gnome-calculator}/bin/gnome-calculator"; - "${mod}+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"; + "${mod}+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait"; + "${mod}+Shift+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait"; }; modes = {