Modify ps line

This commit is contained in:
Jorge Gonzalez 2017-02-22 17:19:52 -05:00 committed by GitHub
parent c583d06780
commit 8c3fef5396
1 changed files with 1 additions and 1 deletions

View File

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