fix wm rc scripts sometimes getting picked up as the wm

This commit is contained in:
gk committed 2021-07-07 12:58:06 +10:00
1 parent 6d83dfcac9
commit 06fa2da09b
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ if [ -e /proc/$$/comm ]; then
for i in /proc/*/comm; do for i in /proc/*/comm; do
read -r c < "$i" read -r c < "$i"
case $c in case $c in
*bar*) ;; *bar*|*rc) ;;
awesome|xmonad*|qtile|sway|i3|[bfo]*box|*wm*) wm=${c%%-*}; break;; awesome|xmonad*|qtile|sway|i3|[bfo]*box|*wm*) wm=${c%%-*}; break;;
esac esac
done done