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
1 changed files with 7 additions and 0 deletions

View File

@ -773,6 +773,13 @@ get_wm() {
# Window Maker does not set _NET_WM_NAME
[[ "$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
case "$os" in
"Mac OS X")