# .twmrc for users@feynman.physics.lsa.umich.edu &tc... # # Eric Myers, Department of Physics, University of Michigan, Ann Arbor # @(#) $Id: Revision: 3.0 Date: 1999/06/23 20:45:29 $ ####################################################################### # This .twmrc file has evolved from similar files from a lot of places. # # Versions 3.x of this file tries to be similar to HP's VUE window # manager and the default mwm definitions. # # Versions 1.x and 2.x of this file created button and menu # definitions similar to those in SunView, so that it would be easy # to switch from one to the other. But nobody uses SunView anymore. # # There are copious comments in this file, so you should be able to # figure out how to change things to your liking. But for complete # details see the twm(1) man pages. ####################################################################### # FONTS: # # Use the X 11 Release 3 names for the Adobe Times Roman font suite, # and the old names for the fixed-size fonts. TitleFont "-*-helvetica-medium-r-normal--18-*" ResizeFont "-*-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-*-helvetica*medium*r*normal*-18-*" IconFont "-*-helvetica-bold-r-normal*-12-*" IconManagerFont "-*-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" ####################################################################### # VARIABLES: see also .Xresources or .Xdefaults # # Global parameters. Setting the first few ``No'' parameters makes # life on a slow X server a little more bearable. #NoRaiseOnResize # don't raise a window after resizing it #NoRaiseOnMove # nor when moving it #NoHighlight # don't highlight the window that has the cursor #SqueezeTitle # don't take title bar all the way across #NoTitleFocus # pointer must be in *window* to see keyboard input RandomPlacement # just put it anywhere and I'll move it later Zoom 3 # zoom effect is nice, but not on slow computers ButtonIndent 2 DontMoveOff # don't let windows move off the screen # (But see f.forcemove usage below!) BorderWidth 3 # use 3 pixel border instead of 2 IconDirectory "/usr/local/lib/icons:lib/icons:/usr/local/include/X11/bitmaps" IconManagerGeometry "-0+110" IconManagerHighlight "red" ShowIconManager # display the TWM icon manager? ## # What to do on color displays: Color { IconBackground "AliceBlue" { "SuperUser" "LimeGreen" } IconForeground "black" { "SuperUser" "white" } IconBorderColor "blue1" { "SuperUser" "red" } BorderTileBackground "gray" BorderTileForeground "grey2" BorderColor "green" { "SuperUser" "red" "xbiff" "grey2" "TWM Icon Manager" "black"} IconManagerBackground "beige" IconManagerHighlight "red" TitleForeground "white" TitleBackground "blue2" {"SuperUser" "LimeGreen"} MenuForeground "white" MenuBackground "blue3" ## MenuTitleForeground "gray" ## MenuTitleBackground "maroon" MenuTitleBackground "purple" MenuTitleForeground "white" } ## # What to do on monochrome displays Monochrome { BorderColor "black" BorderTileForeground "black" BorderTileBackground "gray85" # IconBorderColor "black" } ## # Automatically raise these windows whenever the cursor moves into them # Autoraise { "TWM Icon Manager" "xload" "mush" "xclock" "gnuplot" "hostname" } ## "xbiff" ## "Minibuffer@`hostname`" ## "XTerm" # this means the class of *all* xterm windows, be careful! ## "CONSOLE" # example of a single xterm window, called Console ## # Icons for programs (can also often be set as resources in .Xdefaults) Icons { "XTerm" "terminal" "mush" "mailempty" "pine" "mailempty" } IconRegion "500x128-200+0" North East 10 10 ## # Don't bother to put these programs into the icon manager window IconManagerDontShow { "xclock" "xbiff" "xload" "Perfmeter" } ## # Cursors for special things Cursors { Menu "sb_right_arrow" # so pullovers point the RIGHT way! ## Wait "coffee_mug" # the mug sucks } ## # Don't put a border around these windows NoHighlight { "xeyes" "xpclock" "xping" "xbiff" "TWM Icon Manager" # "xman" "xmeter" } ## # Windows with no title bar NoTitle { "xclock" "xeyes" "xpclock" "xmeter" "xman" "xping" "xbiff" "xload" "xhostname" "TWM Icon Manager" "Perfmeter" } ####################################################################### # FUNCTION KEYS: entries are of the form # # Key = Modlist : Context : Function # # Function key names are F1,..., F12, or L1, ..., L10, or R1, ..., R10. # The arrow keys are Up, Down, Left, and Right. # Regular keys are lower case letters a, b, ..., z # The space bar is "space" # # The modlist is any combination of the modifier names # shift, control, lock, meta, mod1, mod2, mod 3, mod4, or mod5 # (which may be abbreviated as s, c, l, m, m1, m2, m3, m4, m5, # respectively) separated by a vertical bar (|). # # Context is any combination of window, title, icon, root, frame, # iconmgr, their first letters (iconmgr abbreviation is m), or all, # separated by a vertical bar. # L5=FRONT on Sun/4 keyboard raises the indicated item "L5" = : window | title | icon : f.raiselower # L7=OPEN on Sun/4 keyboard iconifies object or opens it "L7" = : window | title | icon : f.iconify # L2=AGAIN on Sun/4 keyboard simply shuffles regardless of mouse position "L2" = : root | window | title | icon : f.circledown # Sun and Dec both have F keys along the top of the keyboard "F1" = : window | title | icon : f.raiselower "F2" = : window | title | icon : f.iconify # Arrow keys can help manage windows. Be sure to use ctrl! "Up" = c : window : f.raise "Down" = c : window : f.lower "Right" = c : window : f.lower "Left" = c : window : f.move # ALT keyboard for useful shortcuts "space" = m : window|title|icon : f.raiselower "c" = m : window|title|icon : f.iconify "r"= c|m : all : f.twmrc # Ctrl-Alt-R reloads .twmrc ####################################################################### # BUTTONS: # # Meaning of button entries is: # # Button = Mod : Context : Function # where Mod is one or more of c, s, and m (control, shift, and meta # respectively). # Context is one of icon, root, title, frame, window, and iconmgr. # Function is defined in the twm manual page # # for example: # Button1 = c : title : f.zoom # # means that if you hold down the control key (c) and press the # left button while the mouse pointer is in the title bar of a # window, then the f.zoom function (see the manual page to see # what that is) will be executed. ## # ROOT WINDOW (background): Button1 = : root : f.menu "Main Menu" Button2 = : root : f.menu "Single Window Ops" Button3 = : root : f.menu "Global Window Ops" Button1 = c : root : f.menu "Global Window Ops" Button1 = s : root : f.menu "Single Window Ops" ## # ICONS: Button1 = : icon : f.move Button2 = : icon : f.menu "Frame Menu" Button3 = : icon : f.iconify Button3 = c : icon : f.iconify Button3 = m : icon : f.iconify Button1 = s : icon : f.forcemove Button2 = s : icon : f.menu "Frame Menu" Button3 = s : icon : f.iconify # WINDOWS (and frame and title) Button2 = : title : f.menu "Frame Menu" # MOVE: first button moves windows or icons around by grabbing them # Use shift key to force window past screen boundary Button1 = : title|frame : f.move Button1 = s : title|frame : f.forcemove # SELECT: last button opens an icon or raise/lowers the window Button3 = : title : f.raiselower # RESIZE: resize things without having to go up to the resize gadget Button3 = : frame : f.resize Button2 = : frame : f.resize Button1 = s : title : f.fullzoom Button3 = s : title : f.fullzoom Button1 = c : title : f.zoom Button3 = c : title : f.zoom # WINDOW FOCUS: Function "raise-focus" { f.raise f.unfocus f.focus } Button1 = m : window : f.function "raise-focus" Button2 = m : window | icon : f.autoraise Button3 = m : window : f.focus Function "raise-unfocus" { f.raise f.unfocus } Button1 = s : window : f.function "raise-unfocus" Button2 = s : window : f.autoraise Button3 = s : window : f.unfocus Button3 = m : title : f.iconify ####################################################################### # MENUS: Menu "Frame Menu" { "Frame Menu" f.title "Close/Open" f.iconify "Full Screen" f.fullzoom "Zoom" f.zoom "Resize" f.resize "Move" f.move "Front" f.raise "Back" f.lower "Refresh" f.winrefresh "Kill" f.destroy "Quit" f.destroy } ## # MAIN ROOT MENU: menu "Main Menu" { "Main Menu" f.title "Remote Logins" f.menu "Remote Logins" "Shells" f.menu "Shells" "Services" f.menu "Services" "Tools" f.menu "Tools" "Window Manager" f.menu "Window Manager" "Games and Demos" f.menu "X Demos" "Refresh Display" f.refresh "Lock screen" !"nice -3 xlock &" "Help" f.menu "Help" "Exit TWM" f.menu "Exit TWM" } ## # SINGLE WINDOW OPERATIONS Menu "Single Window Ops" { "Single Window Ops" f.title "Identify" f.identify "(De)Iconify" f.iconify "Refresh" f.winrefresh "Destroy" f.destroy "Focus Kbd" f.focus "Unfocus Kbd" f.unfocus "Move" f.move "Resize" f.resize "Lower" f.lower "Raise" f.raise } ## # GLOBAL WINDOW OPERATIONS: menu "Global Window Ops" { "Global Window Ops" f.title "Preferences" f.menu "Preferences" "Circulate Windows Up" f.circleup "Circulate Windows Down" f.circledown "Unfocus Keyboard" f.unfocus "Lock screen" !"nice -3 xlock &" "Reinitialize TWM" f.twmrc "Refresh Display" f.refresh } ## # EXIT: menu "Exit TWM" { "Wait, I didn't mean it" ("red":"white") f.beep "Yes, Really Exit!" ("green":"black") f.quit ## "Yes, Really Exit!" f.quit } ## # SHELLS: menu "Shells" { "Shells" f.title "tcsh " !"xterm -name tcsh -title tcsh -e tcsh &" "csh " !"xterm -name csh -title csh -e csh &" "bash " !"xterm -name bash -title bash -e bash &" "sh " !"xterm -name sh -title sh -e sh &" "ksh " !"xterm -name ksh -title ksh -e ksh &" "zsh " !"xterm -name zsh -title zsh -e zsh &" "tcsh 48" !"xterm -g 80x48 -title 'tcsh 48' -e tcsh &" "Console" ("white" : "darkgreen") !"xterm -geom 80x10+0+0 -C -sb \ -title CONSOLE -name CONSOLE &" "SuperUser" ("black" : "LimeGreen") !"xterm -name SuperUser \ -title SuperUser -bd LimeGreen -e su &" } ## # PREFERENCES: menu "Preferences" { "Preferences" f.title "Ctrl <-> Caps Lock" !"xmodmap /usr/local/lib/X11/xmod.ctrl" "Backspace --> Del" !"xmodmap /usr/local/lib/X11/xmod.del" "Disable Caps Lock" !"xmodmap .xmod.nocaps" "Bell Loud" ("HotPink":"bisque") !"xset b 80&" "Bell Normal" ("HotPink":"bisque") !"xset b on&" "Bell Off" ("HotPink":"bisque") !"xset b off&" "Click Loud" ("HotPink":"azure") !"xset c 80&" "Click Normal" ("HotPink":"azure") !"xset c on&" "Click Off " ("HotPink":"azure") !"xset c on&" "Lock On" !"xset led on&" "Lock Off" !"xset led off&" "Mouse Fast" ("HotPink":"gold") !"xset m 4 2 &" "Mouse Normal" ("HotPink":"gold") !"xset m 2 5 &" "Mouse Slow" ("HotPink":"gold") !"xset m 1 1 &" "Hide Icon Manager" f.hideiconmgr "Show Icon Manager" f.showiconmgr } ## # SERVICES: needs to be broken up and reorganizeda menu "Services" { "Services" f.title "Browsers" f.menu "Browsers" "E-mail " f.menu "E-mail" "CAPA" f.menu "CAPA" "UseNet News" f.exec "xterm -g 80x44 -T NetNews -e sh TRNINIT=/home/myers/.trnrc trn -q -z7 &" "Big Clock" !"xclock -g 800x800 -update 1 &" "Weather Map" f.exec "wxbg &" "Salem view" f.exec "Salem &" "Watch Print Queue" f.exec "xterm -g 80x10 -e lpq + &" "Print Window" f.exec "xdpr -device ps &" "hostname" f.exec "xhostname &" "CD Player" f.exec "xmcd &" "Eject" f.menu "Eject" } ## # E-mail functions menu "E-mail" { "E-mail " f.title "mush" f.exec "xterm -g 80x24 -e mush -S &" "pine" f.exec "xterm -g 80x24 -e pine &" "xmh" f.exec "xmh &" "xbiff" f.exec "xbiff -g 64x64-8-40 &" } menu "Browsers" { "Browsers" f.title "Netscape " f.exec "netscape &" "Netscape (colors) " f.exec "netscape -install &" "Mosaic " f.exec "mosaic &" "lynx" f.exec "xterm -g 80x24 -e lynx &" } menu "CAPA" { "CAPA" f.title "grader" f.exec "ssh instructor.physics.lsa.umich.edu grader &" "manager" f.exec "ssh instructor.physics.lsa.umich.edu manager &" "login" f.exec "ssh instructor.physics.lsa.umich.edu &" } menu "Eject" { "Eject" f.title "Eject Floppy" f.exec "/bin/eject /dev/rfd0c" "Eject CD" f.exec "/bin/eject /dev/sr0" } ## # TOOLS: menu "Tools" { "Tools" f.title "Netscape " f.exec "netscape &" "Editors" f.menu "Editors" "Graphics" f.menu "Graphics" "Mosaic " !"mosaic &" "Load Average" !"xload -geometry 122x70-246+0 &" # "Mathematica" !"xterm -e rsh lucy setenv DISPLAY `hostname`:0 \\\;math &" "Calculator (HP)" !"xcalc -rpn -geometry 246x142-0+75 &" "Calculator (TI)" !"xcalc &" "clock" !"xclock -chime &" "Magnifier" !"xmag &" "Magnifier (2X)" !"xmag -mag 2 &" "Magnifier (128 bits)" !"xmag -source 128x128 &" # "Performance monitor" !"xmeter -load `hostname` &" # "Perfmon" !"xperfmon &" # "Calendar" !"xcalendar &" } menu "Graphics" { "Graphics" ("Maroon" : "grey80") f.title "Xfig " !"xfig -me &" "xv" !"xv &" "Ghostview" !"ghostview &" "ACE/gr" !"xmgr >/dev/null 2>&1 &" "GNUplot" !"xterm -name GNUplot -T GNUplot -e gnuplot &" } ## # WINDOW MANAGER FUNCTIONS: menu "Window Manager" { "Window Manager" f.title "Hide Icon Manager" f.hideiconmgr "Show Icon Manager" f.showiconmgr "Sort Icon Manager" f.sorticonmgr "Button 1" f.exec "xgrep ^Button1 .twmrc " "Button 2" f.exec "xgrep ^Button2 .twmrc " "Button 3" f.exec "xgrep ^Button3 .twmrc " "Reinitialize TWM" f.twmrc "TWM Version" f.version "Reinitialize X Resources" !"xrdb $HOME/.Xdefaults" "Exit TWM" f.menu "Exit TWM" } ## # EDITORS: menu "Editors" { "Editors" f.title "emacs" !"xterm -fn 9x15 -g 80x48 -e emacs -nw &" "X emacs" !"emacs &" "vi" !"xterm -fn 9x15 -g 80x48 -e vi &" "pico" !"xterm -fn 9x15 -g 80x48 -e pico &" "X Editor" !"xedit -geometry +100+100 &" "Notepad" !"/usr/bin/dxnotepad &" "textedit" !"/usr/openwin/bin/textedit &" } ## # X DEMOS: menu "X Demos" { "X Demos" f.title "Eyes" !"xeyes &" "Moon" !"xphoon" "Puzzle" !"puzzle &" "X Logo" !"xlogo &" "Muncher" !"muncher &" "Plaid" !"plaid &" "Ico" !"ico &" } # # HELP: menu "Help" { "Help" f.title "Unix" !"xterm -geometry 80x34+0-0 -T 'Help With Unix' -e help &" "X windows" !"xterm -geometry 80x34+0-0 -T 'Help With X' -e xman &" "twm" !"xterm -geometry 80x34+0-0 -T 'Help With TWM' -e man twm &" } ####################################################################### # REMOTE LOGINS: menu "Remote Logins" { "Remote Logins" f.title "meitner" ("AliceBlue" : "orange") f.exec "xterm -title meitner -e rlogin -8 meitner &" "curie" ("white" : "red") f.exec "xterm -title curie -e rlogin -8 curie &" "Univ. Michigan" ("yellow" : "NavyBlue") f.menu "Michigan" "Vassar" ("grey80" : "Maroon") f.menu "Vassar" "TFR, Stockholm" ("yellow" : "Blue" ) f.menu "TFR, Stockholm" "Univ. of Texas" ("black" : "orange") f.menu "Texas" "Brookhaven" ("black" : "violet" ) f.menu "Brookhaven" "ICTP Trieste" ("white" : "blue") f.menu "ICTP" "Boston University" ("black" : "red" ) f.menu "Boston University" "Others" ("red" : "thistle" ) f.menu "Others" } menu "Michigan" { "Univ. Michigan" ("yellow" : "NavyBlue") f.title "HPs" f.title "meitner" f.exec "xterm -title meitner -e rlogin -8 meitner &" "feynman" f.exec "xterm -title feynman -e rlogin -8 feynman &" "walden" f.exec "xterm -title walden -e rlogin -8 walden &" "thoth" f.exec "xterm -title thoth -e rlogin -8 thoth &" "dirac" f.exec "xterm -title dirac -e rlogin -8 dirac &" "Linux" f.title "curie" f.exec "xterm -title curie -e rlogin curie &" "xena" f.exec "xterm -title xena -e rlogin xena &" "bohr" f.exec "xterm -title bohr -e rlogin bohr &" "landau" f.exec "xterm -title landau -e rlogin landau &" "boltzmann" f.exec "xterm -title boltzmann -e rlogin boltzmann &" "macschip" f.exec "xterm -title macschip -e rlogin macschip &" "lucretius" f.exec "xterm -title lucretius -e rlogin lucretius &" "NeXTs" f.title "williams" f.exec "xterm -title williams -e rlogin williams &" "yuling" f.exec "xterm -title yuling -e rlogin yuling &" "pauli" f.exec "xterm -title pauli -e rlogin pauli &" "kramers" f.exec "xterm -title kramers -e rlogin kramers &" "newton" f.exec "xterm -title newton -e rlogin newton &" "maxwell" f.exec "xterm -title maxwell -e rlogin maxwell &" "yukawa" f.exec "xterm -title yukawa -e rlogin yukawa &" "kaluza" f.exec "xterm -title kaluza -e rlogin kaluza &" "other " f.title "login@ITD" f.exec "xterm -title login@ITD -e slogin login.itd.umich.edu &" "U-M Library" f.exec "xterm -name 'Mirlyn' -title 'UM Library' -e telnet mirlyn.telnet.lib.umich.edu &" "accra" f.exec "xterm -title accra -e telnet accra.engin.umich.edu &" "oahu" f.exec "xterm -title oahu -e rlogin oahu &" "maui" f.exec "xterm -title maui -e rlogin maui &" } menu "Vassar" { "Vassar" ("gray80" : "Maroon" ) f.title "noether" !"xterm -title noether -e rlogin -8 noether &" "lucy" !"xterm -title lucy -e rlogin -8 lucy &" "terra" !"xterm -title terra -e rlogin -8 terra &" "scarlett" !"xterm -title scarlett -wf -e rlogin -8 scarlett &" "VAXSAR" !"xterm -title VAXSAR -e telnet vaxsar.vassar.edu &" "astro" !"xterm -title astro -e rlogin -8 astro.vassar.edu &" "cssun10" !"xterm -title cssun10 -e rlogin -8 cssun10.vassar.edu &" "VC Library" !"xterm -name Library -title 'Library' -e rlogin vaslib.vassar.edu -l library &" "cryst @ chem" !"xterm -title cryst -wf -e rlogin -8 cryst.vassar.edu &" "mavassar" !"xterm -title mavassar -wf -e rlogin scarlett -l mavassar &" } menu "TFR, Stockholm" { "TFR, Stockholm" ("yellow" : "Blue" ) f.title "gibbs" !"xterm -title gibbs -e rlogin -8 gibbs.tfr.se &" "galilei" !"xterm -title galilei -e rlogin -8 galilei.tfr.se &" } menu "Texas" { "Univ. of Texas" ("black" : "orange") f.title "lifshitz" !"xterm -title lifshitz -e rlogin -8 lifshitz.ph.utexas.edu &" "landau" !"xterm -title landau -e rlogin -8 landau.ph.utexas.edu &" "einstein" !"xterm -title einstein -e rlogin -8 einstein.ph.utexas.edu &" "helmholtz" !"xterm -title helmholtz -e rlogin -8 helmholtz.ph.utexas.edu &" "charon" !"xterm -title charon -e rlogin -8 charon.chpc.utexas.edu &" } menu "Brookhaven" { "Brookhaven" ("black" : "violet" ) f.title "Physics SGI" f.exec "xterm -title 'BNL SGI' -e rlogin physgi01f.phy.bnl.gov &" "bnlux1 @ BNL" f.exec "xterm -title bnlux1 -e rlogin bnlux1.bnl.gov &" "VAX Alpha" f.exec "xterm -title 'BNL Alpha' -e telnet bnlarm.bnl.gov &" "VAX Cluster" f.exec "xterm -title 'BNL VAX6' -e telnet bnlcl6.bnl.gov &" } menu "ICTP" { "ICTP Trieste" ("white" : "blue") f.title "ICTPsp10" !"xterm -title ICTPsp10 -e rlogin -8 ICTPsp10.ictp.trieste.it &" "ICTPsp1" !"xterm -title ICTPsp1 -e rlogin -8 ICTPsp1.ictp.trieste.it &" } menu "Boston University" { "Boston University" ("black" : "red" ) f.title "buphyk" !"xterm -title buphyk -e rlogin -8 buphyk.bu.edu &" "bu-conx" !"xterm -title bu-conx -e rlogin -8 bu-conx.bu.edu &" "bu-cony" !"xterm -title bu-cony -e rlogin -8 bu-cony.bu.edu &" } menu "Others" { "Others" f.title "PSC/YMP" !"xterm -title PSC/YMP -e rlogin -8 pscymp.psc.edu &" "xtelnet" !"xtelnet -g 80x36 &" "xlogin" !"xlogin -g 80x36 &" "telnet" !"xterm -g 80x36 -e telnet &" } ## EOF .twmrc