From c583d06780443fe615223d3677f55e31556dc616 Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez Date: Wed, 22 Feb 2017 12:37:01 -0500 Subject: [PATCH 1/2] WM: Add support for Kwm on macOS --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0c13f5e2..2d1f6f74 100755 --- a/neofetch +++ b/neofetch @@ -629,7 +629,10 @@ get_wm() { else case "$os" in - "Mac OS X") wm="Quartz Compositor" ;; + "Mac OS X") + wm="Quartz Compositor" + [[ "$(ps -e | grep '[k]wm')" ]] && wm="Kwm" + ;; "Windows") wm="$(tasklist | grep -m 1 -o -F -e "bugn" -e "Windawesome" -e "blackbox" -e "emerge" -e "litestep")" [[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)" From 8c3fef53963fc94f203d1752fd26aefb8de0cb99 Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez Date: Wed, 22 Feb 2017 17:19:52 -0500 Subject: [PATCH 2/2] Modify ps line --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 2d1f6f74..c0051833 100755 --- a/neofetch +++ b/neofetch @@ -631,7 +631,7 @@ get_wm() { case "$os" in "Mac OS X") wm="Quartz Compositor" - [[ "$(ps -e | grep '[k]wm')" ]] && wm="Kwm" + ps -e | grep -F -q "kwm" && wm="Kwm" ;; "Windows") wm="$(tasklist | grep -m 1 -o -F -e "bugn" -e "Windawesome" -e "blackbox" -e "emerge" -e "litestep")"