Fix autostarting

This commit is contained in:
2018-02-05 20:09:46 +01:00
parent d506385ff0
commit 9d4e39a21f

View File

@@ -21,5 +21,17 @@ start_wm() {
exec i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
}
autostart() {
if [[ -d "$HOME/.autostart" ]] ; then
log "Looking for autostart files."
for f in "$HOME/.autostart/"*.sh ; do
if [[ -x "$f" ]] ; then
log "Executing autostart file \"$f\""
. "$f"
fi
done
fi
}
autostart
start_wm