aboutsummaryrefslogtreecommitdiff
path: root/examples/scripts/noswallow_dmenu
blob: 3afd83a2f1d552bd30334e60249c7d04c329dc84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Allows for dmenu_run to be used without swallowing the terminal

killall bspswallow
dmenu_run

# Hang until dmenu is closed
while pidof dmenu; do continue
done

#If you frequently use dmenu_run without spawing a window commentout this while loop and uncomment the commented out part below
bspc subscribe node_add | while read -r event; do
bspswallow & exit
done

# sleep 2
# bspswallow & exit