end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.94k stars 267 forks source link

[Feature] Support for dynamically adding/removing monitors #551

Open Cu3PO42 opened 4 months ago

Cu3PO42 commented 4 months ago

What would you like to be added?
I would like to dynamically add and remove monitor-specific windows, such as the bar, when new monitors are connected or removed.

How will it help
I commonly plug and unplug my laptop into various monitors/docking stations/... at work and currently need to restart illogical-impulse to have the bar show up on all monitors.

Extra info
I'm happy to implement this if you'll accept a PR.

end-4 commented 4 months ago

It sounds like a lot of work and I don't use an external monitor, so feel free to make a PR

end-4 commented 4 months ago

Note that we might have to turn everything into callbacks instead of instances first

Cu3PO42 commented 4 months ago

Yeah, it's definitely a non-trivial endeavour. I did get started on this yesterday, and while it's not as easy as I had hoped (due to GDK not exposing some state that would be really helpful), it seems doable overall.