awesome/autostart.sh

7 lines
194 B
Bash
Executable File

if [ -d "$HOME/.config/autostart" ]; then
for file in $HOME/.config/autostart/*; do
command=$(cat $file | grep '^Exec=' | head -n 1 | cut -d '=' -f 2-)
$command&
done
fi