home *** CD-ROM | disk | FTP | other *** search
- !
- ! Xmon - Graphically monitor a list
- !
- ! Includes defaults for xru and xrf.
- !
- ! George Ferguson (ferguson@cs.rochester.edu), 6 May 1990.
- ! Improvements by: Cesar Quiroz (quiroz@cs.rochester.edu), 8 May 1990.
- ! Massive changes by: gf, 20 Jul 1990.
- !
- ! $Id: Xmon.ad,v 1.5 90/08/21 11:11:21 ferguson Exp $
- !
-
- ! This has must be the first line in the "official" app-defaults file.
- Xmon.revision: $Revision: 1.5 $
-
- !
- ! Application defaults
- !
- Xmon.addNames: False
- Xmon.opaqueNames: True
- Xmon.updateInterval: 60
- Xmon.smallFont: -adobe-courier-medium-r-normal--8-80-75-75-m-50-iso8859-1
- Xmon.faceDirectory: /u/ferguson/lib/images
- Xmon.updateCommand: whoami
- Xmon.debug: False
-
- !
- ! widgets to create (must include at least infoLabel and faceBox)
- !
- Xmon.widgets: \
- Form form toplevel \n\
- Command quitButton form \n\
- Label infoLabel form \n\
- Viewport view form \n\
- Box faceBox form.view
-
- !
- ! Defaults for classes of widgets
- !
- Xmon*Command*top: chainTop
- Xmon*Command*bottom: chainTop
- Xmon*Command*left: chainLeft
- Xmon*Command*right: chainLeft
-
- !
- ! Defaults for specific widgets
- !
- Xmon*form.defaultDistance: 2
- Xmon*form.borderWidth: 0
-
- Xmon*quitButton.label: Quit
- Xmon*quitButton.translations:#override\n\
- <Btn1Up>: xmon-quit() notify() unset()\n
-
- Xmon*updateButton.label: Update
- Xmon*updateButton.fromHoriz: quitButton
- Xmon*updateButton.translations:#override\n\
- <Btn1Up>: xmon-update() notify() unset()\n
-
- Xmon*reinitButton.label: Re-init
- Xmon*reinitButton.fromHoriz: updateButton
- Xmon*reinitButton.translations:#override\n\
- <Btn1Up>: xmon-reinit() notify() unset()\n
-
- Xmon*infoLabel.label: -- Info shown here --
- Xmon*infoLabel.width: 270
- Xmon*infoLabel.fromVert: quitButton
- Xmon*infoLabel.top: chainTop
- Xmon*infoLabel.bottom: chainTop
- Xmon*infoLabel.left: chainLeft
-
- !
- ! Here's where the "faces" are displayed
- !
- Xmon*view.allowVert: True
- Xmon*view.allowHoriz: False
- Xmon*view.width: 270
- Xmon*view.height: 150
- Xmon*view.fromVert: infoLabel
- Xmon*view.top: chainTop
- Xmon*view.left: chainLeft
-
- Xmon*faceBox.orientation: orientVertical
- Xmon*faceBox.hSpace: 2
- Xmon*faceBox.vSpace: 2
-
- !
- ! All the "face" buttons
- !
- Xmon*face.width: 34
- Xmon*face.height: 34
- Xmon*face.internalWidth: 1
- Xmon*face.internalHeight: 1
- Xmon*face.borderWidth: 0
- Xmon*face.translations:#override\n\
- <Btn1Down>,<Btn1Up>: toggle() xmon-info() \n
-
- ! - - - - - - - - -
- !
- ! xru - Graphically display who's on the system
- !
-
- xru.updateCommand: /usr/grads/bin/ru -b0
-
- xru.widgets: \
- Form form toplevel \n\
- Command quitButton form \n\
- Command updateButton form \n\
- Command reinitButton form \n\
- Command talkButton form \n\
- Command fingerButton form \n\
- Command wButton form \n\
- Label infoLabel form \n\
- Viewport view form \n\
- Box faceBox form.view
-
- ! quitButton, updateButton, and reinitButton use Xmon default
-
- xru*talkButton.label: Talk
- xru*talkButton.fromHoriz: reinitButton
- xru*talkButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'talk $1@$3' -e talk $1@$3 &") unset()\n
-
- xru*fingerButton.label: Finger
- xru*fingerButton.fromHoriz: talkButton
- xru*fingerButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'finger $1@$3' -e sh -c 'finger $1@$3|tr -d \\\\015 | less' &") unset()\n
-
- xru*wButton.label: W
- xru*wButton.fromHoriz: fingerButton
- xru*wButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'w $3' -e sh -c 'rsh $3 w | less' &") unset()\n
-
- xru*face.translations:#override\n\
- <Btn1Down>,<Btn1Up>: toggle() xmon-info() \n\
- <Key>T: set() xmon-info() \
- xmon-cmd("xterm -title 'talk $1@$3' -e talk $1@$3 &") \n\
- <Key>F: set() xmon-info() \
- xmon-cmd("xterm -title 'finger $1@$3' -e sh -c 'finger $1@$3|tr -d \\\\015 | less' &") \n\
- <Key>W: set() xmon-info() \
- xmon-cmd("xterm -title 'w $3' -e sh -c 'rsh $3 w | less' &")\n
-
- ! - - - - - - - - -
- !
- ! xrf - Graphically display free machines on the network
- !
-
- xrf.addNames: True
- xrf.updateInterval: 0
- xrf.updateCommand: /usr/grads/bin/rf -m
-
- xrf.widgets: \
- Form form toplevel \n\
- Command quitButton form \n\
- Command updateButton form \n\
- Command reinitButton form \n\
- Command rloginButton form \n\
- Command fingerButton form \n\
- Command wButton form \n\
- Label infoLabel form \n\
- Viewport view form \n\
- Box faceBox form.view
-
- ! quitButton, updateButton, and reinitButton use Xmon default
-
- xrf*rloginButton.label: Rlogin
- xrf*rloginButton.fromHoriz: reinitButton
- xrf*rloginButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title $1 -e rlogin $1 &") unset()\n
-
- xrf*fingerButton.label: Finger
- xrf*fingerButton.fromHoriz: rloginButton
- xrf*fingerButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'finger @$1' -e sh -c 'finger @$1|tr -d \\\\015 | less' &") unset()\n
-
- xrf*wButton.label: W
- xrf*wButton.fromHoriz: fingerButton
- xrf*wButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'w $1' -e sh -c 'rsh $1 w | less' &") unset()\n
-
- xrf*face.translations:#override\n\
- <Btn1Down>,<Btn1Up>: toggle() xmon-info() \n\
- <Key>R: set() xmon-info() \
- xmon-cmd("xterm -title rlogin $1 -e rlogin $1 &") \n\
- <Key>F: set() xmon-info() \
- xmon-cmd("xterm -title 'finger @$1' -e sh -c 'finger @$1|tr -d \\\\015 | less' &") \n\
- <Key>W: set() xmon-info() \
- xmon-cmd("xterm -title 'w $1' -e sh -c 'rsh $1 w | less' &")\n
-
- ! - - - - - - - - -
- !
- ! xls - Graphically display files and directories
- !
-
- xls.addNames: True
- xls.updateInterval: 0
- xls.updateCommand: /bin/ls -a
- xls.nameCommand: /u/ferguson/lib/xmon/name2icon
-
- xls.widgets: \
- Form form toplevel \n\
- Command quitButton form \n\
- Command updateButton form \n\
- Command reinitButton form \n\
- Command cdButton form \n\
- Command lslButton form \n\
- Command fileButton form \n\
- Label infoLabel form \n\
- Viewport view form \n\
- Box faceBox form.view
-
- ! quitButton, updateButton, and reinitButton use Xmon default
-
- xls*cdButton.label: Cd
- xls*cdButton.fromHoriz: reinitButton
- xls*cdButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: xmon-cd() xmon-update() unset()\n
-
- xls*lslButton.label: Ls-lg
- xls*lslButton.fromHoriz: cdButton
- xls*lslButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'ls -lg $1' -geometry 80x3 -e sh -c 'ls -lg $1 | less' &") unset()\n
-
- xls*fileButton.label: File
- xls*fileButton.fromHoriz: lslButton
- xls*fileButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'file $1' -geometry 80x3 -e sh -c 'file $1 | less' &") unset()\n
-
- xls*face.translations:#override\n\
- <Btn1Down>,<Btn1Up>: toggle() xmon-info() \n\
- <Btn2Down>,<Btn2Up>: \
- set() xmon-cmd("/u/ferguson/lib/xmon/xls-cmd $1 &") \n
-
- ! - - - - - - - - -
- !
- ! xfrom - Graphically display whom mail is from
- !
-
- xfrom.addNames: False
- xfrom.updateInterval: 120
- xfrom.updateCommand: sed -n 's/^From \\([^ ]*\\)/\\1/p' /usr/spool/mail/$USER
-
- xfrom.widgets: \
- Form form toplevel \n\
- Command quitButton form \n\
- Command updateButton form \n\
- Command reinitButton form \n\
- Command mailButton form \n\
- Command mailtoButton form \n\
- Label infoLabel form \n\
- Viewport view form \n\
- Box faceBox form.view
-
- ! quitButton, updateButton, and reinitButton use Xmon default
-
- xfrom*mailButton.label: Mail
- xfrom*mailButton.fromHoriz: reinitButton
- xfrom*mailButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'Mail' -e Mail &") unset()\n
-
- xfrom*mailtoButton.label: Mail To
- xfrom*mailtoButton.fromHoriz: mailButton
- xfrom*mailtoButton.translations:#override\n\
- <Btn1Down>,<Btn1Up>: \
- xmon-cmd("xterm -title 'Mail $1' -e Mail $1 &") unset()\n
-