From afda0f5ff9ee3c8119efa4e1f0704fc489a4460a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 1 May 2024 18:10:46 -0400 Subject: [PATCH] sway: added more hjkl bindings --- homeManagerModules/desktop/sway/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 50a00c9c..fb3ffc53 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -229,6 +229,12 @@ "${modifier}+Shift+Up" = "move up"; "${modifier}+Shift+Right" = "move right"; + # Move window with modifier SHIFT + hjkl keys + "${modifier}+Shift+H" = "move left"; + "${modifier}+Shift+J" = "move down"; + "${modifier}+Shift+K" = "move up"; + "${modifier}+Shift+L" = "move right"; + # Gnome-like workspaces. "${modifier}+Comma" = "workspace prev"; "${modifier}+Period" = "workspace next"; @@ -265,6 +271,12 @@ "${modifier}+Control+Shift+Up" = "move workspace to output up"; "${modifier}+Control+Shift+Right" = "move workspace to output right"; + # Move workspace to another output. + "${modifier}+Control+Shift+H" = "move workspace to output left"; + "${modifier}+Control+Shift+J" = "move workspace to output down"; + "${modifier}+Control+Shift+K" = "move workspace to output up"; + "${modifier}+Control+Shift+L" = "move workspace to output right"; + # Scratchpad show and move "${modifier}+S" = "scratchpad show"; "${modifier}+Shift+S" = "move scratchpad";