Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

No message on IPC when the monitor layout is changed

Open fdev31 opened this issue 1 year ago • 3 comments

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:

  • monitorlayoutchanged
  • monitorchanged NAME
  • monitorschanged
  • monitorschanged NAME1,NAME2

or even more specific:

  • monitormoved NAME
  • monitorscaled NAME
  • monitortransformed NAME
  • monitorupdated NAME (for everything else like frequency... ?)

fdev31 avatar May 23 '24 20:05 fdev31

monitorlayoutchanged should be enough no?

vaxerski avatar May 23 '24 21:05 vaxerski

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

fdev31 avatar May 25 '24 11:05 fdev31

I guess

vaxerski avatar May 25 '24 17:05 vaxerski

Hello there!

This issue has been closed, as we are moving from issues to discussions. More about this can be found here and in #9854.

Firstly, please make sure this issue is still relevant in latest Hyprland. If so, we ask you to open a discussion (please read the discussion guidelines first, in the pinned post)

Thank you for your understanding!

vaxerski avatar Apr 05 '25 18:04 vaxerski