Skip to content

Commit

Permalink
wiki: Add some floating window documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Dec 28, 2024
1 parent 9f2f288 commit 28f4e5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wiki/Floating-Windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Overview

<sup>Since: next release</sup>

Floating windows in niri always show on top of the tiled windows.
The floating layout does not scroll.
Each workspace/monitor has its own floating layout, just like each workspace/monitor has its own tiling layout.

New windows will automatically float if they have a parent (e.g. dialogs) or if they are fixed size (e.g. splash screens).
To change a window between floating and tiling, you can use the `toggle-window-floating` bind or right click while dragging/moving the window.
You can also use the `open-floating true/false` window rule to either force a window to open as floating, or to disable the automatic floating logic.

Use `switch-focus-between-floating-and-tiling` to switch the focus between the two layouts.
When focused on the floating layout, binds (like `focus-column-right`) will operate on the floating window.

You can precisely position a floating window with a command like `niri msg action move-floating-window -x 100 -y 200`.
1 change: 1 addition & 0 deletions wiki/_Sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* [Getting Started](./Getting-Started.md)
* [Example systemd Setup](./Example-systemd-Setup.md)
* [Important Software](./Important-Software.md)
* [Floating Windows](./Floating-Windows.md)
* [Layer‐Shell Components](./Layer%E2%80%90Shell-Components.md)
* [IPC, `niri msg`](./IPC.md)
* [Application-Specific Issues](./Application-Issues.md)
Expand Down

0 comments on commit 28f4e5e

Please sign in to comment.