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

# Start URxvt daemon so we can quickly open the other clients
urxvtd -q -o -f
[[ -x "/usr/bin/unclutter" -a -z "`pidof unclutter`" ]] && \
unclutter -idle 5 -root&

# Set Wallpaper with nitrogen
eval `nitrogen --restore` &

# Set mouse cursor and background colour
xsetroot -cursor_name left_ptr -solid '#090909' &

# Launch tray and statusbar
~/.dzen.sh | dzen2 -e 'onstart=lower' -p -ta r -fn '-misc-fixed-*-*-*-*-8-*-*-*-*-*-*-*' -bg '#2e3436' -fg '#babdb6' -h 16 -x 300 -y 0 -w 624 &
trayer --edge top --align right --widthtype pixel --width 100 --SetPartialStrut true --SetDockType true --heighttype pixel --height 16 --tint 0x2e3436 --transparent true --alpha 0 &
# Launch applications on boot :
xfce4-clipman &
icedove &
liferea &
irexec &
xfce4-notifyd &
wicd-client &
# Launch WM
exec xmonad
