From ba53331bd2f127166c445f9b76858d406baac749 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 15 Jan 2026 20:51:15 -0600 Subject: [PATCH] Assigning saner keybindings to Niri. --- .config/niri/config.kdl | 50 ++++++++++++----------------------------- 1 file changed, 14 insertions(+), 36 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index aa295ec..83f8d7e 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -413,28 +413,25 @@ binds { Mod+Shift+C repeat=false hotkey-overlay-title="Close window" { close-window; } - Mod+Left { focus-column-left; } - Mod+Down { focus-window-down; } - Mod+Up { focus-window-up; } - Mod+Right { focus-column-right; } + // Move focus right, down, up, left Mod+H hotkey-overlay-title="Focus column left" { focus-column-left; } - //Mod+J { focus-window-down; } - //Mod+K { focus-window-up; } + Mod+J hotkey-overlay-title="Focus window/workspace down" { focus-window-or-workspace-down; } + Mod+K hotkey-overlay-title="Focus window/workspace up" { focus-window-or-workspace-up; } Mod+L hotkey-overlay-title="Focus column right"{ focus-column-right; } - Mod+Shift+Left { move-column-left; } + // Move columns right, down, up, left + Mod+Shift+H { move-column-left; } + Mod+Shift+J { move-column-to-workspace-down; } + Mod+Shift+K { move-column-to-workspace-up; } + Mod+Shift+L { move-column-right; } + + // These are useful moving windows up/down in tabbed columns. + // Using arrow keys because I'm running out of HJKL keybinds. 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. - Mod+J hotkey-overlay-title="Focus window/workspace down" { focus-window-or-workspace-down; } - Mod+K hotkey-overlay-title="Focus window/workspace up" { focus-window-or-workspace-up; } // Mod+Ctrl+J { move-window-down-or-to-workspace-down; } // Mod+Ctrl+K { move-window-up-or-to-workspace-up; } @@ -444,39 +441,20 @@ binds { Mod+Ctrl+End { move-column-to-last; } // Switch focus of multiple monitors - Mod+Alt+Left { focus-monitor-previous; } - Mod+Alt+Down { focus-monitor-down; } - Mod+Alt+Up { focus-monitor-up; } - Mod+Alt+Right { focus-monitor-next; } Mod+Alt+H { focus-monitor-previous; } Mod+Alt+J { focus-monitor-down; } Mod+Alt+K { focus-monitor-up; } Mod+Alt+L { focus-monitor-next; } // Move column to multiple monitors - Mod+Ctrl+Left { move-column-to-monitor-left; } - Mod+Ctrl+Down { move-column-to-monitor-down; } - Mod+Ctrl+Up { move-column-to-monitor-up; } - Mod+Ctrl+Right { move-column-to-monitor-right; } Mod+Ctrl+H { move-column-to-monitor-left; } Mod+Ctrl+J { move-column-to-monitor-down; } Mod+Ctrl+K { move-column-to-monitor-up; } Mod+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+U { focus-workspace-down; } - Mod+I { focus-workspace-up; } - Mod+Shift+U { move-column-to-workspace-down; } - Mod+Shift+I { move-column-to-workspace-up; } - Mod+Ctrl+U { move-workspace-down; } - Mod+Ctrl+I { move-workspace-up; } + // Not sure what these even do, so I'm keeping them. + Mod+Ctrl+U { move-workspace-down; } + Mod+Ctrl+I { move-workspace-up; } // You can bind mouse wheel scroll ticks using the following syntax. // These binds will change direction based on the natural-scroll setting.