rsfetch / rsfetch

Fast (~1ms execution time) and somewhat(?) minimal fetch program written in Rust.
MIT License
104 stars 6 forks source link

Better way to get WM? #41

Open Phate6660 opened 5 years ago

Phate6660 commented 5 years ago

Referenced here is how Neofetch does it. This is purely a reference.

https://github.com/dylanaraps/neofetch/blob/master/neofetch#L1562

kiedtl commented 4 years ago

A better idea: retrieve the X property _NET_WM_NAME for the root window. The downside is that WM's that aren't EWMH-compliant don't set _NET_WM_NAME and won't be detected using this method.