From 2a4f82a31770c1d9e4adcf803b265182ff5e721d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:47:48 +1100 Subject: [PATCH 1/4] 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//'\'/'/'}" From a76bd6b91388bff43bcfe82cd8864f89a13e23cc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:51:00 +1100 Subject: [PATCH 2/4] Fix --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 4422a399..cd0f7c24 100755 --- a/neofetch +++ b/neofetch @@ -545,9 +545,9 @@ getwm() { "Mac OS X") wm="Quartz Compositor" ;; "Windows") wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")" + [ "$wm" == "Blackbox" ] && wm="bbLean (Blackbox)" - if ["$wm" ]; then - [ "$wm" == "Blackbox" ] && wm="bbLean (Blackbox)" + if [ "$wm" ]; then wm="$wm, Explorer" else wm="Explorer" From 20de28779d429087f9bd1e7d32bee55e1d53e1a4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:52:31 +1100 Subject: [PATCH 3/4] Fix --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index cd0f7c24..fe29dfa7 100755 --- a/neofetch +++ b/neofetch @@ -545,7 +545,7 @@ getwm() { "Mac OS X") wm="Quartz Compositor" ;; "Windows") wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")" - [ "$wm" == "Blackbox" ] && wm="bbLean (Blackbox)" + [ "$wm" == "blackbox" ] && wm="bbLean (Blackbox)" if [ "$wm" ]; then wm="$wm, Explorer" From 03e6e8c992fcd7eead6b43ff39b8b6f226abf9b9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:55:41 +1100 Subject: [PATCH 4/4] Fix --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fe29dfa7..73ee3760 100755 --- a/neofetch +++ b/neofetch @@ -662,7 +662,7 @@ getwmtheme() { fi ;; - 'Explorer' | 'Bugn' | 'Windawesome' | 'Emerge' | 'Litestep') + *'Explorer') path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft" path+="/Windows/CurrentVersion/Themes/CurrentTheme"