mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
wm: Added support for non-EWMH WMs
This commit is contained in:
7
neofetch
7
neofetch
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user