sway: add hjkl as move keys, move lock to mod4+q

This commit is contained in:
Aly Raffauf 2024-05-01 17:49:24 -04:00
parent 1836cee0fd
commit 9e847ca296

View file

@ -204,7 +204,7 @@
# Manage session. # Manage session.
"${modifier}+C" = "kill"; "${modifier}+C" = "kill";
"${modifier}+L" = "exec ${lock}"; "${modifier}+Q" = "exec ${lock}";
"${modifier}+M" = "exec ${logout}"; "${modifier}+M" = "exec ${logout}";
# Basic window management. # Basic window management.
@ -217,6 +217,12 @@
"${modifier}+Up" = "focus up"; "${modifier}+Up" = "focus up";
"${modifier}+Right" = "focus right"; "${modifier}+Right" = "focus right";
# Move focus with modifier + hjkl keys (vim/ADM-3A terminal)
"${modifier}+H" = "focus left";
"${modifier}+J" = "focus down";
"${modifier}+K" = "focus up";
"${modifier}+L" = "focus right";
# Move window with modifier SHIFT + arrow keys # Move window with modifier SHIFT + arrow keys
"${modifier}+Shift+Left" = "move left"; "${modifier}+Shift+Left" = "move left";
"${modifier}+Shift+Down" = "move down"; "${modifier}+Shift+Down" = "move down";
@ -302,6 +308,10 @@
Down = "move down"; Down = "move down";
Up = "move up"; Up = "move up";
Right = "move right"; Right = "move right";
H = "move left";
J = "move down";
K = "move up";
L = "move right";
Comma = "move container to workspace prev; workspace prev"; Comma = "move container to workspace prev; workspace prev";
Period = "move container to workspace next; workspace next"; Period = "move container to workspace next; workspace next";
"1" = "move container to workspace number 1"; "1" = "move container to workspace number 1";