From 515b62ddcc84e5eb4f0f6359076b43625cd1ddbb Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Mon, 17 Mar 2025 11:48:12 -0500 Subject: [PATCH] niri: shift around keybinds to make room for workspace moves --- templates/.config/niri/config.kdl | 58 +++++++++++++------------------ 1 file changed, 25 insertions(+), 33 deletions(-) diff --git a/templates/.config/niri/config.kdl b/templates/.config/niri/config.kdl index d94ec2e..7d28520 100644 --- a/templates/.config/niri/config.kdl +++ b/templates/.config/niri/config.kdl @@ -97,7 +97,7 @@ layout { // preset-window-heights { } // You can change the default width of the new windows. - default-column-width { proportion 0.33333; } + default-column-width { proportion 0.5; } // If you leave the brackets empty, the windows themselves will decide their initial width. // default-column-width {} @@ -306,14 +306,14 @@ binds { Mod+K { focus-window-up; } Mod+L { focus-column-right; } - Mod+Ctrl+Left { move-column-left; } - Mod+Ctrl+Down { move-window-down; } - Mod+Ctrl+Up { move-window-up; } - Mod+Ctrl+Right { move-column-right; } - Mod+Ctrl+H { move-column-left; } - Mod+Ctrl+J { move-window-down; } - Mod+Ctrl+K { move-window-up; } - Mod+Ctrl+L { move-column-right; } + Mod+Shift+Left { move-column-left; } + Mod+Shift+Down { move-window-down; } + Mod+Shift+Up { move-window-up; } + Mod+Shift+Right { move-column-right; } + Mod+Shift+H { move-column-left; } + Mod+Shift+J { move-window-down; } + Mod+Shift+K { move-window-up; } + Mod+Shift+L { move-column-right; } // Alternative commands that move across workspaces when reaching // the first or last window in a column. @@ -327,31 +327,23 @@ binds { Mod+Ctrl+Home { move-column-to-first; } Mod+Ctrl+End { move-column-to-last; } - Mod+Shift+Left { focus-monitor-left; } - Mod+Shift+Down { focus-monitor-down; } - Mod+Shift+Up { focus-monitor-up; } - Mod+Shift+Right { focus-monitor-right; } - Mod+Shift+H { focus-monitor-left; } - Mod+Shift+J { focus-monitor-down; } - Mod+Shift+K { focus-monitor-up; } - Mod+Shift+L { focus-monitor-right; } + Mod+Ctrl+Left { focus-monitor-left; } + Mod+Ctrl+Down { focus-monitor-down; } + Mod+Ctrl+Up { focus-monitor-up; } + Mod+Ctrl+Right { focus-monitor-right; } + Mod+Ctrl+H { focus-monitor-left; } + Mod+Ctrl+J { focus-monitor-down; } + Mod+Ctrl+K { focus-monitor-up; } + Mod+Ctrl+L { focus-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; } - 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; } - - // Alternatively, there are commands to move just a single window: - // Mod+Shift+Ctrl+Left { move-window-to-monitor-left; } - // ... - - // And you can also move a whole workspace to another monitor: - // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } - // ... + Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } + Mod+Shift+Ctrl+Down { move-workspace-to-monitor-down; } + Mod+Shift+Ctrl+Up { move-workspace-to-monitor-up; } + Mod+Shift+Ctrl+Right { move-workspace-to-monitor-right; } + Mod+Shift+Ctrl+H { move-workspace-to-monitor-left; } + Mod+Shift+Ctrl+J { move-workspace-to-monitor-down; } + Mod+Shift+Ctrl+K { move-workspace-to-monitor-up; } + Mod+Shift+Ctrl+L { move-workspace-to-monitor-right; } Mod+Page_Down { focus-workspace-down; } Mod+Page_Up { focus-workspace-up; }