aboutsummaryrefslogtreecommitdiff
path: root/examples/noswallow_dmenu
blob: cf442b77db52e7a9da282d6a19497843015099c0 (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
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