summaryrefslogtreecommitdiff
path: root/config/X/xmonad/autostart/autostart.sh
blob: c9d75ae5e3e6fd6883231aea8760cf4abb988c3b (plain)
1
2
3
4
5
6
7
8
9
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