#! /bin/sh # Set the path properly so we can find locally installed programs. PATH=/usr/X11R6/bin:/usr/local/X11/bin:$PATH export PATH # No one else should be accessing my X server, thank you very much. xhost - # See to it that the X server can find my own set of fonts. #xset +fp $HOME/lib/x11fonts #xset +fp $HOME/lib/x11fonts/artwiz # Since I tend to sit an X terminal with no NFS access these day, I # want to use the font server: xset fp+ tcp/10.0.0.2:7100 # Make the screen black and make the default cursor nicer, that is, if # I ever see it. xsetroot -solid black -cursor_name left_ptr # Load my application resources. xrdb -load ~/.Xresources # Figure out with the help of the DISPLAY variable and the hname what # keymap I want to use. If we're not running on a local display or the # hostname is unknown to us, do nothing. hname=`hostname -s` echo Using $DISPLAY if [ $DISPLAY = ":0.0" ] || [ $DISPLAY = ":0" ] then if [ -f $HOME/lib/xmodmap/$hname ] then echo Loading keymap for $hname xmodmap $HOME/lib/xmodmap/$hname fi elif [ $DISPLAY = "10.0.0.254:3.0" ] then echo Loading keymap for X terminal. xmodmap $HOME/lib/xmodmap/ibmpc-se.xmodmap fi # Run a program to hide the mouse pointer when inactive. Very useful. unclutter & # Use this to check for mail and light a LED on the keyboard. # if [ -f /usr/local/bin/ledbiff ] # then # /usr/local/bin/ledbiff -l 3 -s 15 & # fi # Update the keyboard rate to my liking. Really fast action and many # repeats. xset r rate 250 45 # Don't beep at me! Ever! xset b off # Use dclock if there is one. dclock -bg black -fg white -fn -artwiz-snap.se-normal-r-normal--10-100-75-75-p-90-iso8859-1 -geom "120x80-0+0" -miltime -tails -noscroll -date "%Y-%m-%d" & # The FreeBSD dclock doesn't have these, but the one in Debian does: # -noblink -led_off black # Start an SSH key agent and add my private key to it. killall ssh-agent eval `ssh-agent` ssh-add