Files
dotfiles/x/xinitrc

42 lines
800 B
Plaintext
Raw Normal View History

#!/bin/bash
2017-01-23 17:00:40 +01:00
export LOGFILE="$LOGDIR/xinitrc.log"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
}
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() {
2018-08-16 07:25:01 +02:00
if [ -d "$HOME/.autostart" ] ; then
2018-02-05 20:09:46 +01:00
log "Looking for autostart files."
for f in "$HOME/.autostart/"*.sh ; do
2018-08-16 07:25:01 +02:00
if [ -x "$f" ] ; then
2018-02-05 20:09:46 +01:00
log "Executing autostart file \"$f\""
2018-08-16 07:25:01 +02:00
"$f" >>"${LOGFILE}" 2>&1
2018-02-05 20:09:46 +01:00
fi
done
fi
}
2015-09-25 16:25:48 +02:00
2018-08-16 07:25:01 +02:00
exec >> "$LOGFILE" 2>&1
set -x
log "the"
2018-02-05 20:09:46 +01:00
autostart
2018-08-16 07:25:01 +02:00
log "fuck"
2014-06-14 00:26:03 +02:00
start_wm