hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.25k stars 761 forks source link

No message on IPC when the monitor layout is changed #6218

Open fdev31 opened 1 month ago

fdev31 commented 1 month ago

Description

When a monitor is layout is changed (eg: with the "monitor" keyword in hyprctl) there is no notification on the socket.

This would enable fixing some corner-case scenarios in scripts (eg: Pyprland's scratchpads) without impacting performances for 99.9% of the use-cases.

In case we have a way to query a single monitor property at the time of this ticket implementation, a list of monitors that changed their properties should be provided in the message (to enable the "micro optimization").

Different options/ideas:

or even more specific:

vaxerski commented 1 month ago

monitorlayoutchanged should be enough no?

fdev31 commented 1 month ago

Yes. Would apply to "any" monitor property change ? (position, size and transformation at least)

vaxerski commented 1 month ago

I guess