From d02fb27bfaaf6db17fd6886c16080f836090862c Mon Sep 17 00:00:00 2001 From: Ittihadyya Date: Sun, 24 Nov 2024 18:15:53 +0200 Subject: [PATCH] added even more of the keybinds --- sway.mod.nix | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/sway.mod.nix b/sway.mod.nix index 3dfd33d..8f778cb 100644 --- a/sway.mod.nix +++ b/sway.mod.nix @@ -43,9 +43,38 @@ "${mod}+s" = ''exec --no-startup-id ${rofi} -run-command "/bin/sh -i -c '{cmd}'" -show combi''; # opens rofi "${mod}+Tab" = "exec --no-startup-id ${rofi} -show window"; - "${mod}+p" = ''mode "resize"''; + # "${mod}+p" = ''mode "resize"''; "${mod}+o" = "exec \${pkgs.swaylock}/bin/swaylock"; # locks the session, requiring password to unlock. + ### move focus + "${mod}+Left" = "focus left"; + "${mod}+Down" = "focus down"; + "${mod}+Up" = "focus up"; + "${mod}+Right" = "focus right"; + + ### move windows + "${mod}+Shift+Left" = "move left"; + "${mod}+Shift+Down" = "move down"; + "${mod}+Shift+Up" = "move up"; + "${mod}+Shift+Right" = "move right"; + + "${mod}+Shift+m" = "split h"; # Horizontal split + "${mod}+Shift+v" = "split v";# Vertical Split + + "${mod}+t" = "fullscreen toggle";# fullscreen + + "${mod}+r" = "layout stacking"; + "${mod}+w" = "layout tabbed"; + "${mod}+e" = "layout toggle split"; + + "${mod}+Shift+Space" = "floating toggle"; + "${mod}+Space" = "focus mode_toggle"; # change focus between tiling and floating + + "${mod}+a" = "focus parent"; + "${mod}+Shift+a" = "focus child"; + + "${mod}+Shift+c" = "reload"; # config hot-reload, probably gonna be useless cause we're on nixOS, though. + ### moves user around "${mod}+1" = "workspace number 1"; "${mod}+2" = "workspace number 2";