1 ############################################################
3 ## Fri Jul 30 14:37:25 EDT 1993 ##
5 ## I am including this vtwmrc in the distribution ##
6 ## because it is so incredibly well organized and shows ##
7 ## the differences between twm, vtwm, and tvtwm. ##
9 ## As an example of what you can learn from this, the ##
10 ## vtwm VirtualDesktopFont and the tvtwm VirtualFont ##
11 ## both mean the same thing and *ought* to have the ##
14 ############################################################
18 #=============================================================================
19 # File: ~/.?twmrc V1.00 93/07/08 M.J.E. Mol
20 # marcel@duteca.et.tudelft.nl
22 # This file is read by the twm, vtwm or tvtwm Xwindow managers.
26 ############################################################################
28 ############################################################################
32 # ResizeFont "fixed" # resize dimension indicator # "9x15"
33 ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
34 # IconManagerFont "6x12" #"variable" # "6x10"
35 IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
36 # MenuFont "variable" # "6x10" "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1"
37 MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
38 # TitleFont "variable" # "6x13" "6x10"
39 TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
43 # DoorFont "6x10" # Needed to allow doors
44 DoorFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
45 VirtualDesktopFont "variable"
49 #VirtualFont "variable" # 5x8
50 #MenuTitleFont "-adobe-helvetica-bold-r-normal--*-140-*-*-*-*-*-*"
53 ############################################################################
55 ############################################################################
57 # TWM Boolean Variables
59 AutoRelativeResize # Allow resize from any point within the window
60 ClientBorderWidth # Take border width from initial border width of window
61 DecorateTransients # Transient windows should have titlebars
62 DontMoveOff # Do not allow windows to be moved of the screen
63 # ForceIcons # Force use of "Icons" list instead of client-supplied one
64 # InterpolateMenuColors # Gradually changing menu colors
65 # NoBackingStore # Backing store for twm's menus
66 NoCaseSensitive # For sorting icon names in icon manager
67 # NoDefaults # Needed when building own title buttons and bindings
68 NoGrabServer # When popping up menus or moving opaque windows
69 # NoIconManagers # Don't create icon managers
70 # NoMenuShadows # Don't draw drop shadows behind menus
71 # NoRaiseOnDeiconify # Don't automatically raise windows on de-iconify
72 # NoRaiseOnMove # Don't automatically raise when windows are moved
73 # NoRaiseOnResize # Don't automatically raise when windows are resized
74 # NoRaiseOnWarp # Don't automatically raise window when f.warpto
75 # NoSaveUnders # Repaint instead of save-under for menu selection
76 # NoTitleFocus # Don't set input focus when window is entered
77 # OpaqueMove # F.move window instead of just an outline
78 # RandomPlacement # Don't give ouline-drag for no-geometry windows
79 RestartPreviousState # 'Remember' previous state when window manager is restarted
80 ShowIconManager # Show icon manager on startup
81 # SortIconManager # Sort icons alphabetically in iconmanager
82 WarpUnmapped # Allow f.warpto to de-iconify windows
85 # VTWM Boolean Variables
87 # DeiconifyToScreen # De-iconifying puts window on physical screen instead of old position
88 #NotVirtualGeometries # Geometries relative to screen, not over whole desktop
89 # SnapRealScreen # Snap to grid defined in PanDistanceX and PanDistanceY
90 # WarpWindows # move window to real screen instead of moveing real screen
93 # TVTWM Boolean Variables
95 #PannerOpaqueScroll # Only useful when StickyAbove is set
96 #ShowVirtualNames # Give virtual desktop windows a name using VirtualFont
97 #StayUpMenus # Only select menuitems when they are pushed
98 #StickyAbove # Sticky windows will always be on top
101 # TWM Numeric Variables
103 BorderWidth 2 # Frame border width in pixels
104 ButtonIndent 1 # 0, Title button indentation in pixels
105 ConstrainedMoveTime 400 # Time (msec) in which double click allows only move in hor or vert direction
106 FramePadding 2 # Pixelwidth between titlebar decorations and the window frame
107 IconBorderWidth 2 # Border of icons in pixels
108 MoveDelta 3 # Number of pixels to move before f.move starts working (also f.deltastop)
109 TitleButtonBorderWidth 1 # 0, Distance between title buttons
110 TitlePadding 8 # 16, Distance between title buttons, text and highlight area
111 # XorValue 1 # Outline color setter for move and resize
112 Zoom 16 # Iconify/de-iconfy outline show count
115 # VTWM Numeric Variables
117 # AutoPan 5 # Pan when mouse is with <arg>% range of edge of screen
118 # AutoRaiseDelay 30000 # == RaiseDelay ?
119 # PanDistanceX 3? # Grid of screens for f.snap
120 # PanDistanceY 3? # Move real screan to closest grid location
121 RaiseDelay 3000 # Milliseconds to delay before AutoRaise/f.autoraise
124 # TVTWM Numeric Variables
126 #PannerScale 20 # Scale of deskto panner to real screen
127 #ScrollDistanceX 100 # % scroll when scrolling in virtual desktop
128 #ScrollDistanceY 100 # % scroll when scrolling in virtual desktop
129 #TitleFontPadding 5 # pixels above window titles
132 # TWM String Variables
134 # Path to look for bitmaps if they cannot be found in "bitmapFilePath" resource
135 # IconDirectory "/usr/include/X11/bitmaps"
136 # IconDirectory "/usr/include/X11/bitmaps:/usr/local/bitmaps/local"
137 # IconDirectory "/usr/local/X11/bitmaps"
138 IconDirectory "/usr/X386/lib/X11/xdtm/icons/small"
139 MaxWindowSize "30000x30000"
140 UnknownIcon "icon" # icon bitmap to use when no other found
141 UsePPosition "on" # program requested location, "on" "off" "nonzero"
143 # VTWM String Variables
145 # RealScreenPixmap "realscr.bm" # decorate virt. desktop realscreen (panner)
146 # VirtualBackgroundPixmap "something" # decoration for virtual desktop
148 # TVTWM String Variables
150 #PannerBackgroundPixmap "realscr.bm" # decoration of panner
151 #PannerGeometry "=100x250-0+0"
152 #PannerState "normal" # normal, iconic, withdrawn
153 #VirtualDesktop "3x2"
154 #VirtualDesktopBackgroundPixmap "something" # decoration for virtual desktop
157 # TWM Complex Variables
159 IconManagerGeometry "=100x250-0+0" 1 # 1 column
160 # Define regions to put icons (multiple lines allowed)
161 # IconRegion geomstring # define geometry)
162 # vgrav # North or South fill direction
163 # hgrav # East for West fill direction
164 # gridwidth # grid dimensions to put icons in
166 IconRegion "=300x300+200-0" North East 30 30
169 # VTWM Complex Variables
171 #VirtualDesktop "150x100-0-0" 20 # Panner geometry and scale
172 VirtualDesktop "3x2-0-0" 20 # Panner geometry and scale
180 DefaultBackground "white" # "maroon" Sizing and information windows
181 DefaultForeground "black" # "gray85"
182 MenuBackground "maroon"
183 MenuForeground "black" # "gray85"
184 MenuShadowColor "blue"
185 MenuTitleBackground "gray70" # "red" # f.title color
186 MenuTitleForeground "maroon" # "black"
189 BorderColor "LightGoldenRod" { #"slategrey"
193 BorderTileBackground "white" { } # Unhighlighted window borders
194 BorderTileForeground "black" { }
195 IconBackground "maroon" { } # "white" black
196 IconBorderColor "black" { } # "gray85"white
197 IconForeground "black" { } # "gray85" white
198 IconManagerBackground "white" { } # "maroon"
199 IconManagerForeground "black" { } # "gray85"
200 IconManagerHighlight "blue" {"xterm" "red" "seyon" "orange"}
201 TitleBackground "sea green" {"xterm" "steelblue" "seyon" "brown"}
202 TitleForeground "white" { } # "gray85"
205 RealScreenBackground "orange" # virtual desktop realscreen indicator
206 RealScreenForeground "yellow" # needs RealScreenPixmap
207 VirtualBackground "green"
208 VirtualForeground "red"
211 DesktopDisplayBackground "pink" { } # color of windows in virtual desktop windows and in iconmanager
212 DesktopDisplayBorder "green" { } # border color of windows in virtual desktop window
213 DesktopDisplayForeground "white" { } # color of text in windows in virtual desktop window and iconmanager, needs VirtualDesktopFont
214 DoorBackGround "orange" { }
215 DoorForeGround "blue" { }
218 #PannerBackground "yellow"
219 #PannerForeground "blue"
220 #VirtualDesktopBackground "steelblue" # Whole screen,
221 #VirtualDesktopForeground "black" # use with VirtualBackgroundPixm
223 # TVTWM Complex Color
224 #VirtualBackground "orange" { }
225 #VirtualForeground "green" { }
230 DefaultBackground "white"
231 DefaultForeground "black"
232 MenuBackground "white"
233 MenuForeground "black"
234 MenuShadowColor "black"
235 MenuTitleBackground "white" # black, f.title color
236 MenuTitleForeground "black" # white
239 BorderColor "black" { }
240 BorderTileBackground "white" { }
241 BorderTileForeground "black" { }
242 IconBackground "white" { } # black
243 IconBorderColor "black" { } # white
244 IconForeground "black" { } # white
245 IconManagerBackground "white" { }
246 IconManagerForeground "black" { }
247 IconManagerHighlight "black" { }
248 TitleBackground "black" { }
249 TitleForeground "white" { }
252 RealScreenBackground "black" # virtual desktop realscreen indicator
253 RealScreenForeground "white" # needs RealScreenPixmap
254 VirtualBackground "white"
255 VirtualForeground "black"
258 DesktopDisplayBackground "black" { } # color of windows in virtual desktop windows and in iconmanager
259 DesktopDisplayBorder "white" { } # border color of windows in virtual desktop window
260 DesktopDisplayForeground "white" { } # color of text in windows in virtual desktop window and iconmanager, needs VirtualDesktopFont
261 DoorBackGround "white" { }
262 DoorForeGround "black" { }
265 #PannerBackground "black"
266 #PannerForeground "white"
267 #VirtualDesktopBackground "white" # Whole screen,
268 #VirtualDesktopForeground "black" # use with VirtualBackgroundPixm
271 # TVTWM Complex Color
272 #VirtualBackground "white" { }
273 #VirtualForeground "black" { }
276 AutoRaise { # Auto raise windows
294 # cursorname "string" for names in include/X11/cursorfont.h
295 # cursoname "image" "mask" for cursors taken from bitmap files
296 Frame "top_left_arrow" # "spider"
297 Title "top_left_arrow"
298 Icon "top_left_arrow"
299 IconMgr "top_left_arrow"
314 # DontIconifyByUnmapping { } # Iconify to icons instead of to icon manager
315 # IconifyByUnmapping { } # Don't try to map any icons. Remap through iconmanager, f.warpto or TwmWindows menu
317 IconManagerDontShow {
329 IconManagers { # Definition of iconmanagers...
330 # "winname" ["iconname"] "geometry" columns
331 # "XTerm" "=300x5+800+5" 5
334 # IconManagerShow { }
337 # "XTerm" "xterm.icon"
339 # "Seyon" "seyon.icon"
342 # MakeTitle { } # Create title bars even when NoTitle has been specified
344 NoHighLight { # i.e. not drawing borders in bordercolor
359 NoStackMode { } # ignore stacking request for these windows
361 NoTitle { # don't show a titlebar for these windows
377 NoTitleHighlight { } # don't highlight titlebar when focused in window
379 Pixmaps { # <pixmap> "bitmapfile"
380 # TitleHighlight "gray1"
382 # RealScreenPixmap "something"
383 # VirtualBackgroundPixmap "something else"
386 # SaveColor { <colors-list> }
388 # titlebar is only as large as is needed for decorations
389 # { "name" left|center|right nominator denominator }
392 DontSqueezeTitle { } # Don't make title bar as short a possible
398 WarpCursor { # warp cursor in window when de-iconified
404 WindowRing { # windows to cycle through by f.warpring
411 # VTWM List Variables
414 DontShowInDisplay { # Don't show in virtual desktop window
425 Doors { # remember to set DoorFont
426 # "winname" "location" "jumpTo"
427 "Home" "60x15+650+1" "+0+0"
428 "Screen 1" "60x15+710+1" "+1024+0"
429 "Screen 2" "60x15+770+1" "+2048+0"
430 "Screen 3" "60x15+650+16" "+0+1024"
431 "Screen 4" "60x15+710+16" "+1024+1024"
432 "Screen 5" "60x15+770+16" "+2048+1024"
435 # NailedDown { # Keep on physical screen, see Sticky
436 Sticky { # synomym for naileddown
446 # TVTWM List Variables
448 #IconTitle { } # Give titles to icons, even when NoIconTitle is set
449 #NoIconTitle { } # Give titles to icons, even when NoIconTitle is set
452 # Put these two in at end of variable section, before bindings section
454 DefaultFunction f.beep # for non-bound keys or buttons
455 # WindowFunction f.deiconify # function to perform when window is selected from "TwmWindows" menu
458 ######################################################################
459 # End of Variable Section
460 ######################################################################
470 # f.saveyourself FKEYWORD F_SAVEYOURSELF
471 # f.setrealscreen FSKEYWORD F_SETREALSCREEN
472 # f.snap FKEYWORD F_SNAP
473 # f.snugdesktop FKEYWORD F_SNUGDESKTOP
474 # f.snugwindow FKEYWORD F_SNUGWINDOW
476 # f.nexticonmgr FKEYWORD F_NEXTICONMGR
477 # f.previconmgr FKEYWORD F_PREVICONMGR
479 # f.warptoiconmgr FSKEYWORD F_WARPTOICONMGR
480 # f.warptoscreen FSKEYWORD F_WARPTOSCREEN
484 ######################################################################
486 ######################################################################
487 # bitmaps are stored in /usr/include/X11/bitmaps
488 # ":bitmap" uses internal bitmap
489 # (:dot, :xlogo, :iconify, :resize, :question, :delete, :menu)
490 #---------------------------------------------------------------------
491 RightTitleButton ":menu" = f.menu "WindowSettings"
492 RightTitleButton ":iconify" = f.iconify
493 RightTitleButton "jpzoom" = f.zoom
494 LeftTitleButton ":xlogo" = f.menu "XSettings"
496 ######################################################################
497 # Button/key bindings
498 ######################################################################
499 # Button = KEYS : CONTEXT : FUNCTION
500 # Keys can be m (meta) s (shift) c (control) l (lock) m1-5 (meta1-meta5)
501 # Context can be window, title, icon, root, frame, virtual, desktop, door,
503 #---------------------------------------------------------------------
504 Button1 = : root : f.menu "Applications"
505 Button2 = : root : f.menu "WindowManager"
506 Button3 = : root : f.menu "Rlogins"
507 Button1 = : door : f.enterdoor
508 Button1 = : title|icon|iconmgr : f.function "move-or-raise" #f.raise
509 Button2 = : title : f.move
510 Button2 = : icon | iconmgr : f.iconify
511 Button3 = : title|icon|iconmgr : f.function "focus_and_raise"
512 Button1 = c : door : f.deletedoor
513 Button1 = s : all : f.menu "Applications"
514 Button2 = s : title | window : f.move
515 # Don't want to define next: idraw uses that button...
516 #Button3 = s : all : f.menu "Applications"
517 Button1 = m : all : f.menu "WindowSettings"
518 Button2 = m : title | window : f.forcemove
519 Button3 = m : title | icon | iconmgr : f.lower
520 #Button1 = m : window | icon : f.function "move-or-lower"
521 #Button2 = m : window | icon : f.iconify
522 #Button3 = m : window | icon : f.function "move-or-raise"
523 #Button2 = : title : f.raiselower
524 #Button1 = : icon : f.function "move-or-iconify"
526 #"F1" = : all : f.iconify
527 "F2" = : all : f.function "xvi"
528 #"F2" = : all : f.raiselower
529 #"F3" = : all : f.warpring "next"
530 #"F4" = : all : f.warpto "xmh"
531 #"F5" = : all : f.warpto "emacs"
532 "F6" = : title | window : f.iconify
533 #"F6" = : all : f.colormap "next"
534 #"F7" = : all : f.colormap "default"
535 "F9" = : all : f.warpto "idraw"
536 "F10" = : all : f.warpring "next"
537 "F11" = : all : f.warpring "prev"
538 "F14" = : all : f.function "xlock"
539 #"F20" = : all : f.warptoscreen "next"
541 "Delete" = m c : title | window : f.destroy
543 "Left" = : iconmgr : f.lefticonmgr # f.backiconmgr
544 "Right" = : iconmgr : f.righticonmgr # f.forwiconmgr
545 "Down" = : iconmgr : f.downiconmgr
546 "Up" = : iconmgr : f.upiconmgr
547 "Left" = m : all : f.backiconmgr
548 "Right" = m : all : f.forwiconmgr
549 "Up" = m : all : f.upiconmgr
550 "Down" = m : all : f.downiconmgr
552 # VTWM Desktop Scroll
554 "Left" = : root : f.panleft "100"
555 "Right" = : root : f.panright "100"
556 "Up" = : root : f.panup "100"
557 "Down" = : root : f.pandown "100"
558 "Left" = s : all : f.panleft "100"
559 "Right" = s : all : f.panright "100"
560 "Up" = s : all : f.panup "100"
561 "Down" = s : all : f.pandown "100"
563 # TVTWM Desktop Scroll
565 #"Left" = : root : f.scrolleft
566 #"Right" = : root : f.scrollright
567 #"Up" = : root : f.scrollup
568 #"Down" = : root : f.scrolldown
569 #"Left" = s : all : f.scrolleft
570 #"Right" = s : all : f.scrollright
571 #"Up" = s : all : f.scrollup
572 #"Down" = s : all : f.scrolldown
576 # Fuctions defined for Buttons
577 #---------------------------------------------------------------------
578 Function "focus_and_raise" { f.focus f.raise }
579 Function "xlock" { !"xlock -mode swarm -font '8x13' &" }
580 Function "xvi" { !"xvi &" }
581 Function "move-or-lower" { f.move f.deltastop f.lower }
582 Function "move-or-raise" { f.move f.deltastop f.raise }
583 Function "move-or-iconify" { f.move f.deltastop f.iconify }
584 Function "restore-colormap" { f.colormap "default" f.lower }
587 ######################################################################
589 ######################################################################
590 # (default font and geometry for "xterm" are defined in ~/.Xdefaults)
591 #---------------------------------------------------------------------
593 menu "Applications" {
594 "Applications" ("black":"yellow") f.title
595 "Lock" f.function "xlock"
596 "Xterm" !"xterm -geometry =80x24 &"
597 "nn" ("black":"yellow") !"xnn &"
599 "Misc. Appl." f.menu "MiscAppl"
600 "Window Manager" f.menu "WindowManager"
601 "XSettings" f.menu "XSettings"
602 "WindowSettings" ("black":"cyan") f.menu "WindowSettings"
603 "TWM Windows" f.menu "TWM Windows"
604 "TwmWindows" f.menu "TwmWindows"
605 "Rlogins" f.menu "Rlogins"
606 "Colors" f.menu "Colors"
607 "Xterms" ("white":"green") f.menu "Xterms"
608 "File" f.file "/vtwm.file"
611 menu "WindowManager" {
612 "Window Manager" f.title
614 "Refresh Desktop" f.resetdesktop
615 "Hide Icon Manager" f.hideiconmgr
616 "Show Icon Manager" f.showiconmgr
617 "Sort Icon Manager" f.sorticonmgr
618 "Hide Virtual Desktop" f.hidedesktopdisplay
619 "Show Virtual Desktop" f.showdesktopdisplay
620 "Toggle Virtual Geometries" f.virtualgeometries
621 "Create Door" f.newdoor
622 "Delete Door" f.deletedoor
623 "Focus on Root" f.unfocus
624 "Toggle Autopan" f.autopan
625 "Restart Twm" f.twmrc # f.restart
626 "TWM keys" !"xtwmkeys &"
627 "Backdrops" !"xsetbg `xfiles /usr/local/X11/local/bitmaps`&"
632 menu "WindowSettings" {
633 "Window Settings" ("black":"cyan") f.title
634 "Refresh" f.winrefresh
635 "AutoRaise" f.autoraise
638 "Focus" f.focus # f.unfocus
639 "Focus&Raise" f.function "focus_and_raise"
641 "ForceMove" f.forcemove
643 "Identify" f.identify
646 "Toggle in WarpRing" f.ring
648 "Squeeze Title Center" f.squeezecenter
649 "Squeeze Title Left" f.squeezeleft
650 "Squeeze Title Right" f.squeezeright
656 "FullZoom" f.fullzoom
657 "LeftZoom" f.leftzoom # f.vlzoom
658 "RightZoom" f.rightzoom # f.vrzoom
659 "TopZoom" f.topzoom # f.htzoom
660 "BottomZoom" f.bottomzoom # f.hbzoom
661 "VerticalZoom" f.zoom
662 "HorizontalZoom" f.horizoom # f.hzoom
666 "Misc. Appl." f.title
668 # "nn" ("black":"yellow") !"xnn &"
670 "calc" !"xcalc -rv &"
674 # "archie" !"xarchie &"
675 "bricks" !"xsetroot -bitmap /usr/local/X11/local/bitmaps/wall.xbm&"
676 # "swarm" !"xswarm &"
680 # "vi" f.function "xvi"
686 "Bell Loud" !"xset b 100&"
687 " Normal" !"xset b 50&"
688 " Off" !"xset b off&"
689 " High" !"xset b 50 880&"
690 " Medium" !"xset b 50 440&"
691 " Low" !"xset b 50 220&"
692 "Click Loud" !"xset c 80&"
693 " Normal" !"xset c 40&"
694 " Off" !"xset c off&"
695 "Lock On" !"xset l on&"
696 " Off" !"xset l off&"
697 "Mouse Fast" !"xset m 4 2&"
698 " Normal" !"xset m 2 5&"
699 " Slow" !"xset m 1 1&"
704 "Next" f.colormap "next"
705 "Previous" f.colormap "prev"
706 "Default" f.colormap "default"
710 # The "-name" specifies the name that applies to resources in ~/.Xdefaults
711 # The "-n" specifies the name that appears in the icon
712 # The "-title" or "-T" specifies the name that appears in the titlebar
713 # icon-name and title are default set to the name of the executable (i.e.
714 # "xterm") or set to the name of the executable after the "-e" option or
715 # set to the name after the "-name" option
720 "xterm -fn 6x13" !"xterm -fn 6x13 -geometry =80x24 &"
721 "xterm -fn 8x13" !"xterm -fn 8x13 -geometry =80x24 &"
722 "xterm -fn 9x15" !"xterm -fn 9x15 -geometry =80x24 &"
727 "Local" !"xterm -T `hostname` &"
729 "baldrick" ("black":"green") !"xterm -T baldrick -e rlogin baldrick &"
730 "bean" ("black":"green") !"xterm -T bean -e rlogin bean &"
731 "percy" ("black":"green") !"xterm -T percy -e rlogin percy &"
733 "SUN4s" f.menu "SUN4s"
734 "SUN3s" f.menu "SUN3s"
736 "Telnet" ("black":"yellow") !"xterm -name telnet -e telnet &"
742 "baldrick" ("black":"green") !"xterm -T baldrick -e rlogin baldrick &"
743 "bean" ("black":"green") !"xterm -T bean -e rlogin bean &"
749 "percy" ("black":"green") !"xterm -T percy -e rlogin percy &"
750 "darling" ("black":"green") !"xterm -T darling -e rlogin darling &"
751 "bob" ("black":"green") !"xterm -T bob -e rlogin bob &"