mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-18 19:30:46 +00:00
Don't detect sandbox as WM (Closes #23)
Check if string starts with 'b', 'f', or 'o' and ends with 'box' (blackbox, fluxbox, openbox)
This commit is contained in:
1 parent
accf87f751
commit
ea9abc7ffb
1 file changed
+2
-4
@@ -51,14 +51,12 @@ if [ -e /proc/$$/comm ]; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
## WM/DE
|
## WM/DE
|
||||||
# standard variables, mostly used for DEs
|
[ ! "$wm" ] &&
|
||||||
[ "$DISPLAY" ] && [ ! "$wm" ] &&
|
|
||||||
# non-standard WMs
|
|
||||||
# loop over all processes and check the binary name
|
# loop over all processes and check the binary name
|
||||||
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
|
||||||
awesome|xmonad*|qtile|sway|i3|*box*|*wm*) wm="${c%%-*}"; break;;
|
awesome|xmonad*|qtile|sway|i3|[bfo]*box|*wm*) wm="${c%%-*}"; break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user