1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/bin/sh
#******************************************************************
# ident .xinitrc Time-stamp: <98/04/24 21:01:50 bav>
#******************************************************************
# Gerd Bavendiek bav@rw.sni.de 94-xx-xx
#
# This is my very personal .xinitrc.
#
# My .xsession is a link to .xinitrc. Thus it will work too when using xdm.
#
# Neben der aktuell genutzten Variable PROFILE kann man Infos ber das
# aktuelle Display auch z.B. wie folgt erhalten:
# SCREENWIDTH=`xdpyinfo | grep dimensions | cut -dx -f1 | cut -d: -f2`
# SCREENHEIGTH=`xdpyinfo | grep dimensions | cut -dx -f2 | cut -d' ' -f1`
# export SCREENWIDTH SCREENHEIGTH
# und z.B. in "cpp -lang-c++ -D SCREENHEIGTH=$SCREENHEIGTH ..." weiter
# verwerten.
#
# Folgendes hat bislang nicht geklappT:
# fvwm95 -f "/usr/local/lib/X11/fvwm95/FvwmCpp -Cppopt -lang-c++ \
# -D SCREENHEIGTH=$SCREENHEIGTH ~/fvwm95rc-cpp"
#------------------------------------------------------------------
export OX_POOL=/home/bav/wsp/xclass-new/icons # fr Explorer
export KDEDIR=/opt/kde
export PATH=$PATH:$KDEDIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KDEDIR/lib
# Now merge in my .Xdefaults. xrdb preprocesses this file using
# cpp. Have a look at it ...
xrdb -merge $HOME/.Xdefaults
# Yes, I'm fiddling with my keyboard too ...
xmodmap $HOME/.Xmodmap
# Source the assignments made by netenv, here it's PROFILE, which I'm
# interested in. It gives me the current location of this machine.
if [ -r /tmp/netenv ]; then
. /tmp/netenv
fi
###kfm &
###panel &
###display -init &
###wm
# I'm generating my .fvwm95rc using cpp. I supply the screen
# dimensions and the current location via PROFILE
SCREENWIDTH=`xdpyinfo | awk '/dimensions:/ {print $2}' | cut -dx -f1`
SCREENHEIGTH=`xdpyinfo | awk '/dimensions:/ {print $2}' | cut -dx -f2`
#export SCREENWIDTH SCREENHEIGTH
cpp -lang-c++ -D SCREENHEIGTH=$SCREENHEIGTH -D SCREENWIDTH=$SCREENWIDTH -D PROFILE=$PROFILE ~/.fvwm95rc-cpp ~/.fvwm95rc
# Now we are ready for take off. Fire up the window manager ... exec
# will avoid wasting memory ...
fvwm95 2>aaa
###startkde
# Local Variables:
# rcpbuf-todo: ("lulu:")
# End:
|