Merge pull request #996 from mstraube/wmv

wm_version: add case for kwin
This commit is contained in:
Dylan Araps 2018-05-19 21:53:44 +00:00 committed by GitHub
commit 5f09c17b1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*}"