diff --git a/home-manager/linux/programs/sway.nix b/home-manager/linux/programs/sway.nix index 9668f03..8f67e44 100644 --- a/home-manager/linux/programs/sway.nix +++ b/home-manager/linux/programs/sway.nix @@ -160,6 +160,11 @@ in with lib; { # Play/pause and next song "XF86AudioPlay" = "exec mpc toggle"; "XF86AudioNext" = "exec mpc next"; + # Setup scratchpads + "${modifer}+n" = + "exec sh -c 'swaymsg [app_id=\"emacs\"] scratchpad show'"; + "${modifer}+m" = + "exec sh -c 'swaymsg [app_id=\"Alacritty\"] scratchpad show'"; }; # Startup applications startup = [