wm: Added support for more window managers.
This commit is contained in:
parent
ed237bfcbc
commit
2bb8a30a49
11
neofetch
11
neofetch
|
@ -792,17 +792,16 @@ get_wm() {
|
||||||
-e "monsterwm" \
|
-e "monsterwm" \
|
||||||
-e "tinywm")"
|
-e "tinywm")"
|
||||||
|
|
||||||
if [[ "$wm_version" == "on" ]]; then
|
if [[ "$wm_version" == "on" && "$wm" ]]; then
|
||||||
wmv="$wm $("${wm,,}" --version || \
|
wmv="$("${wm,,}" --version || "${wm,,}" -v 2>&1)"
|
||||||
"${wm,,}" -v || \
|
wmv="$wm ${wmv:-$("${wm,,}_x11" -v || "${wm,,}_wayland" -v)}"
|
||||||
"${wm,,}_x11" -v)" || \
|
|
||||||
"${wm,,}_wayland" -v")"
|
|
||||||
wmv="${wmv/$wm $wm/$wm}"
|
|
||||||
wmv="${wmv/$wm ${wm}?/$wm }"
|
wmv="${wmv/$wm ${wm}?/$wm }"
|
||||||
|
wmv="${wmv/$wm $wm/$wm}"
|
||||||
wmv="${wmv/copyright*}"
|
wmv="${wmv/copyright*}"
|
||||||
wmv="${wmv/version }"
|
wmv="${wmv/version }"
|
||||||
wmv="${wmv/©*}"
|
wmv="${wmv/©*}"
|
||||||
wmv="${wmv/(c)*}"
|
wmv="${wmv/(c)*}"
|
||||||
|
wmv="${wmv/ : }"
|
||||||
wm="$wmv"
|
wm="$wmv"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Reference in New Issue