aboutsummaryrefslogtreecommitdiff
path: root/examples/scripts
diff options
context:
space:
mode:
authorJopStro <[email protected]>2020-06-26 11:07:58 +0100
committerJopStro <[email protected]>2020-06-26 11:07:58 +0100
commit5331d610b7b8aef58dcb7c7b0f18c346f7327df3 (patch)
treee9af232d61e2b4ac23b1f7469c2128cf4286155e /examples/scripts
parent2b94e1d2ddb485821ad8ddf57394e693c68cfb77 (diff)
Move noswallow dmenu to a dedicated scripts folder
Diffstat (limited to 'examples/scripts')
-rw-r--r--examples/scripts/noswallow_dmenu17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/scripts/noswallow_dmenu b/examples/scripts/noswallow_dmenu
new file mode 100644
index 0000000..cf442b7
--- /dev/null
+++ b/examples/scripts/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