summaryrefslogtreecommitdiff
path: root/config/X/xmonad/autostart/autostart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/X/xmonad/autostart/autostart.sh')
-rwxr-xr-xconfig/X/xmonad/autostart/autostart.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/X/xmonad/autostart/autostart.sh b/config/X/xmonad/autostart/autostart.sh
new file mode 100755
index 0000000..c9d75ae
--- /dev/null
+++ b/config/X/xmonad/autostart/autostart.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+cd $HOME/.config/xmonad/autostart/
+for script in *.sh
+do
+ if [ "./$script" != "$0" ] && [ -z "$(ps aux | grep "$script" | head -n -1)" ]
+ then
+ echo "started $script"
+ setsid ./$script &
+ fi
+done