2025-02-16 09:41:50 +03:00
|
|
|
### Overview
|
|
|
|
|
|
2025-02-21 09:03:36 +03:00
|
|
|
<sup>Since: 25.02</sup>
|
2025-02-16 09:41:50 +03:00
|
|
|
|
|
|
|
|
The `gestures` config section contains gesture settings.
|
|
|
|
|
For an overview of all niri gestures, see the [Gestures](./Gestures.md) wiki page.
|
|
|
|
|
|
|
|
|
|
Here's a quick glance at the available settings along with their default values.
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
gestures {
|
|
|
|
|
dnd-edge-view-scroll {
|
|
|
|
|
trigger-width 30
|
2025-02-19 07:49:09 +03:00
|
|
|
delay-ms 100
|
2025-02-16 09:41:50 +03:00
|
|
|
max-speed 1500
|
|
|
|
|
}
|
2025-04-25 10:36:59 +03:00
|
|
|
|
|
|
|
|
dnd-edge-workspace-switch {
|
|
|
|
|
trigger-height 50
|
|
|
|
|
delay-ms 100
|
|
|
|
|
max-speed 1500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hot-corners {
|
|
|
|
|
// off
|
2025-09-16 08:10:01 -07:00
|
|
|
top-left
|
|
|
|
|
// top-right
|
|
|
|
|
// bottom-left
|
|
|
|
|
// bottom-right
|
2025-04-25 10:36:59 +03:00
|
|
|
}
|
2025-02-16 09:41:50 +03:00
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### `dnd-edge-view-scroll`
|
|
|
|
|
|
|
|
|
|
Scroll the tiling view when moving the mouse cursor against a monitor edge during drag-and-drop (DnD).
|
|
|
|
|
Also works on a touchscreen.
|
|
|
|
|
|
|
|
|
|
This will work for regular drag-and-drop (e.g. dragging a file from a file manager), and for window interactive move when targeting the tiling layout.
|
|
|
|
|
|
|
|
|
|
The options are:
|
|
|
|
|
|
|
|
|
|
- `trigger-width`: size of the area near the monitor edge that will trigger the scrolling, in logical pixels.
|
|
|
|
|
- `delay-ms`: delay in milliseconds before the scrolling starts.
|
|
|
|
|
Avoids unwanted scrolling when dragging things across monitors.
|
|
|
|
|
- `max-speed`: maximum scrolling speed in logical pixels per second.
|
|
|
|
|
The scrolling speed increases linearly as you move your mouse cursor from `trigger-width` to the very edge of the monitor.
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
gestures {
|
|
|
|
|
// Increase the trigger area and maximum speed.
|
|
|
|
|
dnd-edge-view-scroll {
|
|
|
|
|
trigger-width 100
|
|
|
|
|
max-speed 3000
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
2025-04-25 10:36:59 +03:00
|
|
|
|
|
|
|
|
### `dnd-edge-workspace-switch`
|
|
|
|
|
|
2025-05-17 13:48:29 +03:00
|
|
|
<sup>Since: 25.05</sup>
|
2025-04-25 10:36:59 +03:00
|
|
|
|
|
|
|
|
Scroll the workspaces up/down when moving the mouse cursor against a monitor edge during drag-and-drop (DnD) while in the overview.
|
|
|
|
|
Also works on a touchscreen.
|
|
|
|
|
|
|
|
|
|
The options are:
|
|
|
|
|
|
|
|
|
|
- `trigger-height`: size of the area near the monitor edge that will trigger the scrolling, in logical pixels.
|
|
|
|
|
- `delay-ms`: delay in milliseconds before the scrolling starts.
|
|
|
|
|
Avoids unwanted scrolling when dragging things across monitors.
|
|
|
|
|
- `max-speed`: maximum scrolling speed; 1500 corresponds to one screen height per second.
|
|
|
|
|
The scrolling speed increases linearly as you move your mouse cursor from `trigger-width` to the very edge of the monitor.
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
gestures {
|
|
|
|
|
// Increase the trigger area and maximum speed.
|
|
|
|
|
dnd-edge-workspace-switch {
|
|
|
|
|
trigger-height 100
|
|
|
|
|
max-speed 3000
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### `hot-corners`
|
|
|
|
|
|
2025-05-17 13:48:29 +03:00
|
|
|
<sup>Since: 25.05</sup>
|
2025-04-25 10:36:59 +03:00
|
|
|
|
|
|
|
|
Put your mouse at the very top-left corner of a monitor to toggle the overview.
|
|
|
|
|
Also works during drag-and-dropping something.
|
|
|
|
|
|
|
|
|
|
`off` disables the hot corners.
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
// Disable the hot corners.
|
|
|
|
|
gestures {
|
|
|
|
|
hot-corners {
|
|
|
|
|
off
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
2025-09-16 08:10:01 -07:00
|
|
|
|
2025-11-29 09:30:43 +03:00
|
|
|
<sup>Since: 25.11</sup> You can choose specific hot corners by name: `top-left`, `top-right`, `bottom-left`, `bottom-right`.
|
2025-09-16 08:10:01 -07:00
|
|
|
If no corners are explicitly set, the top-left corner will be active by default.
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
// Enable the top-right and bottom-right hot corners.
|
|
|
|
|
gestures {
|
|
|
|
|
hot-corners {
|
|
|
|
|
top-right
|
|
|
|
|
bottom-right
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
You can also customize hot corners per-output [in the output config](./Configuration:-Outputs.md#hot-corners).
|