2013-09-18 18:01:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2017-01-23 17:00:40 +01:00
|
|
|
export LOGFILE="$LOGDIR/xinitrc.log"
|
2014-04-22 22:15:26 +02:00
|
|
|
|
|
|
|
|
log() {
|
|
|
|
|
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-18 18:01:16 +02:00
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/*; do
|
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
|
done
|
|
|
|
|
unset f
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
[ -f /etc/xprofile ] && source /etc/xprofile
|
|
|
|
|
[ -f ~/.xprofile ] && source ~/.xprofile
|
|
|
|
|
|
2014-06-14 00:26:03 +02:00
|
|
|
start_wm() {
|
2015-09-25 16:25:48 +02:00
|
|
|
log "starting i3"
|
|
|
|
|
exec i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
|
2014-06-14 00:26:03 +02:00
|
|
|
}
|
|
|
|
|
|
2018-02-05 20:09:46 +01:00
|
|
|
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
|
|
|
|
|
}
|
2015-09-25 16:25:48 +02:00
|
|
|
|
2018-02-05 20:09:46 +01:00
|
|
|
autostart
|
2014-06-14 00:26:03 +02:00
|
|
|
start_wm
|