From 2a4f82a31770c1d9e4adcf803b265182ff5e721d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:47:48 +1100 Subject: [PATCH] Show bbLean instead of Blackbox --- neofetch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 51f192c4..4422a399 100755 --- a/neofetch +++ b/neofetch @@ -545,7 +545,13 @@ getwm() { "Mac OS X") wm="Quartz Compositor" ;; "Windows") wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")" - [ -z "$wm" ] && wm="Explorer" + + if ["$wm" ]; then + [ "$wm" == "Blackbox" ] && wm="bbLean (Blackbox)" + wm="$wm, Explorer" + else + wm="Explorer" + fi ;; esac fi @@ -665,7 +671,7 @@ getwmtheme() { wmtheme="${wmtheme%.*}" ;; - 'Blackbox') + 'Blackbox' | "bbLean"*) path="$(wmic process get ExecutablePath | grep "blackbox")" path="${path//'\'/'/'}"