# This is your .twmrc file. If you mess it up, you can get a copy # of the default one by doing "inithome -x". # # This file is used to configure the "twm" window manager. # It declares what menus show up when you click on the root window, # what mouse button combinations can be used to move windows around, # how the title bars look, and so on. # # If you change this file, you need to select the "restart" operation # from your currently-running "twm" in order to have the file re-read. # # There are many different twm variables you can set. # See "man twm" for full details. # # probably originally due to Steve Hayman # this incarnation due to Tom Loos (/u/tloos), as usual mainly by # stealing code from Marc Van Heyningen (/u/mvanheyn) -- 5/28/95 ForceIcons NoTitleFocus MenuFont "8x13" IconFont "6x13" TitleFont "8x13" ResizeFont "fg-22" BorderWidth 4 DefaultFunction f.beep # This table says which combination of mouse button / key presses # corresponds to what action. For instance, pressing Button 1 # in the Root window will bring up the "Window Ops" menu. # # Button Keys Context Function Menu (if any) # ------ ---- ------- -------- ------------- # # # Clicking mouse buttons in the root window brings up different menus. # Button1 = : root : f.menu "Window Ops" Button2 = : root : f.menu "Hosts" Button3 = : root : f.menu "X Programs" # Clicking mouse buttons in the title bar performs 'raise', 'move' # or 'lower' respectively. So to move a window around, drag on the # title bar with the middle button. Button1 = : title : f.raise Button2 = : title : f.move Button3 = : title : f.lower # For consistency, use button 2 on an icon to move the icon around. # (Button 1 on an icon does a 'deiconify') Button2 = : icon : f.move # Use the 'meta' key together with these buttons so that you can # raise, resize or move a window without going to the title bar. Button1 = m : window : f.raise Button2 = m : window : f.resize Button3 = m : window : f.move # If you want your 'xterm' windows to pop to the front whenever # the cursor goes over them (so you don't have to click on the # title bar), delete the '#' from the "XTerm" line below. # (You might also want to add other programs here, possibly "emacs") # # Many people find autoraise annoying, so we turn it off by default. AutoRaise { # "XTerm" "emily.sun" # you probably will never run this or even read this. # but if you do and want a sparse matrix viewer, write # tloos@cs.indiana.edu } # Don't put title bars on these windows. This is a matter of personal taste, # of course. You might want to add others. # I don't really like title bars that much for background windows NoTitle { "xclock" "oclock" "xlogout" "xmter" "xeyes" "xbiff" "xcolors" } # Here are some menu definitions. # The table above defines how to get to each of these menus. menu "Window Ops" { "Window Ops" f.title "Move" f.move "Resize" f.resize "Raise" f.raise "Lower" f.lower "Refresh All" f.refresh "Refresh Window" f.winrefresh "Iconify" f.iconify "Deiconify" f.deiconify "Hide Icon Manager" f.hideiconmgr "Show Icon Manager" f.showiconmgr "" f.nop "Reread .twmrc" f.restart # use this after changing defaults in your ~/.Xresources file "Reread .Xresources" !"xrdb <$HOME/.Xresources" "" f.nop "Zoom" f.zoom "Full Zoom" f.fullzoom "Focus" f.focus "Unfocus" f.unfocus "Destroy" f.destroy "Circle Up" f.circleup "Circle Down" f.circledown "" f.nop "Exit TWM" f.quit } # You can put various X commands in this menu, if you don't feel # like invoking them manually. # Each of these commands should end with a '&' so that twm doesn't # wait for it to finish. menu "X Programs" { "X Programs" f.title "Calculator" !"xcalc &" "Calendar" !"xcalendar &" "XWebster" !"xwebster &" "Idraw" !"idraw &" "Xfig" !"xfig &" "Xman" !"xman &" "Sunclock" !"sunclock &" "Showmap" !"/u/mvanheyn/bin/getwx.pl &" "XColors" !"xcolors &" } # If you want to compress title bars to a minimum width, delete the # '#' from the next line. # SqueezeTitle # Pop up new windows in a random location rather than requiring # the user to locate them in a specific spot. You might like # this, you might not. # RandomPlacement # i don't like it. tjl # These colours will be used on colour displays. Color { BorderColor "yellow" TitleForeground "white" TitleBackground "seashell4" } # These colours will be used on monochrome displays. Monochrome { BorderColor "black" TitleForeground "black" TitleBackground "white" } # What cursors do you want to use? See the "twm" man page. # There are lots of possibilities Cursors { Menu "hand1" } menu "Hosts" { "Hosts" f.title "Local Window" !"xterm -title `hostname` &" "Console Window" !"xterm -geometry 80x8+0+0 -title Console -C &" "Colors" f.menu "Colors" "" f.nop "LH SGIs" f.menu "SGIs" "UCS SGIs" f.menu "Ships" "UCS Systems" f.menu "HostUCS" "Misc. LH Suns" f.menu "HostSun4" "Orchard" f.menu "HostOrchard" "Orchestra" f.menu "HostOrchestra" "RS 6000" f.menu "HostStars" } # here are some xterm windows in various colour combinations. # Note how you can specify colours for the menu entry itself. menu "Colors" { "Green/Black" ("green":"black") !"xterm -fg green -bg black &" "Gold/Navy" ("gold":"navy") !"xterm -fg gold -bg navy &" "Red/Black" ("red":"black") !"xterm -fg red -bg black &" "Gold/Black" ("gold":"black") !"xterm -fg gold -bg black &" } # menu for logins on the Ships cluster (UCS SGI's) menu "Ships" { "UCS SGIs" f.title "crazyhorse" !"xterm -title crazyhorse -bg blue -fg LawnGreen -cr red -e rlogin crazyhorse &" "boknor" !"xterm -title boknor -bg blue -fg LawnGreen -cr red -e rlogin boknor &" "haakona" !"xterm -title haakona -bg blue -fg LawnGreen -cr red -e rlogin haakona &" "devoras" !"xterm -title devoras -bg blue -fg LawnGreen -cr red -e rlogin devoras &" "potemkin" !"xterm -title potemkin -bg blue -fg LawnGreen -cr red -e rlogin potemkin &" "gorkon" !"xterm -title gorkon -bg blue -fg LawnGreen -cr red -e rlogin gorkon &" "reklar" !"xterm -title reklar -bg blue -fg LawnGreen -cr red -e rlogin reklar &" "trager" !"xterm -title trager -bg blue -fg LawnGreen -cr red -e rlogin trager &" "kalondin" !"xterm -title kalondin -bg blue -fg LawnGreen -cr red -e rlogin kalondin &" "qonosone" !"xterm -title qonosone -bg blue -fg LawnGreen -cr red -e rlogin qonosone &" "prang" !"xterm -title prang -bg blue -fg LawnGreen -cr red -e rlogin prang &" "kyushu" !"xterm -title kyushu -bg blue -fg LawnGreen -cr red -e rlogin kyushu &" "bortas" !"xterm -title bortas -bg blue -fg LawnGreen -cr red -e rlogin bortas &" "defiant" !"xterm -title defiant -bg blue -fg LawnGreen -cr red -e rlogin defiant &" "mondor" !"xterm -title mondor -bg blue -fg LawnGreen -cr red -e rlogin mondor &" "fesarius" !"xterm -title fesarius -bg blue -fg LawnGreen -cr red -e rlogin fesarius &" "gomtuu" !"xterm -title gomtuu -bg blue -fg LawnGreen -cr red -e rlogin gomtuu &" "jenolan" !"xterm -title jenolan -bg blue -fg LawnGreen -cr red -e rlogin jenolan &" "unnamed" !"xterm -title unnamed -bg blue -fg LawnGreen -cr red -e rlogin unnamed &" "krayton" !"xterm -title krayton -bg blue -fg LawnGreen -cr red -e rlogin krayton &" "kreechta" !"xterm -title kreechta -bg blue -fg LawnGreen -cr red -e rlogin kreechta &" "barruc" !"xterm -title barruc -bg blue -fg LawnGreen -cr red -e rlogin barruc &" } # menu for LH SGIs menu "SGIs" { "LH SGIs" f.title "caledonia" !"xterm -title BigNessie -bg LightSteelBlue4 -fg ivory -cr red -e rlogin caledonia &" "" f.nop "harp" !"xterm -title harp -bg ForestGreen -fg DeepSkyBlue1 -cr yellow-e rlogin harp &" "norway" !"xterm -title norway -bg ForestGreen -fg DeepSkyBlue1 -cr yellow -e rlogin norway &" "ireland" !"xterm -title ireland -bg ForestGreen -fg DeepSkyBlue1 -cr yellow -e rlogin ireland &" "kerry" !"xterm -title kerry -bg ForestGreen -fg DeepSkyBlue1 -cr yellow -e rlogin kerry&" "" f.nop "curie" !"xterm -title curie -bg ForestGreen -fg DeepSkyBlue1 -cr yellow-e rlogin curie &" "groundhog" !"xterm -title groundhog -bg ForestGreen -fg DeepSkyBlue1 -cr yellow -e rlogin groundhog &" } # LH Suns Menu menu "HostSun4" { "Sharks, etc." f.title "moose" !"xterm -title moose -bg peru -fg chartreuse -cr white -e rlogin moose &" "whale" !"xterm -title whale -bg purple -fg azure -cr red -e rlogin whale &" "" f.nop "silky" !"xterm -title silky -e rlogin silky &" "frilled" !"xterm -title frilled -e rlogin frilled &" "prickly" !"xterm -title prickly -e rlogin prickly &" "" f.nop "center" !"xterm -title center -e rlogin center &" "entity" !"xterm -title entity -e rlogin entity &" "" f.nop "greatwhite" !"xterm -title greatwhite -e rlogin greatwhite &" "hammerhead" !"xterm -title hammerhead -e rlogin hammerhead &" "thresher" !"xterm -title thresher -e rlogin thresher &" "tope" !"xterm -title tope -e rlogin tope &" "mako" !"xterm -title mako -e rlogin mako &" "spinner" !"xterm -title spinner -e rlogin spinner &" "loanshark" !"xterm -title loanshark -e rlogin loanshark &" "landshark" !"xterm -title landshark -e rlogin landshark &" "roussette" !"xterm -title roussette -e rlogin roussette &" } # STARRS cluster -- UCS IBM RS/6000's menu "HostStars" { "Stars" f.title "radha" !"xterm -title BigHonker -e rlogin radha &" "cygnus" !"xterm -title cygnus -e rlogin cygnus &" "aquila" !"xterm -title aquila -e rlogin aquila &" "aries" !"xterm -title aries -e rlogin aries &" "cepheus" !"xterm -title cepheus -e rlogin cepheus &" "draco" !"xterm -title draco -e rlogin draco &" "hercules" !"xterm -title hercules -e rlogin hercules &" "leo" !"xterm -title leo -e rlogin leo &" "lyra" !"xterm -title lyra -e rlogin lyra &" "orion" !"xterm -title orion -e rlogin orion &" "pegasus" !"xterm -title pegasus -e rlogin pegasus &" "perseus" !"xterm -title perseus -e rlogin perseus &" "pisces" !"xterm -title pisces -e rlogin pisces &" "scorpio" !"xterm -title scorpio -e rlogin scorpio &" "taurus" !"xterm -title taurus -e rlogin taurus &" "virgo" !"xterm -title virgo -e rlogin virgo &" } # Orchard -- LH 004 -- CS/UCS sun cluster menu "HostOrchard" { "Orchard" f.title "kiwi" !"xterm -title kiwi -e rlogin kiwi &" "guava" !"xterm -title guava -e rlogin guava &" "avocado" !"xterm -title avocado -e rlogin avocado &" "papaya" !"xterm -title papaya -e rlogin papaya &" "mango" !"xterm -title mango -e rlogin mango &" "banana" !"xterm -title banana -e rlogin banana &" "apricot" !"xterm -title apricot -e rlogin apricot &" "peach" !"xterm -title peach -e rlogin peach &" "nectarine" !"xterm -title nectarine -e rlogin nectarine &" "raisin" !"xterm -title raisin -e rlogin raisin &" "cherry" !"xterm -title cherry -e rlogin cherry &" "strawberry" !"xterm -title strawberry -e rlogin strawberry &" "blueberry" !"xterm -title blueberry -e rlogin blueberry &" "ugly" !"xterm -title ugly -e rlogin ugly &" } # The CS Orchestra machines in LH 130 menu "HostOrchestra" { "Orchestra" f.title "grouchy" !"xterm -title grouchy -e rlogin grouchy &" "oboe" !"xterm -title oboe -e rlogin oboe &" "violin" !"xterm -title violin -e rlogin violin &" "trumpet" !"xterm -title trumpet -e rlogin trumpet &" "piano" !"xterm -title piano -e rlogin piano &" "organ" !"xterm -title organ -e rlogin organ &" "tuba" !"xterm -title tuba -e rlogin tuba &" "flute" !"xterm -title flute -e rlogin flute &" "drum" !"xterm -title drum -e rlogin drum &" "cymbal" !"xterm -title cymbal -e rlogin cymbal &" "clarinet" !"xterm -title clarinet -e rlogin clarinet &" "guitar" !"xterm -title guitar -e rlogin guitar &" "saxophone" !"xterm -title saxophone -e rlogin saxophone &" "piccolo" !"xterm -title piccolo -e rlogin piccolo &" "bass" !"xterm -title bass -e rlogin bass &" "xylophone" !"xterm -title xylophone -e rlogin xylophone &" "chime" !"xterm -title chime -e rlogin chime &" "trombone" !"xterm -title trombone -e rlogin trombone &" "fife" !"xterm -title fife -e rlogin fife &" "frenchhorn" !"xterm -title frenchhorn -e rlogin frenchhorn &" "cello" !"xterm -title cello -e rlogin cello &" } # big iron UNIX (and old VAX) machines run by UCS menu "HostUCS" { "UCS" f.title "silver" !"xterm -title silver -bg grey75 -fg black -cr black -e rlogin silver &" "nickel" !"xterm -title nickel -e rlogin nickel &" "bronze" !"xterm -title bronze -e rlogin bronze &" "copper" !"xterm -title copper -bg red -fg white -e rlogin copper &" "" f.nop "prism" !"xterm -title prism -bg MediumOrchid -fg yellow -e rlogin prism &" "jade" !"xterm -title jade -bg MediumOrchid -fg yellow -e rlogin jade &" "aqua" !"xterm -title aqua -bg MediumOrchid -fg yellow -e rlogin aqua &" "gold" !"xterm -title gold -bg MediumOrchid -fg yellow -e rlogin gold &" "rose" !"xterm -title rose -bg MediumOrchid -fg yellow -e rlogin rose &" "amber" !"xterm -title amber -bg MediumOrchid -fg yellow -e rlogin amber &" "azure" !"xterm -title azure -bg MediumOrchid -fg yellow -e rlogin azure &" } # setup an icon region IconRegion "=250x150+600+0" West North 4 4 #IconRegion "=240x110+800+80" North West 4 4 #IconRegion "=250x110+600+80" North West 4 4