wm: Detect Mutter on GNOME Wayland
This commit is contained in:
parent
231c8fb245
commit
95223a6a11
9
neofetch
9
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
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue