diff options
| -rw-r--r-- | resources/default-config.kdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 1b6cddf2..e72df426 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -519,6 +519,27 @@ binds { Mod+Shift+U { move-workspace-down; } Mod+Shift+I { move-workspace-up; } + // You can bind mouse wheel scroll ticks using the following syntax. + // To avoid scrolling through workspaces really fast, you can use + // the cooldown-ms property. The bind will be rate-limited to this value. + // You can set a cooldown on any bind, but it's most useful for the wheel. + Mod+WheelDown cooldown-ms=150 { focus-workspace-down; } + Mod+WheelUp cooldown-ms=150 { focus-workspace-up; } + Mod+Ctrl+WheelDown cooldown-ms=150 { move-column-to-workspace-down; } + Mod+Ctrl+WheelUp cooldown-ms=150 { move-column-to-workspace-up; } + + Mod+WheelRight { focus-column-right; } + Mod+WheelLeft { focus-column-left; } + Mod+Ctrl+WheelRight { move-column-right; } + Mod+Ctrl+WheelLeft { move-column-left; } + + // Usually scrolling up and down with Shift in applications results in + // horizontal scrolling; these binds replicate that. + Mod+Shift+WheelDown { focus-column-right; } + Mod+Shift+WheelUp { focus-column-left; } + Mod+Ctrl+Shift+WheelDown { move-column-right; } + Mod+Ctrl+Shift+WheelUp { move-column-left; } + // You can refer to workspaces by index. However, keep in mind that // niri is a dynamic workspace system, so these commands are kind of // "best effort". Trying to refer to a workspace index bigger than |
