From 6d549cd459f11d9e60a553d51e8a5969e3205f5c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 12 Feb 2018 13:07:21 +1100 Subject: [PATCH] wm: Added support for non-EWMH WMs --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index 9d19b968..db2db762 100755 --- a/neofetch +++ b/neofetch @@ -773,6 +773,13 @@ get_wm() { # Window Maker does not set _NET_WM_NAME [[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker" + # Fallback for non-EWMH WMs. + [[ -z "$wm" ]] && \ + wm="$(ps -e | grep -m 1 -o -F \ + -e "catwm" \ + -e "monsterwm" \ + -e "tinywm")" + else case "$os" in "Mac OS X")