From 34cc511a04d622cf7960e0cfef6242cd05a165e4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 11 Aug 2024 12:06:25 -0400 Subject: [PATCH] sway: add tab and split binds --- homeManagerModules/desktop/sway/README.md | 2 ++ homeManagerModules/desktop/sway/settings.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/homeManagerModules/desktop/sway/README.md b/homeManagerModules/desktop/sway/README.md index e19385c9..9d9f5029 100644 --- a/homeManagerModules/desktop/sway/README.md +++ b/homeManagerModules/desktop/sway/README.md @@ -67,6 +67,8 @@ ______________________________________________________________________ - SUPER + F11: Show/hide top panel. - SUPER + TAB: Open Window list. - SUPER + V: Toggle floating window. +- SUPER SHIFT + Backslash: Toggle vertical/horizontal splits. +- SUPER SHIFT + G: Toggle tabbed layout. - SUPER SHIFT + W: Toggle fullscreen. #### Focus diff --git a/homeManagerModules/desktop/sway/settings.nix b/homeManagerModules/desktop/sway/settings.nix index b793d26e..bcb89e5f 100644 --- a/homeManagerModules/desktop/sway/settings.nix +++ b/homeManagerModules/desktop/sway/settings.nix @@ -98,7 +98,9 @@ in { "${modifier}+Period" = "workspace next"; "${modifier}+R" = "exec ${lib.getExe config.programs.rofi.package} -show combi"; "${modifier}+S" = "scratchpad show"; + "${modifier}+Shift+Backslash" = "layout toggle split"; "${modifier}+Shift+Comma" = "move container to workspace prev; workspace prev"; + "${modifier}+Shift+G" = "layout toggle splitv tabbed"; "${modifier}+Shift+Period" = "move container to workspace next; workspace next"; "${modifier}+Shift+R" = "exec ${lib.getExe config.programs.rofi.package} -show run"; "${modifier}+Shift+S" = "move scratchpad";