end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.16k stars 204 forks source link

Use `GDK` to determine the monitor geometry. #436

Closed DiXN closed 2 months ago

DiXN commented 2 months ago

With GDK the screen height and width can be determined. This has the added benefit that if scaling is applied, it reports the final screen width and height after scaling. This solves various scaling issues, as reported in https://github.com/end-4/dots-hyprland/issues/424 and https://github.com/end-4/dots-hyprland/issues/417. I also had some ideas on how to consider different screen sizes for multiple monitors in https://github.com/end-4/dots-hyprland/issues/424#issuecomment-2067395463.

end-4 commented 2 months ago

I've made ags get monitor size from hyprctl 18de9e2fea19f919dce04c1a6dafa7b49903716a, which is better for #424, I'll explain why in that thread Thanks for your PR anyway!