wm: Added support for non-EWMH WMs
This commit is contained in:
parent
d32fdce506
commit
6d549cd459
1 changed files with 7 additions and 0 deletions
7
neofetch
7
neofetch
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue