Merge pull request #996 from mstraube/wmv
wm_version: add case for kwin
This commit is contained in:
commit
5f09c17b1e
1 changed files with 4 additions and 2 deletions
6
neofetch
6
neofetch
|
@ -1594,8 +1594,10 @@ get_wm() {
|
||||||
-e "tinywm")"
|
-e "tinywm")"
|
||||||
|
|
||||||
if [[ "$wm_version" == "on" && "$wm" ]]; then
|
if [[ "$wm_version" == "on" && "$wm" ]]; then
|
||||||
wmv="$("${wm,,}" --version || "${wm,,}" -v 2>&1)"
|
case "$wm" in
|
||||||
wmv="$wm ${wmv:-$("${wm,,}_x11" -v || "${wm,,}_wayland" -v)}"
|
"KWin") wmv="$wm $("${wm,,}_x11" -v || "${wm,,}_wayland" -v)" ;;
|
||||||
|
*) wmv="$("${wm,,}" --version || "${wm,,}" -v 2>&1)" ;;
|
||||||
|
esac
|
||||||
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*}"
|
||||||
|
|
Loading…
Reference in a new issue