# # ! /bin/sh # # ~/.xinitrc # chmod 750 ~/.xinitrc # # # ??-???-94 amo Modified from default /usr/lib/X11/xinit/xinitrc # 08-Mar-95 amo Added console per yggdrasil # 25-May-96 amo Added analog or digital xclock and color_xterm # 03-Oct-96 amo Use fvwm-2.0.43 which uses new .fvwm2rc # bad xclock, xload, no MenuClose, no keyboard window control # 17-Dec-96 amo to use xdm instead for login console # system defaults at /usr/lib/X11/xdm # vi /etc/inittab and un-comment xdm # ~# ln -s .xinitrc .xsession # 02-Jan-98 amo changed color_xterm to xterm # # X -probeonly # # To manually load a different window manager # X # mwm # # xinit() # uses .xinitrc # site default: /usr/local/lib/site.xinitrc # no such file yet # system default: /usr/lib/X11/xinit/xinitrc # # xdm() # uses .xsession or system default: /usr/lib/X11/xdm/Xsession # installed from /etc/rc.d/rc.6 ( init 6 ) # # default colors: /usr/lib/X11/rgb.txt # showrgb to see list of defined colors # contrib/xcolors to see the colors # OSF: mre, Sun:props, X:xcoloredit # # default fonts: /usr/X11/lib/X11/fonts # xlsfonts to see list of loaded fonts # xfd to see each char of a particular font_set # xfontsel browse thru each font type # xset -q to see info about current font loaded # # default fonts: /usr/lib/X11/fs font server # # /usr/lib/X11/xdm/Xresources # /Xsession # /xdm-config plus a bunch of others # #set host = `hostname` #echo "..hostname is=$host.." #if [ `hostname` = "classics4" ]; then # echo "xinitrc: Classics4 is NOT allowed to run X11 applications" # exit 1 #fi # # xrdb -merge # # db -load $HOME/.Xresources xrdb -merge $HOME/.Xdefaults # or .Xresources # # Seems to need to define this after fvwm # xsetroot -solid lightBlue & # xsetroot -fg orange -bitmap /usr/include/X11/bitmaps/woman & # # xclock -g 50x50-0-0 & # -bw 0 -fg violet -bg lightBlue & xclock -g 150x30-250-5 & # see /usr/lib/X11/app-defaults/XClock # # xload -update x, defaults 10 sec xload -g 50x50-60-0 -bw 0 -fg yellow -bg lightblue -update 30 & #biff -g 50x50-120-0 -bw 0 -fg red -bg lightblue & xbiff -g 50x50-120-0 -bw 0 -fg White -bg RoyalBlue -file /usr/spool/mail/root & xbiff -g 50x50-180-0 -bw 0 -fg Yellow -bg RoyalBlue -file /usr/spool/mail/majordom & #mailbox -g 50x50-240-0 -bw 0 -fg Magenta -bg RoyalBlue -file /usr/spool/mail/root & # xmailbox -g 50x50-240-0 -bw 0 -fg Magenta -bg RoyalBlue -file /usr/spool/mail/alvin_web & # xmailbox -g 50x50-300-0 -bw 0 -fg Yellow -bg Royalblue -file /usr/spool/mail/alvin & # #xterm -g 80x55-0+0 -name magenta -fg magenta & xterm -g 75x50-0+0 -name Gold -font 6x10 -fg Gold -bg RoyalBlue & xterm -g 80x10+0-0 -name Modem -font 6x10 -fg blue -bg pink & xterm -g 100x45+0-130 -name Working -font 6x10 -fg white -bg orange4 & # -bg grey & #olor_xterm -g 80x30+0-130 -name Working -font 6x10 -fg white -bg orange4 & # -bg grey & # # try to do xterm_elm ... cannot find xterms in different rooms # # color_xterm -geom 65x32+5-10 -fg Yellow -name Smail_tail -xrm "*Desk:2" & # # bring up 4 email windows ( see man fvwm ) # xterm -g 45x15+0+0 -name kelly -xrm "*Desk:3" & # # Load new screen saver # Re-enable the old screensaver: xset s on # # xscreensaver -cycle 1 -timeout 5 -lock -lock-timeout 15 & # # call up the FV window manager # # mwm # read .mwmrc: complains about not finding libXpm.so.4 ( true, I have .3 ) # # works for X11R6 #twm # read .tmwrc: works, has titles on xclock, xbiff, xload # # # fails for X11R6 no executable # # ln -s /usr/X11R4.keep.compare/lib/libxxxx /lib # than cannot find libXpm.so.3 # than cannot find libXt.so.3 # than cannot find libX11.so.3 # # # 03-Oct-96 amo Which Window manager to use # # fvwm & # fvwm-1.23b reads .fvwmrc # # fvwm2 & # reads .fvwm2rc # fvwm95-2 & # reads .fvwm2rc95 # # sleep 5 # wait for the manager to finish # # Now define the background # xsetroot -solid lightBlue # X Tools, Pg 348 # # sleep 5 # xterm -g 45x15+0+0 -name kelly -xrm "*Desk: 2" & # Load new screen saver # Re-enable the old screensaver: xset s on # xscreensaver -cycle 1 -timeout 5 -lock -lock-timeout 15 & # # X Tools, Pg 408 # # sane erase ^H # # xmodmap -e "keysym BackSpace = Delete" # or # xmodmap -e "keysym 102 = Delete" # using xev to find out the keycode # # # Startup the cat thingie # # oneko & # from yggdrasil...add a console # exec `xterm -C -title CONSOLE -name console -geometry 120x25+0+5 -bg DarkBlue -fg Gold -font 6x10` # # To run Win95-like window manager # # exec fvwm95-2 # # end of resources