diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-22 20:56:20 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-22 20:56:20 +0400 |
| commit | 0d2fdb49efa9006a230a89c930929c98ee1f5433 (patch) | |
| tree | 795bc68d8fd0d43d0074080cbdd35bcbd6e83985 | |
| parent | b06e51da60505bba42ef310d510f38440b897f9b (diff) | |
| download | niri-0d2fdb49efa9006a230a89c930929c98ee1f5433.tar.gz niri-0d2fdb49efa9006a230a89c930929c98ee1f5433.tar.bz2 niri-0d2fdb49efa9006a230a89c930929c98ee1f5433.zip | |
default-config: Add mouse wheel binds
| -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 |
