#! /bin/bash
xrdb -override $HOME/.Xdefaults
+: ${VNCSESSION=false}
export __mdw_sechost="`hostname`"
# --- Do some fiddling ---
xset m 1 1
gnome-settings-daemon&
mail-notification&
-gkrellm&
+$VNCSESSION || gkrellm&
eval `xscsize -bx`
# --- Crank up ESD ---
# --- Crank up a screenlock program ---
-if ${SCSAVE-true}; then
+if ! $VNCSESSION; then
xscreensaver-command -exit
xscreensaver -no-splash&
fi
gnome-panel&
-mail-notification&
# --- Emacs window measurements ---
#
# --- Xterm window measurements ---
#
-# Window width is 504 (fixed).
+# Window width is 503 (fixed).
# Vertical line pixel height = 13; misc overhead = 23
-xterm="Eterm" xgeom=-geometry
+xterm="pterm" xgeom=geometry
# --- GNOME stuff measurements ---
#
# and the toolbar, so we add on some rows which are later mysteriously
# subtracted.
-declare -i ecols="(xbound - 504 - 34)/492"
+declare -i ecols="(xbound - 503 - 34)/492"
if (( ecols < 2 && xbound > 492 * 2 + 34 )); then
ecols=2
elif (( ecols < 1 )); then
declare -i n=0 pgx=0 l h y ht
declare -i hstd="35 * 13 + 23" hmin="25 * 13 + 23"
while true; do
- if ((x + 504 > xbound)); then
+ if ((x + 503 > xbound)); then
if ((n >= 3)); then break; fi
x="pgx + XWIDTH" pgx="pgx + XWIDTH" xbound="xbound + XWIDTH"
fi
$xterm -$xgeom 80x25+$x+$y&
n="n + 1"
fi
- x="x + 504"
+ x="x + 503"
done
# --- Wait for the world to end ---