From 95223a6a11cbea7cd3fe69b4a95a4c4ad8ff9797 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Thu, 12 Dec 2019 10:59:42 +0100 Subject: [PATCH] wm: Detect Mutter on GNOME Wayland --- neofetch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 9e94c28a..585e4f8c 100755 --- a/neofetch +++ b/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 }