aboutsummaryrefslogtreecommitdiff
path: root/examples/noswallow_dmenu
diff options
context:
space:
mode:
Diffstat (limited to 'examples/noswallow_dmenu')
-rw-r--r--examples/noswallow_dmenu17
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