Browse Source

Merge pull request #1300 from rxhanson/master

WM: Add support for Rectangle on macOS
black 1 month ago
parent
commit
1345c3d268
No account linked to committer's email address
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      neofetch

+ 8
- 1
neofetch View File

@@ -1632,7 +1632,13 @@ get_wm() {
1632 1632
     else
1633 1633
         case "$os" in
1634 1634
             "Mac OS X")
1635
-                ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm\|[c]hun[k]wm\|[y]abai')"
1635
+                ps_line="$(ps -e | grep -o \
1636
+                    -e "[S]pectacle" \
1637
+                    -e "[A]methyst" \
1638
+                    -e "[k]wm" \
1639
+                    -e "[c]hun[k]wm" \
1640
+                    -e "[y]abai" \
1641
+                    -e "[R]ectangle")"
1636 1642
 
1637 1643
                 case "$ps_line" in
1638 1644
                     *"chunkwm"*)   wm="chunkwm" ;;
@@ -1640,6 +1646,7 @@ get_wm() {
1640 1646
                     *"yabai"*)     wm="yabai" ;;
1641 1647
                     *"Amethyst"*)  wm="Amethyst" ;;
1642 1648
                     *"Spectacle"*) wm="Spectacle" ;;
1649
+                    *"Rectangle"*) wm="Rectangle" ;;
1643 1650
                     *)             wm="Quartz Compositor" ;;
1644 1651
                 esac
1645 1652
             ;;

Loading…
Cancel
Save