Sample .xinitrc (X windows)



next up previous contents index
Next: Sample .Xdefaults for Up: SAMPLE DOT FILES Previous: Sample .emacs File

Sample .xinitrc (X windows)

 

 
#!/bin/sh
#
# Executed when you start X; can add clients.
# Prior to X11R5, .Xdefaults used, now .Xresources (either OK).
if [ -f $HOME/.Xdefaults ]; then
    xrdb -merge $HOME/.Xdefaults 
fi
if [ -f $HOME/.Xresources ]; then
    xrdb -merge $HOME/.Xresources
fi
# Set the background color
if [ -f /usr/bin/X11/xsetroot ]; then
	xsetroot -solid steelblue
fi
# Everybody needs to know what time it is
if [ -f /usr/bin/X11/xclock ]; then
	xclock -geometry 80x80 &
fi
# Tone down the bell
xset b 5 500 200
# Speed up the mouse
xset m 4 2
# The window manager
mwm  &
# Add your clients here
# If we exit from this xterm X will close.
xterm -T Exit_Here
exit