WM: Add support for Kwm on macOS

This commit is contained in:
Jorge Gonzalez 2017-02-22 12:37:01 -05:00
parent 953979937f
commit c583d06780
No known key found for this signature in database
GPG key ID: AD2671B01BB1E086

View file

@ -629,7 +629,10 @@ get_wm() {
else else
case "$os" in case "$os" in
"Mac OS X") wm="Quartz Compositor" ;; "Mac OS X")
wm="Quartz Compositor"
[[ "$(ps -e | grep '[k]wm')" ]] && wm="Kwm"
;;
"Windows") "Windows")
wm="$(tasklist | grep -m 1 -o -F -e "bugn" -e "Windawesome" -e "blackbox" -e "emerge" -e "litestep")" wm="$(tasklist | grep -m 1 -o -F -e "bugn" -e "Windawesome" -e "blackbox" -e "emerge" -e "litestep")"
[[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)" [[ "$wm" == "blackbox" ]] && wm="bbLean (Blackbox)"