Document the Overview and other new things
Browse files at this commit85cd64e83017459f0a6edfd7b91ba31d70b0ef17Parent: 55c14ee5 changed files +149 -2
- wiki/Configuration:-Gestures.md +53 -0
- wiki/Configuration:-Miscellaneous.md +20 -2
- wiki/Gestures.md +23 -0
- wiki/Overview.md +52 -0
- wiki/_Sidebar.md +1 -0
wiki/Configuration:-Gestures.mdmodified+53 -0
| @@ -14,6 +14,16 @@ gestures { | |||
| 14 | delay-ms 100 | 14 | delay-ms 100 |
| 15 | max-speed 1500 | 15 | max-speed 1500 |
| 16 | } | 16 | } |
| 17 | + | ||
| 18 | + dnd-edge-workspace-switch { | ||
| 19 | + trigger-height 50 | ||
| 20 | + delay-ms 100 | ||
| 21 | + max-speed 1500 | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + hot-corners { | ||
| 25 | + // off | ||
| 26 | + } | ||
| 17 | } | 27 | } |
| 18 | ``` | 28 | ``` |
| 19 | 29 | ||
| @@ -41,3 +51,46 @@ gestures { | |||
| 41 | } | 51 | } |
| 42 | } | 52 | } |
| 43 | ``` | 53 | ``` |
| 54 | + | ||
| 55 | +### `dnd-edge-workspace-switch` | ||
| 56 | + | ||
| 57 | +<sup>Since: next release</sup> | ||
| 58 | + | ||
| 59 | +Scroll the workspaces up/down when moving the mouse cursor against a monitor edge during drag-and-drop (DnD) while in the overview. | ||
| 60 | +Also works on a touchscreen. | ||
| 61 | + | ||
| 62 | +The options are: | ||
| 63 | + | ||
| 64 | +- `trigger-height`: size of the area near the monitor edge that will trigger the scrolling, in logical pixels. | ||
| 65 | +- `delay-ms`: delay in milliseconds before the scrolling starts. | ||
| 66 | +Avoids unwanted scrolling when dragging things across monitors. | ||
| 67 | +- `max-speed`: maximum scrolling speed; 1500 corresponds to one screen height per second. | ||
| 68 | +The scrolling speed increases linearly as you move your mouse cursor from `trigger-width` to the very edge of the monitor. | ||
| 69 | + | ||
| 70 | +```kdl | ||
| 71 | +gestures { | ||
| 72 | + // Increase the trigger area and maximum speed. | ||
| 73 | + dnd-edge-workspace-switch { | ||
| 74 | + trigger-height 100 | ||
| 75 | + max-speed 3000 | ||
| 76 | + } | ||
| 77 | +} | ||
| 78 | +``` | ||
| 79 | + | ||
| 80 | +### `hot-corners` | ||
| 81 | + | ||
| 82 | +<sup>Since: next release</sup> | ||
| 83 | + | ||
| 84 | +Put your mouse at the very top-left corner of a monitor to toggle the overview. | ||
| 85 | +Also works during drag-and-dropping something. | ||
| 86 | + | ||
| 87 | +`off` disables the hot corners. | ||
| 88 | + | ||
| 89 | +```kdl | ||
| 90 | +// Disable the hot corners. | ||
| 91 | +gestures { | ||
| 92 | + hot-corners { | ||
| 93 | + off | ||
| 94 | + } | ||
| 95 | +} | ||
| 96 | +``` | ||
wiki/Configuration:-Miscellaneous.mdmodified+20 -2
| @@ -1,5 +1,3 @@ | |||
| 1 | -### Overview | ||
| 2 | - | ||
| 3 | This page documents all top-level options that don't otherwise have dedicated pages. | 1 | This page documents all top-level options that don't otherwise have dedicated pages. |
| 4 | 2 | ||
| 5 | Here are all of these options at a glance: | 3 | Here are all of these options at a glance: |
| @@ -25,6 +23,10 @@ cursor { | |||
| 25 | hide-after-inactive-ms 1000 | 23 | hide-after-inactive-ms 1000 |
| 26 | } | 24 | } |
| 27 | 25 | ||
| 26 | +overview { | ||
| 27 | + zoom 0.5 | ||
| 28 | +} | ||
| 29 | + | ||
| 28 | clipboard { | 30 | clipboard { |
| 29 | disable-primary | 31 | disable-primary |
| 30 | } | 32 | } |
| @@ -143,6 +145,22 @@ cursor { | |||
| 143 | } | 145 | } |
| 144 | ``` | 146 | ``` |
| 145 | 147 | ||
| 148 | +### `overview` | ||
| 149 | + | ||
| 150 | +<sup>Since: next release</sup> | ||
| 151 | + | ||
| 152 | +Settings for the [Overview](./Overview.md). | ||
| 153 | + | ||
| 154 | +`zoom` controls how much the workspaces zoom out in the overview. | ||
| 155 | +It ranges from 0 to 0.75 where lower values make everything smaller. | ||
| 156 | + | ||
| 157 | +```kdl | ||
| 158 | +// Make workspaces four times smaller than normal in the overview. | ||
| 159 | +overview { | ||
| 160 | + zoom 0.25 | ||
| 161 | +} | ||
| 162 | +``` | ||
| 163 | + | ||
| 146 | ### `clipboard` | 164 | ### `clipboard` |
| 147 | 165 | ||
| 148 | <sup>Since: 25.02</sup> | 166 | <sup>Since: 25.02</sup> |
wiki/Gestures.mdmodified+23 -0
| @@ -68,3 +68,26 @@ Move the view horizontally with three-finger horizontal swipes. | |||
| 68 | 68 | ||
| 69 | Scroll the tiling view when moving the mouse cursor against a monitor edge during drag-and-drop (DnD). | 69 | Scroll the tiling view when moving the mouse cursor against a monitor edge during drag-and-drop (DnD). |
| 70 | Also works on a touchscreen. | 70 | Also works on a touchscreen. |
| 71 | + | ||
| 72 | +#### Drag-and-Drop Edge Workspace Switch | ||
| 73 | + | ||
| 74 | +<sup>Since: next release</sup> | ||
| 75 | + | ||
| 76 | +Scroll the workspaces up/down when moving the mouse cursor against a monitor edge during drag-and-drop (DnD) while in the overview. | ||
| 77 | +Also works on a touchscreen. | ||
| 78 | + | ||
| 79 | +#### Drag-and-Drop Hold to Activate | ||
| 80 | + | ||
| 81 | +<sup>Since: next release</sup> | ||
| 82 | + | ||
| 83 | +While drag-and-dropping, hold your mouse over a window to activate it. | ||
| 84 | +This will bring a floating window to the top for example. | ||
| 85 | + | ||
| 86 | +In the overview, you can also hold the mouse over a workspace to switch to it. | ||
| 87 | + | ||
| 88 | +#### Hot Corner to Toggle the Overview | ||
| 89 | + | ||
| 90 | +<sup>Since: next release</sup> | ||
| 91 | + | ||
| 92 | +Put your mouse at the very top-left corner of a monitor to toggle the overview. | ||
| 93 | +Also works during drag-and-dropping something. | ||
wiki/Overview.mdadded+52 -0
| @@ -0,0 +1,52 @@ | |||
| 1 | +### Overview | ||
| 2 | + | ||
| 3 | +<sup>Since: next release</sup> | ||
| 4 | + | ||
| 5 | +The Overview is a zoomed-out view of your workspaces and windows. | ||
| 6 | +It lets you see what's going on at a glance, navigate, and drag windows around. | ||
| 7 | + | ||
| 8 | +Open it with the `toggle-overview` bind, via the top-left hot corner, or via a touchpad four-finger swipe up. | ||
| 9 | +While in the overview, all keyboard binds keep working, while pointing devices get easier: | ||
| 10 | + | ||
| 11 | +- Mouse: left click for interactive-move, right click to scroll a workspace left/right (no holding Mod required). | ||
| 12 | +- Touchpad: two-finger scrolling that matches the normal three-finger gestures. | ||
| 13 | +- Touchscreen: one-finger scrolling, or one-finger long press for interactive move. | ||
| 14 | + | ||
| 15 | +> [!TIP] | ||
| 16 | +> The overview needs to draw a background under every workspace. | ||
| 17 | +> So, layer-shell surfaces work this way: the *background* and *bottom* layers zoom out and remain under workspaces, while the *top* and *overlay* layers remain on top of the overview. | ||
| 18 | +> | ||
| 19 | +> Put your bar on the *top* layer. | ||
| 20 | + | ||
| 21 | +Drag-and-drop will scroll the workspaces up/down in the overview, and will activate a workspace if you hold it above for a moment. | ||
| 22 | +Combined with the hot corner, this lets you do a mouse-only DnD across workspaces. | ||
| 23 | + | ||
| 24 | +https://github.com/user-attachments/assets/5f09c5b7-ff40-462b-8b9c-f1b8073a2cbb | ||
| 25 | + | ||
| 26 | +You can also drag-and-drop a window to a new workspace above, below, or in-between existing workspaces. | ||
| 27 | + | ||
| 28 | +https://github.com/user-attachments/assets/b76d5349-aa20-4889-ab90-0a51554c789d | ||
| 29 | + | ||
| 30 | +### Configuration | ||
| 31 | + | ||
| 32 | +Overview settings are in the [`overview`](./Configuration:-Miscellaneous.md#overview) section at the top level of the config. | ||
| 33 | + | ||
| 34 | +You can set the zoom-out level like this: | ||
| 35 | + | ||
| 36 | +```kdl | ||
| 37 | +// Make workspaces four times smaller than normal in the overview. | ||
| 38 | +overview { | ||
| 39 | + zoom 0.25 | ||
| 40 | +} | ||
| 41 | +``` | ||
| 42 | + | ||
| 43 | +You can also disable the hot corner: | ||
| 44 | + | ||
| 45 | +```kdl | ||
| 46 | +// Disable the hot corners. | ||
| 47 | +gestures { | ||
| 48 | + hot-corners { | ||
| 49 | + off | ||
| 50 | + } | ||
| 51 | +} | ||
| 52 | +``` | ||
wiki/_Sidebar.mdmodified+1 -0
| @@ -5,6 +5,7 @@ | |||
| 5 | * [Workspaces](./Workspaces.md) | 5 | * [Workspaces](./Workspaces.md) |
| 6 | * [Floating Windows](./Floating-Windows.md) | 6 | * [Floating Windows](./Floating-Windows.md) |
| 7 | * [Tabs](./Tabs.md) | 7 | * [Tabs](./Tabs.md) |
| 8 | +* [Overview](./Overview.md) | ||
| 8 | * [Screencasting](./Screencasting.md) | 9 | * [Screencasting](./Screencasting.md) |
| 9 | * [Layer‐Shell Components](./Layer%E2%80%90Shell-Components.md) | 10 | * [Layer‐Shell Components](./Layer%E2%80%90Shell-Components.md) |
| 10 | * [IPC, `niri msg`](./IPC.md) | 11 | * [IPC, `niri msg`](./IPC.md) |