screenFetch
screenFetch copied to clipboard
EWMH Hints should have priority
I think that for EWMH-compliant window managers the _NET_WM_NAME should be given priority. I have a fork of i3 and would like screenfetch to recognize it under its name, but since i3 is detected first, the EWMH hint will not be considered.
This also makes sense in general, though. If the wm offers its name, it should be taken. Looking up processes and mapping that (or so I understand it works right now) by going through a hardcoded list should be the fallback.
I definitely agree. That's a part of the code I should revisit soon and I'll definitely find a way to do this. :)