# ---------------------------------------------------------------------- # file: ~/.xinitrc # author: Thayer Williams - http://cinderwick.ca # modified: June 2009 # vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=sh: # ---------------------------------------------------------------------- # DBUS Session for nautilus, etc. if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval `dbus-launch --sh-syntax --exit-with-session` fi # X apps to setup the desktop xmodmap -e "keycode 113 = Super_L" # reassign Alt_R to Super_L xmodmap -e "remove mod1 = Super_L" # make sure X keeps it out of the mod1 group xset r rate 250 50 xsetroot -solid black xsetroot -cursor_name left_ptr xbindkeys nitrogen --restore #xscreensaver -no-splash & xautolock -time 5 -locker slock -nowlocker slock -detectsleep -corners 000+ -cornerdelay 3 & #xcompmgr & # delay some finicky tray apps sleep 3 { checkgmail & gajim & glipper-old & wicd-client & urxvt -e bash -c "screen -dRR $HOSTNAME.$HOSTNAME" & } # session control for SLiM/xinit case $1 in evilwm) volwheel & trayer --edge top --align right --widthtype request & exec evilwm -term urxvt -fg red -bg black -bw 2 -snap 5 -mask1 mod4+shift -mask2 mod4 -altmask control ;; *) trayer --edge top --align left --widthtype request --distance 15 --margin 120 & exec startdwm ;; esac