wm: Add support for Windows WMs and Shells
This commit is contained in:
parent
71ece3de5b
commit
4be66e94bd
1 changed files with 10 additions and 5 deletions
15
neofetch
15
neofetch
|
@ -537,18 +537,23 @@ getwm() {
|
||||||
|
|
||||||
# Fallback for Wayland wms
|
# Fallback for Wayland wms
|
||||||
case "$wm" in
|
case "$wm" in
|
||||||
"xwlc")
|
"xwlc") wm="$(ps -e | grep -m 1 -oE "sway|orbment|velox|orbital")" ;;
|
||||||
wm="$(ps -e | grep -m 1 -oE "sway|orbment|velox|orbital")"
|
|
||||||
[ "$version" -ge 4 ] && wm="${wm^}"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Mac OS X") wm="Quartz Compositor" ;;
|
"Mac OS X") wm="Quartz Compositor" ;;
|
||||||
"Windows") wm="Explorer" ;;
|
"Windows")
|
||||||
|
wm="$(tasklist | grep -m 1 -o "bugn\|Windawesome\|blackbox\|emerge\|litestep")"
|
||||||
|
[ -z "$wm" ] && wm="Explorer"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Don't uppercase i3
|
||||||
|
[ "$version" -ge 4 ] && \
|
||||||
|
[ "$wm" != "i3" ] && \
|
||||||
|
wm="${wm^}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue