############################################################################# # # $Revision: 1.15 $ # # $Id: .twmrc,v 1.15 1993/05/14 14:33:00 mehul Exp $ # # The Tab Window Manager (twm) resource file. # # Copyright (c) 1992 by Raja Lakhan Software # All Rights Reserved. # # The way this file is divided as follows: # 1. Variables # 2. Bindings # 3. Menus # # # $Log: .twmrc,v $ # # 12-2022 KenUnix # Added Quit to applications menu /usr/X11/lib/system.twmrc # Truncates to system.twm # # 06/18/93 (fwb at Mark Williams) # Changed order of sections, moving variables to the top of the file, # as described in the twm manual page. Fixed some misspellings and # eliminated some British-isms (e.g., "colour" -> "color"). # Modified the invocation of some clients in the Applications menu to # conform to the COHERENT implementation of X, and to suit my tastes. # # Revision 1.15 1993/05/14 14:33:00 mehul # Changed the name ( Ultx --> Ultrix ). # # Revision 1.14 1993/05/13 22:25:36 mehul # renamed doors and increased their size to allow for the renaming. # # Revision 1.13 1993/05/10 18:05:27 mehul # added a new door for Solaris and SCO. also moved iconManager by 47 pixels # to the right ( 47 pixels away from the virtualDesktop ). I will probably # have more changes to make as i plan on making the VD a 100x100 display. # # Revision 1.12 1993/05/10 16:03:54 mehul # fixed a spelling error. # # Revision 1.11 1993/05/08 19:24:27 mehul # made changes in virtual desktop arrangement so that i can get more # "rooms" in there. # # Revision 1.10 1993/05/07 23:01:15 mehul # added xload to the applications menu # # Revision 1.9 1993/05/07 22:52:49 mehul # modified colours for fudge, kiss, snickers. added another xrdb function # thereby allowing me to have a colour version and a non-colour version # of the xrdb-function. # # Revision 1.5 1993/04/23 13:59:29 mehul # made sure the PostItNote was not showing in the virtual desktop. # # Revision 1.4 1993/04/23 13:18:00 mehul # gave colours for fudge, gave virtualk desktop colours for eclair and # fudge as well. # # Revision 1.3 1993/04/22 20:45:16 mehul # mod darkened ecalir's colour to gray40. # # Revision 1.2 1993/04/22 20:37:06 mehul # gave xterms for ECLAIR a bg of grey. # # Revision 1.1 1993/04/21 22:58:51 mehul # Initial revision # ####################################### # # Begining of Variables section # # NOTE: if u want to use iconManager instead of icons comment out IconRegion, # Icons, IconFont, and NoIconManagers. Then uncomment IconManagerFont, # IconManagerGeometry, IconifyByUnmapping, ShowIconManager, and # SortIconManager. Also always have DeiconifyToScreen turned on. AutoRaise { "AnswerGarden" "Virtual" } AutoRelativeResize BorderWidth 3 ButtonIndent 1 # ClientBorderWidth Color { DefaultBackground "#5f9ea0" # cadet blue DefaultForeground "#ffffff" # white BorderColor "#00ff00" #green { "xload" "khaki" "xclock" "khaki" "xbiff" "khaki" "xpostit" "red" "PostItNote" "peachpuff" "VTWM Icon Manager" "blue" "Virtual Desktop" "midnightblue" "Twm Door" "midnightblue" } BorderTileBackground "black" #{win-list} { "TRUFFLE" "yellow" "SNICKERS" "coral" "emacs" "pink" "PUDDING" "beige" "BONBON" "cyan" "MOUSSE" "hotpink" } BorderTileForeground "white" #{win-list} { "TRUFFLE" "yellow" "SNICKERS" "coral" "emacs" "pink" "PUDDING" "beige" "BONBON" "cyan" "MOUSSE" "hotpink" } MenuBackground "firebrick" MenuForeground "white" MenuTitleBackground "green" MenuTitleForeground "black" IconBackground "gray85" #{winList} IconForeground "brown" #{winList} IconBorderColor "yellow" #{winList} IconManagerBackground "blue" #{winList} IconManagerForeground "white" #{winList} IconManagerHighlight "#ffff00" #{winList} MenuShadowColor "grey40" TitleBackground "firebrick3" #{winList} TitleForeground "white" #{winList} } ConstrainedMoveTime 400 Cursors { Frame "top_left_arrow" Title "top_left_arrow" Icon "top_left_arrow" IconMgr "top_left_arrow" Move "fleur" Resize "fleur" Menu "sb_left_arrow" Button "hand2" Wait "watch" Select "dot" Destroy "pirate" } DecorateTransients #DontIconifyByUnmapping # { } DontMoveOff #DontSqueezeTitle ForceIcons #FramePadding 2 IconBorderWidth 2 #IconDirectory "/usr/ug/1993/msanghvi/X11/bitmaps/icons/" #IconFont "-adobe-times-bold-*-normal-*-*-140-*-*-*-*-*-*" IconifyByUnmapping # { } # just use icon manager IconManagerDontShow { "Virtual Desktop" "Twm Door" "xbiff" "xclock" "mailbox" "xload" "oclock" } IconManagerFont "-adobe-times-bold-*-normal-*-*-140-*-*-*-*-*-*" IconManagerGeometry "410x5+150+0" 5 # North West, 3 deep #IconManagers {} #IconManagerShow { } #IconRegion "384x200+103+0" West North 5 5 #IconRegion "384x200+103+180" West North 5 5 #Icons # { # "emacs" "emacs.icon" # "idraw" "idraw.icon" # "mxgdb" "dbx.icon" # "HEN" "sun3.icon" # "SOL" "sun4.icon" # "VEGA" "sun3.icon" # "Twm Door" "door.icon" # "Virtual Desktop" "vgui.icon" # "xconsole" "xconsole.icon" # "xedit" "xedit.icon" # "xload" "xload.icon" # "xman" "xman.icon" # "xrn" "xrn.icon" # "XTerm" "xterm.icon" # } InterpolateMenuColors # interpolate between entry specific colors #MakeTitle { } #MaxWindowSize "1024x864" MenuFont "-adobe-times-bold-r-normal-*-*-140-*-*-*-*-*-*" Monochrome { BorderColor "black" { "Twm Door" "white"} BorderTileBackground "white" BorderTileForeground "black" IconBackground "white" iconBorderColor "white" IconForeground "black" IconManagerBackground "white" IconManagerForeground "black" IconManagerHighlight "white" MenuBackground "white" MenuForeground "black" MenuShadowColor "black" MenuTitleBackground "white" MenuTitleForeground "black" TitleBackground "white" TitleForeground "black" } MoveDelta 3 #ResizeFont "-sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1" ResizeFont "-adobe-times-bold-*-normal-*-*-140-*-*-*-*-*-*" NoBackingStore # NoCaseSensitive # NoDefaults NoGrabServer NoHighlight { "dclock" "mailbox" "Virtual Desktop" "VTWM Icon Manager" "Twm Door" "xload" "xbiff" "xclock" "xpostit" "PostItNote" } # NoIconManagers # NoMenuShadows # NoRaiseOnDeiconify # NoRaiseOnMove # NoRaiseOnResize # NoRaiseOnWarp # NoSaveUnders # NoStackMode # {} NoTitle { "dclock" "help" "mailbox" "player" "review" "review_kill" "review_team" "review_your" "Twm Door" "TWM Icon Manager" "XPostit" "xbiff" "xclock" "xload" "xmter" "Virtual Desktop" "VTWM Icon Manager" } # NoTitleFocus # NoTitleHighlight # {} OpaqueMove # Pixmaps {} # RandomPlacement RestartPreviousState # SaveColors { } ShowIconManager # start with iconmgr up SortIconManager # keep them in alphabetic order SqueezeTitle # {} # StartIconified {} TitleButtonBorderWidth 1 TitleFont "-adobe-times-bold-*-normal-*-*-140-*-*-*-*-*-*" TitlePadding 8 #UnknownIcon "gui.icon" UsePPosition "non-zero" # WarpCursor # {} # WarpRing { "XTerm"} # WarpUnmapped # XorValue 1 Zoom 8 # the following need to be declared after all the fonts have been declared # that is why they appear here and not where they should be above. DefaultFunction f.beep WindowFunction f.menu " LeftTitleButton " # # End of Variables section # ################################## ################################## # # Beginning of Bindings section # # # Key || Button = KEYS : CONTEXT : FUNCTION #----------------------------------------------- #(for CONTEXT: r=root, t=title, f=frame, a=all # w=window, i=icon, m=iconmanager) #(for KEYS: s=shift,c=control,m=meta) # # KEYS : CONTEXT : FUNCTION #------------------------------------------------ # # Title Button Bindings # LeftTitleButton ":menu" = f.menu "LeftTitleButton" Function "move-or-lower" { f.move f.deltastop f.lower } Function "move-or-raise" { f.move f.deltastop f.raise } Function "move-or-iconify" { f.move f.deltastop f.iconify } # # Mouse (Pointer) Bindings # Button1 = c|m : i|f|t|w : f.raise Button1 = : root : f.menu "Applications" Button1 = : t|i : f.move Button1 = : frame : f.resize Button1 = : m|i : f.iconify #Button1 = c|s : window | icon | title : f.function "move-or-raise" Button2 = : root : f.menu "Properties" Button2 = : i|f : f.move #Button2 = c : i|f|t|w : f.lower #Button2 = c|s : window | icon | title : f.function "move-or-lower" Button3 = : root : f.menu "Twm Operations" Button3 = : i|f : f.menu "LeftTitleButton" Button3 = c|s : window | icon | title : f.fullzoom # # Keyboard Bindings # "Space" = m : i|w : f.menu "LeftTitleButton" "F1" = m : all : f.function "xrdb" "F2" = m : all : f.menu "Applications" "F3" = m : all : f.menu "Properties" "F4" = m : all : f.menu "Twm Operations" "F4" = c : window : f.destroy #"F2" = s : window : f.function "fullzoom-n-raise" #"F2" = s : title : f.function "fullzoom-n-raise" #"F2" = s : frame : f.function "fullzoom-n-raise" #"F3" = : window : f.raiselower #"F4" = : window : f.iconify ## Functions Function "deiconify-n-zoom" { f.fullzoom f.deiconify } Function "fullzoom-n-raise" { f.fullzoom f.raise } Function "xrdb-color" { f.exec "xrdb -remove" f.exec "xrdb -DCOLOUR -load $HOME/.Xdefaults" } Function "xrdb-bw" { f.exec "xrdb -remove" f.exec "xrdb -load $HOME/.Xdefaults" } # # End of bindings section # ################################## ############################### # # Begining of Menus section # # # The Properties main menu # # color version Menu "Properties" { " Properties " f.title "Autoraise"("white":"orange3") f.autoraise "Focus" ("white":"gray40") f.focus "Unfocus"("white":"indianred") f.unfocus } ########################################################################## ## ## The Applications main menu and sub menus ## ######################################################################### # The Applications main menu Menu "Applications" ("black":"lightseagreen") { "APPLICATIONS" ("black":"lightseagreen") f.title "XTerm" !"xterm -geometry 80x24 -ls -cr red &" "VT-100" !"xvt -geometry 80x24 &" "Xman" !"xman &" "Mosaic" !"mosaic &" "System" f.menu " System " "Demos" f.menu " Demos " "Games" f.menu " Games " # Added quit 12-2022 KenUnix "Quit Window Manager" f.quit } # the Systeme submenu Menu " System " { "SYSTEM" ("black":"lightseagreen") f.title "Font Select" ("lightseagreen":"black") !"xfontsel &" "Bitmap" !"bitmap &" "XMag" !"xmag &" "Xclipboard" !"xclipboard &" "XBiff" !"xbiff &" "XClock" !"xclock -chime -fg blue -update 1 &" "OClock" !"oclock &" "XLoad" !"xload &" "XCalc" f.menu " Calculator " } # the Demos submenu Menu " Demos " { "DEMOS" ("black":"lightseagreen") f.title "Xeyes" !"xeyes -fg red &" "XLogo" !"xlogo &" "Maze" !"maze &" "Ico" !"ico -bg blue -sleep 1 -size 75x75 -geometry 300x200 &" "Xgas" !"xgas &" "Xwave" !"xwave &" "Xengine" !"xengine &" "Xswarm" !"xswarm &" } # the Games submenu Menu " Games " { "GAMES" ("black":"lightseagreen") f.title "Puzzle" !"puzzle &" "XTetris" ("lightseagreen":"black") !"xtetris &" "Xlander" !"xlander &" "Invaders" !"xinvaders &" } # the Calculator submenu Menu " Calculator " { "CALCULATORS" ("black":"lightseagreen") f.title "HP 10-C" !"xcalc -rpn &" "TI-30" !"xcalc &" } ############################## # # the Twm Operations # Menu "Twm Operations" { "TWM Operations" ("black":"yellow") f.title "Beep" ("yellow":"black") f.beep "Close Window" f.delete "Destroy Application" f.destroy "Focus" f.focus "Force Move" f.forcemove "Full Zoom" f.fullzoom "Hide Icon Manager" f.hideiconmgr "Iconify" f.iconify "Info...." f.identify "Lower" f.lower "Lower Current Window" f.circledown "Move" f.move "Raise" f.raise "Raise Current Window" f.circleup "Raise or Lower" f.raiselower "Resize" f.resize "Refresh Window" f.winrefresh "Refresh Screen" f.refresh "Show Icon Manager" f.showiconmgr "Unfocus" f.unfocus "Window List" f.menu "TwmWindows" "Zoom" f.zoom # 12-2022 KenUnix turned off # "Quit Window Mgr." ("yellow":"black") f.quit } Menu "LeftTitleButton" ("black":"cornflowerblue") { "WINDOW OPS" ("lightsteelblue":"gray25") f.title "Iconify" ("gray25":"lightsteelblue") f.iconify "Lower" f.lower "Move" f.move "Raise" f.raise "Refresh" f.winrefresh "Resize" f.resize "Applications" f.menu "Applications" "Properties" f.menu "Properties" "Twm Operations" f.menu "Twm Operations" "Info...." f.identify "Kill Program" f.destroy "Close Window" ("gray25":"steelblue") f.delete } # # End of menu section # ########################## ################################ # # Begining of Vtwm resources # # # Bindings for Vtwm # #Button = KEYS Button3 = c : root : f.menu "VTWM" "F5" = m : all : f.menu "VTWM" # # Menus for Vtwm # WindowRing { "XTerm" } # # End Of Window Manager Resource File # ########################################