Merge pull request #1300 from rxhanson/master

WM: Add support for Rectangle on macOS
This commit is contained in:
black 2019-08-11 01:23:45 +03:00 committed by GitHub
commit 1345c3d268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1632,7 +1632,13 @@ get_wm() {
else
case "$os" in
"Mac OS X")
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm\|[c]hun[k]wm\|[y]abai')"
ps_line="$(ps -e | grep -o \
-e "[S]pectacle" \
-e "[A]methyst" \
-e "[k]wm" \
-e "[c]hun[k]wm" \
-e "[y]abai" \
-e "[R]ectangle")"
case "$ps_line" in
*"chunkwm"*) wm="chunkwm" ;;
@ -1640,6 +1646,7 @@ get_wm() {
*"yabai"*) wm="yabai" ;;
*"Amethyst"*) wm="Amethyst" ;;
*"Spectacle"*) wm="Spectacle" ;;
*"Rectangle"*) wm="Rectangle" ;;
*) wm="Quartz Compositor" ;;
esac
;;