#!/bin/sh while [ : ] do xmessage BWM ver1.0a -buttons News,URIs,Bookmarks,Apps,XKILL,Xterm,EDIT,QUIT -geometry -0+0 button=$? if [ $button = 101 ] ; then curl -A Bwgor -o - http://hal3000.cx:70/News/newsfeed.html/ > z.html; vilistextum -l -c z.html z; xmessage -file z -buttons RETURN -geometry -0+0 # URI nest area # # elif [ $button = 102 ] ; then xmessage -file ~bwgor/bwgor/w -buttons URL,Search,Gopher,Image,Audio -geometry -0+0 button=$? if [ $button = 101 ] ; then echo enter a url; read URL; curl -A Bwgor -o - $URL > z.html; vilistextum -l -c z.html z; xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 102 ] ; then echo enter search; read SEARCH; curl -A Bwgor -o - http://www.google.com/search?q=$SEARCH > z.html vilistextum -l -c z.html z; xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 103 ] ; then echo enter gopher; read GOPHER; lynx -dump $GOPHER > z xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 104 ] ; then echo enter image url; read IMAGE; lynx -dump $IMAGE > z xv z elif [ $button = 105 ] ; then echo enter audio url; read AUDIO; lynx -dump $AUDIO > z xmms z else fi # Bookmarks nest # # elif [ $button = 103 ] ; then xmessage -file ~bwgor/bwgor/bookmarks.bwgor -buttons 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 -geometry -0+0 button=$? if [ $button = 101 ] ; then lynx -dump http://hal3000.cx > z xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 102 ] ; then lynx -dump http://hal3000.cx:70 > z xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 103 ] ; then lynx -dump http://hal3000.cx:70/Weather/Wisconsin/Winnebago_forecast.txt > z xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 104 ] ; then lynx -dump http://hal3000.cx:70/Weather/Wisconsin/Langlade_forecast.txt > z xmessage -file z -buttons RETURN -geometry -0+0 elif [ $button = 105 ] ; then lynx -dump http://hal3000.cx:70/Weather/Wisconsin/wis_sat_hourly.jpg > z.jpg xv z.jpg & else fi #Apps nest # # elif [ $button = 104 ] ; then xmessage -file ~bwgor/bwgor/w -buttons Dillo,Sol,3,4,5 -geometry -0+0 button=$? if [ $button = 101 ] ; then dillo http://hal3000.cx & elif [ $button = 102 ] ; then sol & else fi elif [ $button = 105 ] ; then xkill elif [ $button = 106 ] ; then xterm -geometry +0-0 & elif [ $button = 107 ] ; then ee /usr/home/bwgor/bwgor/bwgor.sh else break fi done