Open coderPaddyS opened 2 months ago
Having the same issue, after suspend/resume or reboot eww sees the monitor order differently which puts my bars in the wrong location. wayland-info and hyprctl monitors always shows the correct info, order is not changed there.
I have tried using the JSON monitor matcher but specifying DP-1/2/3 doesn't seem to do anything, only matching the monitor model is working but as I have 3 screens and 2 are of the same model this is a problem.
Making matching possible on display port, e.g. DP-1/2/3 would be a nice solution and I guess according to the docs this should be working so this probably is a bug?
Yea, I've noticed the issue that monitor specifications on wayland are kind of annoyingly meaningless. I haven't yet figured out how to get any more specific info through GTK, though -- if anyone has any ideas or would be willing to tackle an implementation of a fix for this, I'd love that! GTK doesn't give me all that much info about the underlying wayland monitor, and I'm unsure how much details I can get about the monitor in a standardized way on wayland either way :/
I'm not that experienced with the wayland protocol and gtk, but it seems that migrating to gtk4 would atleast allow to get the monitor information in an easy fashion. Would it be feasible to migrate? Is a migration even wanted? If so, I'd could try to implement the migration, but someone with more experience should most definitely look at it thoroughly and it would most likely not be backwards compatible to the gtk3 based config.
There is some discussion and a proposed fix for another bar here:
https://github.com/Aylur/ags/issues/363
Maybe this could help you? If I can do anything to debug this, let me know.
Checklist before submitting an issue
Description of the bug
Spawning a widget on each monitor is only possible, if they aren't the same model. If they are, eww will spawn the widget on the same monitor. Using the monitor serial primarily and the model as fallback (or any property specified by the user) or the monitor description would resolve this issue. Usage of an index as id could be a solution, but sometimes the monitor ordering is not the same as reported by the DE (in my case Hyprland) as seen below. Eww uses the same ordering in which my DE lists the monitors, not by the ID.
Reproducing the issue
The monitor ordering:
Expected behaviour
Eww spawns a window on each monitor correctly by specifying the serial, model or description of the monitor.
Additional context