Merge pull request #1300 from rxhanson/master
WM: Add support for Rectangle on macOS
This commit is contained in:
commit
1345c3d268
1 changed files with 8 additions and 1 deletions
9
neofetch
9
neofetch
|
@ -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() {
|
||||||
*"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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue