From 48d7cc9e32bb4f53b634b3f720ceb8570b81b368 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 10 Sep 2024 18:41:22 +0200 Subject: [PATCH] home: Add bindings to move columns between spaces --- home/config/nil/desktop.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index c3f8772..f725846 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -224,6 +224,12 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { "Mod+L".action = focus-workspace-down; "Mod+M".action = focus-workspace-up; + # Moving columns between workspaces + "Mod+Ctrl+Page_Down".action = move-column-to-workspace-down; + "Mod+Ctrl+Page_Up".action = move-column-to-workspace-up; + "Mod+Ctrl+L".action = move-column-to-workspace-down; + "Mod+Ctrl+M".action = move-column-to-workspace-up; + # Workspace movement "Mod+Shift+Page_Down".action = move-workspace-down; "Mod+Shift+Page_Up".action = move-workspace-up; @@ -233,8 +239,12 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { # Mouse wheel for workspace focus & movement "Mod+WheelScrollDown" = { cooldown-ms = 150; action = focus-workspace-down; }; "Mod+WheelScrollUp" = { cooldown-ms = 150; action = focus-workspace-up; }; - "Mod+Shift+WheelScrollDown".action = focus-column-right; - "Mod+Shift+WheelScrollUp".action = focus-column-left; + "Mod+Shift+WheelScrollDown" = { cooldown-ms = 150; action = focus-column-right; }; + "Mod+Shift+WheelScrollUp" = { cooldown-ms = 150; action = focus-column-left; }; + "Mod+Ctrl+WheelScrollDown" = { cooldown-ms = 150; action = move-column-to-workspace-down; }; + "Mod+Ctrl+WheelScrollUp" = { cooldown-ms = 150; action = move-column-to-workspace-up; }; + "Mod+Ctrl+Shift+WheelScrollDown" = { cooldown-ms = 150; action = move-column-right; }; + "Mod+Ctrl+Shift+WheelScrollUp" = { cooldown-ms = 150; action = move-column-left; }; # Column & window size (rough) "Mod+Y".action = switch-preset-column-width;