Hyprland
Hyprland copied to clipboard
Autodetected autoscaled monitors are placed incorrectly
With two 4k monitors hyprland correctly detects and scales them, but places using the absolute (unscaled) coordinates:
$ hyprctl monitors
Monitor DP-1 (ID 0):
[email protected] at 0x0
description: LG Electronics LG HDR 4K 0x00005F5C (DP-1)
active workspace: 1 (1)
reserved: 0 24 0 0
scale: 1.50
transform: 0
focused: yes
dpmsStatus: 1
Monitor DP-2 (ID 1):
[email protected] at 3840x0
description: LG Electronics LG Ultra HD 0x00004B63 (DP-2)
active workspace: 2 (2)
reserved: 0 24 0 0
scale: 1.50
transform: 0
focused: no
dpmsStatus: 1
Consequently I cannot move the mouse off either monitor, although workspace switching still works. After manually configuring the monitors things work again:
$ grep monitor ~/.config/hypr/hyprland.conf
#monitor=,preferred,auto,auto
monitor=DP-1,3840x2160@60,0x0,1.5
monitor=DP-2,3840x2160@60,2560x0,1.5
$ hyprctl monitors
Monitor DP-1 (ID 0):
[email protected] at 0x0
description: LG Electronics LG HDR 4K 0x00005F5C (DP-1)
active workspace: 1 (1)
reserved: 0 24 0 0
scale: 1.50
transform: 0
focused: yes
dpmsStatus: 1
Monitor DP-2 (ID 1):
[email protected] at 2560x0
description: LG Electronics LG Ultra HD 0x00004B63 (DP-2)
active workspace: 2 (2)
reserved: 0 24 0 0
scale: 1.50
transform: 0
focused: no
dpmsStatus: 1
The autoplacing logic should take into account the applied scale.
Separately, hyprland is wonderful, thank you very much!