noswallow_dmenu (412B)
1 #!/bin/sh 2 # Allows for dmenu_run to be used without swallowing the terminal 3 4 killall bspswallow 5 dmenu_run "$@" 6 7 # Hang until dmenu is closed 8 while pidof dmenu; do continue 9 done 10 11 #If you frequently use dmenu_run without spawing a window commentout this while loop and uncomment the commented out part below 12 # bspc subscribe node_add | while read -r event; do 13 # bspswallow & exit 14 # done 15 16 sleep 2 17 bspswallow & exit