From 3ab1b9326b331ffe4f6c50114b78580571127fd8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:02:53 +1100 Subject: [PATCH 1/4] wmtheme: Add support for Blackbox --- neofetch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neofetch b/neofetch index 2881819b..0812868e 100755 --- a/neofetch +++ b/neofetch @@ -665,6 +665,14 @@ getwmtheme() { wmtheme="${wmtheme%.*}" ;; + 'Blackbox') + path="$(wmic process get ExecutablePath | grep "blackbox")" + + wmtheme="$(grep 'session.styleFile:' "${path/'.exe'/.rc}")" + wmtheme="${wmtheme/'session.styleFile: '}" + wmtheme="${wmtheme##*/}" + wmtheme="${wmtheme%.*}" + ;; esac wmtheme="${wmtheme//\'}" From 1136ca820c0fd68261389e93d442cd0c607eb9bb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:14:19 +1100 Subject: [PATCH 2/4] Fix path errors --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0812868e..c77e003c 100755 --- a/neofetch +++ b/neofetch @@ -667,8 +667,9 @@ getwmtheme() { 'Blackbox') path="$(wmic process get ExecutablePath | grep "blackbox")" + path="${path//'\'/'/'}" - wmtheme="$(grep 'session.styleFile:' "${path/'.exe'/.rc}")" + wmtheme="$(grep "^session\.styleFile:" ${path/'.exe'/.rc})" wmtheme="${wmtheme/'session.styleFile: '}" wmtheme="${wmtheme##*/}" wmtheme="${wmtheme%.*}" From 1799ad84b87c607036704f3423c6b7086f88efa2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:15:42 +1100 Subject: [PATCH 3/4] Fix path errors --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index c77e003c..1e6c2dc4 100755 --- a/neofetch +++ b/neofetch @@ -669,9 +669,9 @@ getwmtheme() { path="$(wmic process get ExecutablePath | grep "blackbox")" path="${path//'\'/'/'}" - wmtheme="$(grep "^session\.styleFile:" ${path/'.exe'/.rc})" + wmtheme="$(grep "^session\.styleFile:" ${path/\.exe/.rc})" wmtheme="${wmtheme/'session.styleFile: '}" - wmtheme="${wmtheme##*/}" + wmtheme="${wmtheme##*\\}" wmtheme="${wmtheme%.*}" ;; esac From 14bba15f9ae5e89bd890b4f6931c4df9bfe24199 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 19:22:15 +1100 Subject: [PATCH 4/4] Show explorer theme for other Wms/Shells --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 1e6c2dc4..51f192c4 100755 --- a/neofetch +++ b/neofetch @@ -656,7 +656,7 @@ getwmtheme() { fi ;; - 'Explorer') + 'Explorer' | 'Bugn' | 'Windawesome' | 'Emerge' | 'Litestep') path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft" path+="/Windows/CurrentVersion/Themes/CurrentTheme"