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