Open Phate6660 opened 5 years ago
Referenced here is how Neofetch does it. This is purely a reference.
https://github.com/dylanaraps/neofetch/blob/master/neofetch#L1562
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.
_NET_WM_NAME
Referenced here is how Neofetch does it. This is purely a reference.
https://github.com/dylanaraps/neofetch/blob/master/neofetch#L1562