#!/bin/sh - XRESOURCES=${XRESOURCES-$HOME/etc/xresources.ad} export XRESOURCES # .xinitrc - personalized X11 client startup script # Steve Kinzler, kinzler@cs.indiana.edu, Oct 93 # http://www.cs.indiana.edu/~kinzler/home.html#x11 cd $HOME/work || exit $? unset WINDOWID export WINDOWID xterm="`xterm -which`" case "$xterm" in /*) XTERM="$xterm"; export XTERM;; esac host=${HOST-${HOSTNAME-`(hostname) 2> /dev/null`}} case "$host" in '') host=`uname -n`;; esac constype=`(constype) 2> /dev/null` # run any VirtualBox Guest Additions client so we can disable mouse integration # and entirely capture the mouse for proper ctwm/xwit/etc functioning sh /etc/X11/Xsession.d/98vboxadd-xclient 2> /dev/null & xrdb -Uunix -Usun ${XRESOURCES-$HOME/.Xdefaults} (audioctl -s; audioctl -v 12; env LANG=C speckeysd) 2> /dev/null & case "$LINUX" in ?*) case "$host" in [pl]kinzler*) LINUX=del; export LINUX; xmod del;; *) LINUX=bs; export LINUX;; esac;; esac case "$host" in #alamoff*) xmod numpad;; alembic*|alamo*|trendy*|transit*|[pl]kinzler*) xmod ctrl esc;; aludel*|dkinzler) xmod ctrl;; *) xmod fun;; esac ############################################################################### xt -C -name xterm-console & (xset fp+ /l/fonts/TrueType xset fp+ /l/fonts/85dpi,/l/fonts/charsets,/l/fonts/75koi8) & xset r rate 200 25 2> /dev/null & xwit -keyrepeat 103 130 & # Page Up/Down MAILHtit=`echo $MAILHOST | sed 's/\..*//'` MAILHTIT=`echo $MAILHtit | tr '[a-z]' '[A-Z]'` export MAILHTIT MAILHtit (xt -name xterm-MAIN -N $MAILHTIT $MAILHOST; sleep 1 xt -name xterm-main -N $MAILHtit $MAILHOST) & case "$MAILHOST" in $host*) facemon -G xmail &;; esac case "$host" in [dpu]kinzler*|aludel*) XOSVWM0=; XLOAD=alamode; XLOAD2=alembic; XLOAD3= XLOADM0=-half; XLOADM=-half; XLOADM2=; XLOADM3=;; alembic*) XOSVWM0=-third; XLOAD=alamode; XLOAD2=trendy; XLOAD3=transit XLOADM0=-third; XLOADM=-third; XLOADM2=-half; XLOADM3=-half;; swank*) XOSVWM0=; XLOAD=alamode; XLOAD2=alembic; XLOAD3=trendy XLOADM0=-half; XLOADM=-half; XLOADM2=; XLOADM3=;; alamode*) XOSVWM0=; XLOAD=alembic; XLOAD2=trendy; XLOAD3= XLOADM0=-half; XLOADM=-half; XLOADM2=; XLOADM3=;; alamoff*|trendy*|transit*) XOSVWM0=-third; XLOAD=alamode; XLOAD2=alembic; XLOAD3= XLOADM0=-third; XLOADM=-third; XLOADM2=-half; XLOADM3=;; *) XOSVWM0=; XLOAD=alamode; XLOAD2=alembic; XLOAD3= XLOADM0=; XLOADM=; XLOADM2=; XLOADM3=;; esac export XOSVWM0 XLOAD XLOAD2 XLOAD3 XLOADM0 XLOADM XLOADM2 XLOADM3 xcb -name xcb-placed & #dclock -date '%w, %d %m %y' & #1988 #dclock -date '%a %e %b %y %Z%z' & dclock -date '%a %y-%m-%d %Z%z' & xload -name xload-local$XLOADM0 & test -n "$XLOADM0" && xosview -name xosview-local$XOSVWM0 & xrsh $XLOAD xload -name xload$XLOADM & test "$XLOADM" = -third && xrsh $XLOAD xosview -name xosview-dflt & #if (temp -n) > /dev/null 2>&1 #then # temp -x -name xtherm-placed & #else xrsh $XLOAD2 xload -name xload-other$XLOADM2 & test -n "$XLOADM2" && xrsh $XLOAD2 xosview -name xosview-other & if test -n "$XLOAD3" then xrsh $XLOAD3 xload -name xload-other2$XLOADM3 & test -n "$XLOADM3" && xrsh $XLOAD3 xosview -name xosview-other2 & fi #fi xeyes -name xeyes-placed & #test -f ../.icq/micqrc && xterm -e micq & #test -d ../.Skype && sleep 5 && skype & case "$host" in dkinzler*|swank*|trendy*|transit*) rhn-applet-gui &;; esac case "$host" in ukinzler*) ;; # absent or doesn't work well in Ubuntu 11.10 *) gnome-panel &;; esac screensaver start & xhost - > /dev/null & imgbg RANDOM 1 2 3 4 test ! -d $HOME/.mozilla && { mkdir $HOME/.mozilla chmod 700 $HOME/.mozilla; } cp $HOME/etc/img/netscape.xpm $HOME/.mozilla/icon.xpm LANG=en_US; export LANG # for 8-bit window titles, see also binp/x case "$XWM" in ?*) kitty & $XWM;; *) ctwm=${CTWM-ctwm} case "`($ctwm -display xBOGUSx) 2>&1`" in *isplay*|*xBOGUSx*) $ctwm -W -f ${CTWMRC-$HOME/.ctwmrc};; *) kitty & twm -f ${TWMRC-$HOME/.twmrc};; esac;; esac ############################################################################### case "$constype" in ?*) kbd_mode -a (clear_colormap) 2> /dev/null;; esac