Prechádzať zdrojové kódy

Add passthrough mode to sway

Johan Rong 6 mesiacov pred
rodič
commit
a90a3a742d

+ 5 - 0
home/features/application/sway/default.nix

@@ -44,6 +44,9 @@ in
             "Escape" = "mode default";
             "Return" = "mode default";
           };
+          passthrough = { # Passthrough mode, disables all sway keybinds to let other apps use them, eg. use sway mod in other apps.
+            "${mod}+c" = "mode default";
+          };
         };
         keybindings = {
           "${mod}+Shift+r" = "reload";
@@ -53,6 +56,8 @@ in
           "${super}+l" = "exec swaylock";
           "${mod}+r" = "mode \"resize\"";
 
+          "${mod}+c" = "mode \"passthrough\"";
+
           "${mod}+Shift+e" = "exec /home/johron/.config/rofi/powermenu/type-1/powermenu.sh";
 
           "${mod}+h" = "split h";