Detect 'i3' as wm without any globbing

This commit is contained in:
GaugeK committed 2020-08-22 04:54:12 +10:00
1 parent b7fbb8784f
commit 0ac1b7d216
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ if [ -e /proc/$$/comm ]; then
for i in /proc/*/comm; do
read -r c < "$i"
case $c in
awesome|xmonad*|qtile|sway|i3*|*box*|*wm*) wm="${c%%-*}"; break;;
awesome|xmonad*|qtile|sway|i3|*box*|*wm*) wm="${c%%-*}"; break;;
esac
done