LivacoNew / CrabFetch

Extremely fast, featureful and customizable command-line fetcher.
Apache License 2.0
13 stars 3 forks source link

Use Compositors to get Display module info #10

Closed LivacoNew closed 3 months ago

LivacoNew commented 3 months ago

During my college's final months crunch, during my downtime I finally took the time to learn how to interact with X11 and Wayland compositors. Finally, I'm using these to get accurate display info opposed to relying on EDID and other wacky stuff. Some notes + stuff still to do;

Wayland

Works fine from what I've tested. Todo;

x11

Requires randr to be implemented on the compositor. Refresh rates do not work, due to x11's lack of mixed refresh rates. I've also not been able to find a place in x11rb to get the global refresh rate, nor would I accept that as it's simply going to be inaccurate. Todo;