Commit 6d549cd4 authored by Dylan Araps's avatar Dylan Araps

wm: Added support for non-EWMH WMs

parent d32fdce5
......@@ -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")
......
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