mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
Assigning saner keybindings to Niri.
This commit is contained in:
@@ -413,28 +413,25 @@ binds {
|
|||||||
|
|
||||||
Mod+Shift+C repeat=false hotkey-overlay-title="Close window" { close-window; }
|
Mod+Shift+C repeat=false hotkey-overlay-title="Close window" { close-window; }
|
||||||
|
|
||||||
Mod+Left { focus-column-left; }
|
// Move focus right, down, up, left
|
||||||
Mod+Down { focus-window-down; }
|
|
||||||
Mod+Up { focus-window-up; }
|
|
||||||
Mod+Right { focus-column-right; }
|
|
||||||
Mod+H hotkey-overlay-title="Focus column left" { focus-column-left; }
|
Mod+H hotkey-overlay-title="Focus column left" { focus-column-left; }
|
||||||
//Mod+J { focus-window-down; }
|
Mod+J hotkey-overlay-title="Focus window/workspace down" { focus-window-or-workspace-down; }
|
||||||
//Mod+K { focus-window-up; }
|
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+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+Down { move-window-down; }
|
||||||
Mod+Shift+Up { move-window-up; }
|
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
|
// Alternative commands that move across workspaces when reaching
|
||||||
// the first or last window in a column.
|
// 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+J { move-window-down-or-to-workspace-down; }
|
||||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||||
|
|
||||||
@@ -444,37 +441,18 @@ binds {
|
|||||||
Mod+Ctrl+End { move-column-to-last; }
|
Mod+Ctrl+End { move-column-to-last; }
|
||||||
|
|
||||||
// Switch focus of multiple monitors
|
// 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+H { focus-monitor-previous; }
|
||||||
Mod+Alt+J { focus-monitor-down; }
|
Mod+Alt+J { focus-monitor-down; }
|
||||||
Mod+Alt+K { focus-monitor-up; }
|
Mod+Alt+K { focus-monitor-up; }
|
||||||
Mod+Alt+L { focus-monitor-next; }
|
Mod+Alt+L { focus-monitor-next; }
|
||||||
|
|
||||||
// Move column to multiple monitors
|
// 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+H { move-column-to-monitor-left; }
|
||||||
Mod+Ctrl+J { move-column-to-monitor-down; }
|
Mod+Ctrl+J { move-column-to-monitor-down; }
|
||||||
Mod+Ctrl+K { move-column-to-monitor-up; }
|
Mod+Ctrl+K { move-column-to-monitor-up; }
|
||||||
Mod+Ctrl+L { move-column-to-monitor-right; }
|
Mod+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
// Alternatively, there are commands to move just a single window:
|
// Not sure what these even do, so I'm keeping them.
|
||||||
// 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+U { move-workspace-down; }
|
||||||
Mod+Ctrl+I { move-workspace-up; }
|
Mod+Ctrl+I { move-workspace-up; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user