Merge pull request #660 from jorgegonzalez/master

WM: Add support for Kwm on macOS
This commit is contained in:
Dylan Araps 2017-02-23 14:18:51 +11:00 committed by GitHub
commit 6c8d8f2cc6

View file

@ -629,7 +629,10 @@ get_wm() {
else
case "$os" in
"Mac OS X") wm="Quartz Compositor" ;;
"Mac OS X")
wm="Quartz Compositor"
ps -e | grep -q "[k]wm" && wm="Kwm"
;;
"Windows")
wm="$(tasklist | grep -m 1 -o -F -e "bugn" -e "Windawesome" -e "blackbox" -e "emerge" -e "litestep")"
[[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)"