home *** CD-ROM | disk | FTP | other *** search
Wrap
#********************************************************************** # # .twmrc-meo - Miles' twm 5 startup file (with mwm look) # # Copyright 1993, Pencom Software, Austin, TX. # # Tab stops should be 3; try :set ts=3 in vi if things don't line up # # Every settable resource in the version of twm we ship is represented # herein. Many are currently deactivated via a '#' at the beginning of # # Most of twm's variable settings are listed at the end of this # file - these are the most commonly used. # BorderWidth 5 TitleFont "-*-courier-medium-r-normal--*-140-*-*-*-*-*-*" MenuFont "-*-courier-bold-o-normal--*-180-*-*-*-*-*-*" IconFont "9x15" ResizeFont "-*-courier-bold-r-normal--*-180-*-*-*-*-*-*" #DontMoveOff #NoRaiseOnDeiconify NoRaiseOnMove #NoRaiseOnResize #NoTitleFocus RandomPlacement # no user intervention required for new windows WarpCursor #Zoom # the BorderTile FG & BG are the same - make them different for tiled borders Color { BorderColor "DimGray" # optional window list BorderTileBackground "LightGray" # optional window list BorderTileForeground "LightGray" # optional window list DefaultBackground "LightGray" DefaultForeground "Black" IconBackground "LightGray" # optional window list IconBorderColor "DimGray" # optional window list IconForeground "Black" # optional window list IconManagerBackground "LightGray" # optional window list IconManagerForeground "Black" # optional window list IconManagerHighlight "DimGray" # optional window list MenuBackground "LightGray" MenuForeground "DimGray" MenuShadowColor "Black" MenuTitleBackground "LightGray" MenuTitleForeground "DimGray" TitleBackground "LightGray" # optional window list TitleForeground "DimGray" # optional window list } Monochrome { BorderColor "White" BorderTileBackground "White" BorderTileForeground "Black" # DefaultBackground "Black" # DefaultForeground "White" IconBackground "Black" # optional window list IconBorderColor "Black" # optional window list IconForeground "White" # optional window list IconManagerBackground "White" # optional window list IconManagerForeground "Black" # optional window list IconManagerHighlight "Black" # optional window list MenuBackground "White" MenuForeground "Black" MenuShadowColor "Black" MenuTitleBackground "Black" MenuTitleForeground "White" TitleBackground "Black" # optional window list TitleForeground "White" # optional window list } # Button bindings evolved from SunOS 3.x and later SunView bindings. # They are NOTHING like mwm standard bindings. They provide mappings # for nearly everything. # # Window Manager-Level Straight Mouse Button Mappings # # I pass unmodified Button1 straight through, always, always, always # (except on title bars, never, never, never) # #Button1 f.nop Button2 f.menu "Hosts Menu" Button3 f.menu "Screen Mgmt Menu" # a 5 key mouse? Good luck! Button4 f.nop Button5 f.nop # # Keyboard Bindings (Root & iconManager only) # # Modifiers Abbreviation | Context Abbreviation # --------- ------------ | ------- ------------ # control c | frame f # lock l | icon i # meta m | iconmgr m # shift s | root r # mod1 m1 | title t # mod2 m2 | window w # mod3 m3 | # mod4 m4 | # mod5 m5 | # #"Key" = Modifiers : Context : Function #------------------------------------------------------------------- "F1" = : root : f.menu "Hosts Menu" "F2" = : root : f.menu "Screen Mgmt Menu" "F3" = : root : f.menu "Screen Mgmt Menu" "F4" = : root : f.showiconmgr "F5" = : r|m : f.hideiconmgr "F6" = : root : f.beep "Left" = : root : f.circledown "Right" = : root : f.circleup "Up" = : root : f.showiconmgr "Down" = : r|m : f.hideiconmgr "Up" = m|s|c : root : f.menu "Hosts Menu" "Down" = m|s|c : root : f.menu "Screen Mgmt Menu" # BUTTON-KEY Mapping # # shift & control are under-utilized simply because they are used # so many other places in X. # # BUTTON = KEY/S : CONTEXT : FUNCTION # # In a Window # #Button1 = s : window : f.iconify Button1 = m : window : f.destroy Button2 = s : window : f.move Button3 = s : window : f.resize Button3 = m : window : f.menu "Screen Mgmt Menu" # # On an Icon # Button1 = s : icon : f.iconify Button1 = m : icon : f.destroy Button2 = s : icon : f.move Button3 = s : icon : f.resize Button3 = m : icon : f.menu "Screen Mgmt Menu" # # On a Title Bar # Button1 = : title : f.raise Button1 = s : title : f.iconify Button2 = : title : f.move Button2 = s : title : f.move Button3 = : title : f.lower Button3 = s : title : f.resize Button3 = m : title : f.menu "Screen Mgmt Menu" # # On a Frame # Button1 = : frame : f.raise Button1 = s : frame : f.iconify Button2 = : frame : f.move Button2 = s : frame : f.move Button3 = : frame : f.lower Button3 = s : frame : f.resize Button3 = m : frame : f.menu "Screen Mgmt Menu" # works with pre-R4 twm only # #TitleButton1 t.raise #TitleButton2 t.move #TitleButton3 t.lower #TitleButton4 t.nop #TitleButton5 t.nop #LeftTitleButton "mushroom.xbm" = f.destroy #RightTitleButton "circle_down.xbm" = f.circledown #RightTitleButton "circle_up.xbm" = f.circleup #RightTitleButton "lower.xbm" = f.lower #RightTitleButton "raise.xbm" = f.raise #RightTitleButton "focus.xbm" = f.focus #RightTitleButton "unfocus.xbm" = f.unfocus AutoRaise { "dlgPopup" "popupShell" } # The method of invoking xterms occasionally has to be modified to work # well on different systems, due to broken xterms or remote shells. Menu "Screen Mgmt Menu" { "Screen Mgmt" ("Yellow":"Blue") f.title "Other Systems" f.menu "Hosts Menu" "Terminal Windows" f.menu "Terminal Menu" "Screen Maint." f.menu "Maintenance Menu" "Special Ops" f.menu "Special Ops Menu" "Preferences" f.menu "Preferences Menu" "Misc. Stuff" ("Orange":"Cyan") f.title "Calculator" !"xcalc &" "clipboard" !"xclipboard -geometry 675x420+275+275 &" "Mail" !"xterm -bg black -fg green -bd violet -cr orange -ms orange -name Mail -geometry 80x40+200-0 -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -e /usr/ucb/Mail &" "Update twm" f.twmrc "Exit twm" ("Red":"White") f.quit } Menu "Hosts Menu" { "Other Systems" ("red":"blue") f.title "System 1" !"xterm -ut -sl 300 -ms Red -cr Red -bg LightSkyBlue -fg Black -geom 80x24+150+30 -T system1 -e telnet system1 &" "System 2" !"rsh system2 xterm -display `hostname`:0 -ut -cr OrangeRed -sl 300 -ms OrangeRed -bg BurlyWood1 -fg Yellow -sb -name system2 &" } Menu "Terminal Menu" { "Various Terminals" ("Tan":"White") f.title "Terminal Window" !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &" "Nicer Terminal" !"xterm -fn '-*-courier-bold-r-normal--*-180-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &" "Small Terminal" !"xterm -fn '-*-courier-medium-r-normal--*-80-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &" "Tall Terminal" ("Sienna":"Yellow") !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x66 -ut &" } Menu "Maintenance Menu" { "Window & Screen" ("Black":"Red") f.title "Move" f.move "Resize" f.resize "Expose" f.raise "Hide" f.lower "Redraw Window" f.winrefresh "Refresh Screen" f.refresh "Grab Keyboard" f.focus "Share Keyboard" f.unfocus "Icon <-> Window" ("White":"Red") f.iconify } Menu "Special Ops Menu" { "Special Ops" ("black":"red") f.title "Kill window" f.destroy "Exit twm" f.quit "Update twm" f.twmrc "twm Version" ("white":"blue") f.version } Menu "Preferences Menu" { "Preferences" ("black":"red") f.title "Bell" f.menu "Bell" "Key Click" f.menu "Key Click" "Mouse" f.menu "Mouser" "Screen Saver" ("white":"yellow") f.menu "Screen Saver" } Menu "Bell" { "Loud" ("black":"red") !"xset b 7 1000 100&" "Normal" !"xset b 3 1000 50&" "Off" ("white":"red") !"xset b off&" } Menu "Key Click" { "Loud" ("black":"OrangeRed") !"xset c 100&" "Soft" !"xset c on&" "Off" ("white":"OrangeRed") !"xset c off&" } Menu "Mouser" { "Fast" ("black":"Orange") !"xset m 4 10&" "Normal" !"xset m 2 5&" "Slow" ("white":"orange") !"xset m 1 1&" } Menu "Screen Saver" { "Default" ("black":"yellow") !"xset s on" "Off" !"xset s off" "Blank" !"xset s blank; xset s 600 30" "Pattern" ("white":"yellow") !"xset s noblank; xset s 600 30" } ForceIcons # icons designated in Icons variable override client requests IconDirectory "/usr/include/X11/bitmaps" Icons # obtained from IconDirectory (above) { "elm" "rd_elm.xbm" "xterm" "terminal" "Logout" "mushroom.xbm" "Riscman" "Riscman" "Main1" "terminal" "Main2" "terminal" "Tools1" "terminal" "Tools2" "terminal" "Games1" "terminal" "Games2" "terminal" } UnknownIcon "star" # whenever icon name is unspeciied or unfound NoHighlight # don't highlight/unhighlight as pointer crosses it { "xclock" "builderProduct" } NoTitle { "xbiff" "xclock" "xlogout" "xpostit" } # NOTE: some old features may have new options not shown # # AutoRelativeResize # resize relative to ptr position # ButtonIndent 1 # ClientBorderWidth # client overrides twm's BorderWidth # ConstrainedMoveTime 400 DecorateTransients # FramePadding 2 # IconBorderWidth 2 # IconifyManagerFont "9x15" # IconManagerGeometry "=400x250" 1 IconRegion "=1000x100+0-0" South West 10 10 IconRegion "=300x100+0+0" South West 10 10 InterpolateMenuColors # MaxWindowSize "2000x2000" # default is 30000x30000 # MoveDelta 0 # number of pixels ptr moves before f.move works NoBackingStore # NoCaseSensitive # ignore case in icon manager sort # NoDefaults # don't supply default titlebuttons and bindings # NoGrabServer # during menu popups & opaque moves # NoIconManagers NoMenuShadows # menu shadows broken in co-Xist 3.x ! # NoRaiseOnWarp #NoSaveUnders # NoStackMode # ignore client stacking order requests OpaqueMove # instead of outline move - nicer but slower RestartPreviousState # ShowIconManager # when twm started SortIconManager # sort entries alphabetically # TitleButtonBorderWidth 1 # TitlePadding 8 UsePPosition "non-zero" # WarpUnmapped # XorValue 2 DefaultFunction f.beep WindowFunction f.deiconify # # 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" } # # DontIconifyByUnmapping # { # } # # DontSqueezeTitle # { # these are optional # } # # IconifyByUnmapping # { # these are optional # } # # IconManagerBackground Grey # { # these are optional # } # # IconManagerDontShow # { # these are optional # } # # IconManagerForeground Black # { # these are optional # } # # IconManagerHighlight Black # { # these are optional # } # # IconManagers # named clients/classes get separate icom managers # { # "XTerm" "=80x24" 6 # "elm" "=200x100" 3 # } # # IconManagerShow # list of windows that should appear in icon manager # { # } # # MakeTitle # windows getting titlebars when NoTitle set # { # } # # NoTitleHighlight # { # these are optional # } # # Pixmaps # { # TitleHighlight "gray1" # } # # SaveColor # { # } # # SqueezeTitle # { # these are optional # "Main" left 0 0 # "Tools" left 0 0 # "Games" left 0 0 # } # # StartIconified # { # these are optional # } # # WindowRing # { # }