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

View file

@ -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"
[ "$wm" == "blackbox" ] && wm="bbLean (Blackbox)"
if [ "$wm" ]; then
wm="$wm, Explorer"
else
wm="Explorer"
fi
;;
esac
fi
@ -656,7 +662,7 @@ getwmtheme() {
fi
;;
'Explorer' | 'Bugn' | 'Windawesome' | 'Emerge' | 'Litestep')
*'Explorer')
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
path+="/Windows/CurrentVersion/Themes/CurrentTheme"
@ -665,7 +671,7 @@ getwmtheme() {
wmtheme="${wmtheme%.*}"
;;
'Blackbox')
'Blackbox' | "bbLean"*)
path="$(wmic process get ExecutablePath | grep "blackbox")"
path="${path//'\'/'/'}"