From 81443d8e164b018919d703a662870488a6a994b2 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 15 Jan 2024 10:46:53 +0400 Subject: Change default binds to move columns instead of windows --- README.md | 8 +++---- resources/default-config.kdl | 53 ++++++++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 77436afb..4dd9f294 100644 --- a/README.md +++ b/README.md @@ -132,13 +132,13 @@ The general system is: if a hotkey switches somewhere, then adding CtrlModHome and ModEnd | Focus the first or the last column | | ModCtrlHome and ModCtrlEnd | Move the focused column to the very start or to the very end | | ModShiftHJKL or ModShift | Focus the monitor to the side | -| ModCtrlShiftHJKL or ModCtrlShift | Move the focused window to the monitor to the side | +| ModCtrlShiftHJKL or ModCtrlShift | Move the focused column to the monitor to the side | | ModU or ModPageDown | Switch to the workspace below | | ModI or ModPageUp | Switch to the workspace above | -| ModCtrlU or ModCtrlPageDown | Move the focused window to the workspace below | -| ModCtrlI or ModCtrlPageUp | Move the focused window to the workspace above | +| ModCtrlU or ModCtrlPageDown | Move the focused column to the workspace below | +| ModCtrlI or ModCtrlPageUp | Move the focused column to the workspace above | | Mod19 | Switch to a workspace by index | -| ModCtrl19 | Move the focused window to a workspace by index | +| ModCtrl19 | Move the focused column to a workspace by index | | ModShiftU or ModShiftPageDown | Move the focused workspace down | | ModShiftI or ModShiftPageUp | Move the focused workspace up | | Mod, | Consume the window to the right into the focused column | diff --git a/resources/default-config.kdl b/resources/default-config.kdl index eec4838b..85539b43 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -236,23 +236,31 @@ binds { Mod+Shift+Up { focus-monitor-up; } Mod+Shift+Right { focus-monitor-right; } - Mod+Shift+Ctrl+H { move-window-to-monitor-left; } - Mod+Shift+Ctrl+J { move-window-to-monitor-down; } - Mod+Shift+Ctrl+K { move-window-to-monitor-up; } - Mod+Shift+Ctrl+L { move-window-to-monitor-right; } - Mod+Shift+Ctrl+Left { move-window-to-monitor-left; } - Mod+Shift+Ctrl+Down { move-window-to-monitor-down; } - Mod+Shift+Ctrl+Up { move-window-to-monitor-up; } - Mod+Shift+Ctrl+Right { move-window-to-monitor-right; } + Mod+Shift+Ctrl+H { move-column-to-monitor-left; } + Mod+Shift+Ctrl+J { move-column-to-monitor-down; } + Mod+Shift+Ctrl+K { move-column-to-monitor-up; } + Mod+Shift+Ctrl+L { move-column-to-monitor-right; } + Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } + Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } + Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } + Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } + + // Alternatively, there are commands to move just a single window: + // Mod+Shift+Ctrl+Left { move-window-to-monitor-left; } + // ... Mod+U { focus-workspace-down; } Mod+I { focus-workspace-up; } Mod+Page_Down { focus-workspace-down; } Mod+Page_Up { focus-workspace-up; } - Mod+Ctrl+U { move-window-to-workspace-down; } - Mod+Ctrl+I { move-window-to-workspace-up; } - Mod+Ctrl+Page_Down { move-window-to-workspace-down; } - Mod+Ctrl+Page_Up { move-window-to-workspace-up; } + Mod+Ctrl+U { move-column-to-workspace-down; } + Mod+Ctrl+I { move-column-to-workspace-up; } + Mod+Ctrl+Page_Down { move-column-to-workspace-down; } + Mod+Ctrl+Page_Up { move-column-to-workspace-up; } + + // Alternatively, there are commands to move just a single window: + // Mod+Ctrl+Page_Down { move-window-to-workspace-down; } + // ... Mod+Shift+U { move-workspace-down; } Mod+Shift+I { move-workspace-up; } @@ -268,15 +276,18 @@ binds { Mod+7 { focus-workspace 7; } Mod+8 { focus-workspace 8; } Mod+9 { focus-workspace 9; } - Mod+Ctrl+1 { move-window-to-workspace 1; } - Mod+Ctrl+2 { move-window-to-workspace 2; } - Mod+Ctrl+3 { move-window-to-workspace 3; } - Mod+Ctrl+4 { move-window-to-workspace 4; } - Mod+Ctrl+5 { move-window-to-workspace 5; } - Mod+Ctrl+6 { move-window-to-workspace 6; } - Mod+Ctrl+7 { move-window-to-workspace 7; } - Mod+Ctrl+8 { move-window-to-workspace 8; } - Mod+Ctrl+9 { move-window-to-workspace 9; } + Mod+Ctrl+1 { move-column-to-workspace 1; } + Mod+Ctrl+2 { move-column-to-workspace 2; } + Mod+Ctrl+3 { move-column-to-workspace 3; } + Mod+Ctrl+4 { move-column-to-workspace 4; } + Mod+Ctrl+5 { move-column-to-workspace 5; } + Mod+Ctrl+6 { move-column-to-workspace 6; } + Mod+Ctrl+7 { move-column-to-workspace 7; } + Mod+Ctrl+8 { move-column-to-workspace 8; } + Mod+Ctrl+9 { move-column-to-workspace 9; } + + // Alternatively, there are commands to move just a single window: + // Mod+Ctrl+1 { move-window-to-workspace 1; } Mod+Comma { consume-window-into-column; } Mod+Period { expel-window-from-column; } -- cgit