Merge pull request #375 from dylanaraps/blackbox

wm: Windows tweaks
This commit is contained in:
Dylan Araps 2016-10-17 19:56:53 +11:00 committed by GitHub
commit 3d3b61fc24
1 changed files with 9 additions and 3 deletions

View File

@ -545,7 +545,13 @@ getwm() {
"Mac OS X") wm="Quartz Compositor" ;; "Mac OS X") wm="Quartz Compositor" ;;
"Windows") "Windows")
wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")" wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")"
[ -z "$wm" ] && wm="Explorer" [ "$wm" == "blackbox" ] && wm="bbLean (Blackbox)"
if [ "$wm" ]; then
wm="$wm, Explorer"
else
wm="Explorer"
fi
;; ;;
esac esac
fi fi
@ -656,7 +662,7 @@ getwmtheme() {
fi fi
;; ;;
'Explorer' | 'Bugn' | 'Windawesome' | 'Emerge' | 'Litestep') *'Explorer')
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft" path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
path+="/Windows/CurrentVersion/Themes/CurrentTheme" path+="/Windows/CurrentVersion/Themes/CurrentTheme"
@ -665,7 +671,7 @@ getwmtheme() {
wmtheme="${wmtheme%.*}" wmtheme="${wmtheme%.*}"
;; ;;
'Blackbox') 'Blackbox' | "bbLean"*)
path="$(wmic process get ExecutablePath | grep "blackbox")" path="$(wmic process get ExecutablePath | grep "blackbox")"
path="${path//'\'/'/'}" path="${path//'\'/'/'}"