Merge pull request #676 from jorgegonzalez/master

WM: Add support for Amethyst on macOS
This commit is contained in:
Dylan Araps 2017-03-22 14:28:50 +11:00 committed by GitHub
commit 18143b4be2

View file

@ -636,9 +636,14 @@ get_wm() {
else
case "$os" in
"Mac OS X")
wm="Quartz Compositor"
ps -e | grep -q '[S]pectacle' && wm='Spectacle'
ps -e | grep -q "[k]wm" && wm="Kwm"
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm')"
case "$ps_line" in
*"kwm"*) wm="Kwm" ;;
*"Amethyst"*) wm="Amethyst" ;;
*"Spectacle"*) wm="Spectacle" ;;
*) wm="Quartz Compositor" ;;
esac
;;
"Windows")