Monitors: add context for vertical monitor stacking (#666)

This commit is contained in:
Bart Ilg 2024-05-30 01:18:45 -07:00 committed by GitHub
parent 8e46ed7b30
commit 243207269e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,6 +53,25 @@ monitor=DP-1, 1920x1080, 0x0, 1
monitor=DP-2, 1920x1080, -1920x0, 1 monitor=DP-2, 1920x1080, -1920x0, 1
``` ```
Hyprland uses an inverse Y cartesian system. Thus, a negative y coordinate
places a monitor higher, and a positive y coordinate will place it lower.
For example:
```ini
monitor=DP-1, 1920x1080, 0x0, 1
monitor=DP-2, 1920x1080, 0x-1080, 1
```
will tell hyprland to make DP-2 _above_ DP-1, while
```ini
monitor=DP-1, 1920x1080, 0x0, 1
monitor=DP-2, 1920x1080, 0x1080, 1
```
will tell hyprland to make DP-2 _below_.
{{< callout type=info >}} {{< callout type=info >}}
The position is calculated with the scaled (and transformed) resolution, meaning The position is calculated with the scaled (and transformed) resolution, meaning