From 9e847ca2965854b169bc295b2102c2eaead07559 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 1 May 2024 17:49:24 -0400 Subject: [PATCH] sway: add hjkl as move keys, move lock to mod4+q --- homeManagerModules/desktop/sway/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 3a343186..50a00c9c 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -204,7 +204,7 @@ # Manage session. "${modifier}+C" = "kill"; - "${modifier}+L" = "exec ${lock}"; + "${modifier}+Q" = "exec ${lock}"; "${modifier}+M" = "exec ${logout}"; # Basic window management. @@ -217,6 +217,12 @@ "${modifier}+Up" = "focus up"; "${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 "${modifier}+Shift+Left" = "move left"; "${modifier}+Shift+Down" = "move down"; @@ -302,6 +308,10 @@ Down = "move down"; Up = "move up"; Right = "move right"; + H = "move left"; + J = "move down"; + K = "move up"; + L = "move right"; Comma = "move container to workspace prev; workspace prev"; Period = "move container to workspace next; workspace next"; "1" = "move container to workspace number 1";