Commit d239a057 authored by Dylan Araps's avatar Dylan Araps

wm: Show version for KDE and dwm.

parent 9d6d62ec
......@@ -794,8 +794,12 @@ get_wm() {
-e "tinywm")"
if [[ "$wm_version" == "on" ]]; then
wmv="$wm $("${wm,,}" --version || "${wm,,}" -v)"
wmv="$wm $("${wm,,}" --version || \
"${wm,,}" -v || \
"${wm,,}_x11" -v)" || \
"${wm,,}_wayland" -v")"
wmv="${wmv/$wm $wm/$wm}"
wmv="${wmv/$wm $wm-/$wm}"
wmv="${wmv/copyright*}"
wmv="${wmv/version }"
wmv="${wmv/©*}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment