summaryrefslogtreecommitdiff
path: root/launch
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 17:50:07 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 17:50:07 +0200
commite22232b575e6ffe9649c90de623023dc398a6241 (patch)
treefe3240676df694bff551fab9e9c81ac2ab0c0f3f /launch
parent8b23667b4e7435e96a60d99c3f5e5e9583237b18 (diff)
downloadchadscripts-e22232b575e6ffe9649c90de623023dc398a6241.tar.gz
chadscripts-e22232b575e6ffe9649c90de623023dc398a6241.tar.bz2
chadscripts-e22232b575e6ffe9649c90de623023dc398a6241.zip
new stuff
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 &