summaryrefslogtreecommitdiff
path: root/launch
diff options
context:
space:
mode:
Diffstat (limited to 'launch')
-rwxr-xr-xlaunch14
1 files changed, 14 insertions, 0 deletions
diff --git a/launch b/launch
new file mode 100755
index 0000000..16add49
--- /dev/null
+++ b/launch
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+launch_list="$HOME/.config/launch.list"
+
+if [ ! -r "$launch_list" ]; then
+ notify-send "Launcher Error" "Program list not found: $launch_list"
+ exit 1
+fi
+
+prog="$( dmenu -l 30 -i -p "Choose a program to launch:" < "$launch_list" )"
+
+[ -z "$prog" ] && exit 0
+
+setsid "$prog" > /dev/null 2>&1 &