diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-09-10T14·51+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2024-09-11T21·34+0000 |
commit | 7fa52f5933b107e23e1a7ca00b568aa977c8488a (patch) | |
tree | b6eb763f7d6d8df38cce9f0ef022021c2aa75e2c /users/tazjin | |
parent | e573f8389cad4168ed13a4c4e788415dbcfb994d (diff) |
refactor(tazjin/niri): configure seamless monitor/column movements r/8667
Makes it possible to just keep switching focus or moving a column in the direction of the target screen. This is MUCH easier to think about. Change-Id: I0488b8d338261b83327dc476e0173b222de9221a Reviewed-on: https://cl.tvl.fyi/c/depot/+/12467 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/dotfiles/niri.config.kdl | 46 |
1 files changed, 14 insertions, 32 deletions
diff --git a/users/tazjin/dotfiles/niri.config.kdl b/users/tazjin/dotfiles/niri.config.kdl index 8a9ed39f5a29..68893f706787 100644 --- a/users/tazjin/dotfiles/niri.config.kdl +++ b/users/tazjin/dotfiles/niri.config.kdl @@ -77,19 +77,19 @@ binds { Mod+Q { close-window; } - Mod+Left { focus-column-left; } - Mod+Right { focus-column-right; } - Mod+Down { focus-column-right; } - Mod+Up { focus-column-left; } - Mod+J { focus-column-left; } - Mod+K { focus-column-right; } + Mod+Left { focus-column-or-monitor-left; } + Mod+Right { focus-column-or-monitor-right; } + Mod+Down { focus-column-or-monitor-right; } + Mod+Up { focus-column-or-monitor-left; } + Mod+J { focus-column-or-monitor-left; } + Mod+K { focus-column-or-monitor-right; } Mod+L { focus-window-up; } Mod+Semicolon { focus-window-down; } - Mod+Ctrl+Left { move-column-left; } - Mod+Ctrl+Right { move-column-right; } - Mod+Ctrl+J { move-column-left; } - Mod+Ctrl+K { move-column-right; } + Mod+Ctrl+Left { move-column-left-or-to-monitor-left; } + Mod+Ctrl+Right { move-column-right-or-to-monitor-right; } + Mod+Ctrl+J { move-column-left-or-to-monitor-left; } + Mod+Ctrl+K { move-column-right-or-to-monitor-right; } Mod+Home { focus-column-first; } Mod+End { focus-column-last; } @@ -97,29 +97,11 @@ 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+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; } - // Scroll (or move windows) between columns when holding the modifier down. - Mod+WheelScrollDown cooldown-ms=150 { focus-column-right; } - Mod+WheelScrollUp cooldown-ms=150 { focus-column-left; } - Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-right; } - Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-left; } + Mod+WheelScrollDown cooldown-ms=150 { focus-column-or-monitor-right; } + Mod+WheelScrollUp cooldown-ms=150 { focus-column-or-monitor-left; } + Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-right-or-to-monitor-right; } + Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-left-or-to-monitor-left; } Mod+Comma { consume-window-into-column; } Mod+Period { expel-window-from-column; } |