Source

dotfiles / .xinitrc

Full commit
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# Dbus
dbus-launch --sh-syntax --exit-with-session > /dev/null 2>&1

# Keyboard layout
setxkbmap de -variant nodeadkeys
xmodmap ~/.Xmodmap

# Who wants an audible bell?
xset b off

# Alpha transparency
xcompmgr &

# Start mpd...
mpd ~/.mpd/mpd.conf

# ... and scrobble to last.fm
pidof mpdscribble >& /dev/null
if [ $? -ne 0 ]; then
  mpdscribble &
fi

# Finally, care for logging and start awesome
LOGFILE=~/.log/awesome
mv ${LOGFILE} ${LOGFILE}-bak
date > ${LOGFILE}
exec ck-launch-session awesome >> ${LOGFILE} 2>&1