From de9c3e08412ae13cc8a2d1e4418d9e9257f67518 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 27 Mar 2014 15:02:02 -0400 Subject: update --- .Xrc.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 .Xrc.cs (limited to '.Xrc.cs') diff --git a/.Xrc.cs b/.Xrc.cs new file mode 100755 index 0000000..5fa2147 --- /dev/null +++ b/.Xrc.cs @@ -0,0 +1,31 @@ +#!/bin/sh + +eval `/usr/local/bin/defaultpaths -sh` + +eval `xrdb -global -symbols | sed -ne '/=/!d;s/^-D//;p'` + +host=`/usr/local/bin/shorthostname | sed -e 'h;s/.//;x;s/\(.\).*/\1/;y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;G;s/\n//'` + +# For OpenWindows apps +if [ -d /usr/openwin ]; then + OPENWINHOME=/usr/openwin; export OPENWINHOME + HELPPATH=$OPENWINHOME/lib/help; export HELPPATH + PATH=${PATH}:/usr/openwin/bin +fi + +# load .Xresources and .Xdefaults into the X resource database +for i in $HOME/.Xresources $HOME/.Xdefaults; do + [ -f $i ] && xrdb -merge $i +done + +# do these in a subshell so they don't become zombies on exit +( + xscreensaver & + fvwm & # window manager + xterm -geometry 80x24-0+257 -T "$host" -n "$host" & +) + +# only grab the actual console when we're running on a local display +[ "$SERVERHOST" != "lore.cs.purdue.edu" -a "$SERVERHOST" = "$CLIENTHOST" ] && consflag=-C +# kill this xterm to end your session +exec xterm $consflag -geometry 80x14-0+15 -T console -n console -fg darkslategray -bg burlywood3 -- cgit v1.2.3-2-g168b