mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
1.3 KiB
1.3 KiB
Overview
Since: next release
The gestures config section contains gesture settings.
For an overview of all niri gestures, see the Gestures wiki page.
Here's a quick glance at the available settings along with their default values.
gestures {
dnd-edge-view-scroll {
trigger-width 30
delay-ms 50
max-speed 1500
}
}
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 fromtrigger-widthto the very edge of the monitor.
gestures {
// Increase the trigger area and maximum speed.
dnd-edge-view-scroll {
trigger-width 100
max-speed 3000
}
}