Unverified Commit 1345c3d2 authored by black's avatar black Committed by GitHub

Merge pull request #1300 from rxhanson/master

WM: Add support for Rectangle on macOS
parents 81545a01 5dc00cba
...@@ -1632,7 +1632,13 @@ get_wm() { ...@@ -1632,7 +1632,13 @@ get_wm() {
else else
case "$os" in case "$os" in
"Mac OS X") "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 case "$ps_line" in
*"chunkwm"*) wm="chunkwm" ;; *"chunkwm"*) wm="chunkwm" ;;
...@@ -1640,6 +1646,7 @@ get_wm() { ...@@ -1640,6 +1646,7 @@ get_wm() {
*"yabai"*) wm="yabai" ;; *"yabai"*) wm="yabai" ;;
*"Amethyst"*) wm="Amethyst" ;; *"Amethyst"*) wm="Amethyst" ;;
*"Spectacle"*) wm="Spectacle" ;; *"Spectacle"*) wm="Spectacle" ;;
*"Rectangle"*) wm="Rectangle" ;;
*) wm="Quartz Compositor" ;; *) wm="Quartz Compositor" ;;
esac esac
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment