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
1 changed files with 19 additions and 0 deletions

View File

@ -53,6 +53,25 @@ monitor=DP-1, 1920x1080, 0x0, 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 >}}
The position is calculated with the scaled (and transformed) resolution, meaning