nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
334 stars 22 forks source link

Improve disabling/enabling monitors on Hyprland #46

Closed nwg-piotr closed 5 months ago

nwg-piotr commented 5 months ago

From now on we rely on the difference between hyprctl monitors all and hyprctl monitors output to detect disabled monitors. One thing remains unresolved: disabled monitors in hyprctl monitors all have always x and y coordinate equal 0, so we have no way to restore their previous position.

Also: the DPMS check button works on Hyprland now. As Hyprland does not save this value in monitor settings, we use the dispatcher: hyprctl dispatch dpms on|off <monitor-name>.

Closes #42