wm: Added support for non-EWMH WMs

This commit is contained in:
Dylan Araps 2018-02-12 13:07:21 +11:00
parent d32fdce506
commit 6d549cd459

View file

@ -773,6 +773,13 @@ get_wm() {
# Window Maker does not set _NET_WM_NAME # Window Maker does not set _NET_WM_NAME
[[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker" [[ "$wm" =~ "WINDOWMAKER" ]] && wm="wmaker"
# Fallback for non-EWMH WMs.
[[ -z "$wm" ]] && \
wm="$(ps -e | grep -m 1 -o -F \
-e "catwm" \
-e "monsterwm" \
-e "tinywm")"
else else
case "$os" in case "$os" in
"Mac OS X") "Mac OS X")