Browse Source

wm: Detect Mutter on GNOME Wayland

Michael Straube 5 years ago
parent
commit
95223a6a11
1 changed files with 5 additions and 4 deletions
  1. 5 4
      neofetch

+ 5 - 4
neofetch

@@ -1646,6 +1646,7 @@ get_wm() {
                            -e clayland \
                            -e dwc \
                            -e fireplace \
+                           -e gnome-shell \
                            -e greenfield \
                            -e grefsen \
                            -e kwin \
@@ -1678,10 +1679,6 @@ get_wm() {
             wm=${wm/\"*}
         }
 
-        # Rename window managers to their proper values.
-        [[ $wm == *WINDOWMAKER* ]]   && wm=wmaker
-        [[ $wm == *"GNOME Shell"* ]] && wm=Mutter
-
         # Fallback for non-EWMH WMs.
         [[ $wm ]] ||
             wm=$(ps "${ps_flags[@]}" | grep -m 1 -o \
@@ -1741,6 +1738,10 @@ get_wm() {
         esac
     fi
 
+    # Rename window managers to their proper values.
+    [[ $wm == *WINDOWMAKER* ]] && wm=wmaker
+    [[ $wm == *GNOME*Shell* ]] && wm=Mutter
+
     wm_run=1
 }