Please bear with us as we work to restore functionality to dotfiles.org.
# ~/.xinitrc -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# Set to 1 if you use a full-featured desktop environment (KDE/Gnome/Xfce)
# and to 0 if you use a window manager (Openbox, Fluxbox, FVWM, Awesome, etc.)
__desktop=1
# If you just want to test if X11 is working, uncomment this
#exec xterm
# Settings for the proprietary nvidia driver
nvidia-settings --load-config-only &
#nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1 & # may improve performance, but may cause problems
#[ -r "$HOME/.Xresources ] && xrdb -load "$HOME/.Xresources"
#[ -r "$HOME/.Xmodmap ] && xmodmap "$HOME/.Xmodmap"
numlockx &
xsetroot -solid black &
xsetroot -cursor_name left_ptr &
xset b off &
#xset +fp ~/.fonts fp rehash &
# When monitor should go into standby, suspend, off mode (seconds)
xset dpms 1800 3600 7200 &
# Keyboard autorepeat settings; turn it off for my multimedia keys
xset r rate 250 50 &
xset -r 237 -r 236 -r 178 -r 161 -r 162 -r 174 -r 176 -r 160 &
if ! pidof xbindkeys; then
xbindkeys &
fi
if ! pidof urxvtd; then
urxvtd -q -o -f
fi
if [ -a /data/tmp/rtorrent/session/rtorrent.lock ]; then
echo "[`date +'%F %R'`] rtorrent didn't exit properly, removing lock file..."
rm -f /data/tmp/rtorrent/session/rtorrent.lock
fi
# The most important thing :)
urxvt -title "* SCREEN * @ $HOSTNAME" -e screen -D -R -a -A -S $HOSTNAME.default &
if [ "$__desktop" = 1 ]; then
export OOO_FORCE_DESKTOP="kde"
# If you use KDE, this is used for the appearance setting "Apply colors
# to Non-KDE applications" (or whatever it's called).
# KDE may append it to your .bashrc if it doesn't exist.
# Don't know if this is still the case with newer KDE versions.
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
exec startkde
else
export OOO_FORCE_DESKTOP="gnome"
if ! pidof xscreensaver; then
xscreensaver -no-splash &
fi
#xcompmgr & # shadows and fades
#xcompmgr -cC -t-3 -l-5 -r5 -o.65 & # shadows
#xcompmgr -cCfF -r7 -o.65 -l-10 -t-8 -D7 & # shadows and fades
xcompmgr -cC -t-3 -l-5 -r5 -I0.02 -O0.03 -D4 -fF &
nitrogen --restore &
thunar --daemon &
pypanel &
exec openbox-session
fi
#-----------------------------------------------------------------------------
#vim: set fenc=utf-8 ft=sh sts=4 sw=4 ts=4 et :