diff options
| author | JopStro <[email protected]> | 2020-06-26 11:05:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-26 11:05:40 +0100 |
| commit | 2b94e1d2ddb485821ad8ddf57394e693c68cfb77 (patch) | |
| tree | da4b415d1c688186a2cfdcfaa564ca8ed5809eb9 | |
| parent | acc23a4536470df8dc99285ddb97748b000198f3 (diff) | |
Create noswallow_dmenu
| -rw-r--r-- | examples/noswallow_dmenu | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/noswallow_dmenu b/examples/noswallow_dmenu new file mode 100644 index 0000000..cf442b7 --- /dev/null +++ b/examples/noswallow_dmenu @@ -0,0 +1,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 |
