home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / x11 / x11r5.zoo / usr / lib / X11 / twm / jim.twmrc next >
Encoding:
Text File  |  1990-04-19  |  7.7 KB  |  251 lines

  1. #**********************************************************************
  2. #
  3. #    .twmrc
  4. #
  5. #**********************************************************************
  6.  
  7. #IconDirectory "/users/jim/icons"    # use *bitmapFilePath instead.
  8.  
  9. #
  10. # Use the SHAPE extension to make titles use as little space as possible.  The
  11. # location of the titles is specified as a fraction of the distance from the
  12. # left (numerator positive) or right edge (numerator negative).  A denominator
  13. # of 0 indicates that the numerator is measured in pixels.  The title is then
  14. # justified over the indicated spot (note special cases are made for center on
  15. # 0/0 and right on 0/0 to indicate the center and right edge of the titlebar).
  16. #
  17. SqueezeTitle            # also sets default to Squeeze all Titles
  18. {
  19. #   name    justify    num denom
  20.     "oclock"    center      0  0        # centered over middle of title
  21.     "XTerm"    left      0  0        # left edge of title
  22.     "xlogo"    right      0  0        # for kicks
  23.     "emacs"    right      0  0        # left side emacs with center tab
  24.     "xmh"    center      0  0
  25. }
  26. DontSqueezeTitle
  27. {
  28.     "XLogout"            # make it stand out when mapped
  29. }
  30. NoDefaults            # turn off iconify and resize button
  31. LeftTitleButton "menu12" = f.menu "windowmenu"    # add a menu to each window
  32. TitleButtonBorderWidth 0    # don't want to see box around button
  33. ButtonIndent 0            # button doesn't have to be smaller
  34.  
  35. UsePPosition "on"        # use program-specified size hints accepted
  36. NoHighlight            # do not flash borders on enter events
  37. OpaqueMove            # actually move window instead of outline
  38. AutoRelativeResize        # don't require resize to cross border to start
  39. RestartPreviousState        # reiconify iconified things on startup
  40. ClientBorderWidth        # use the application border width on frame
  41. BorderWidth 2            # width of top level windows created by twm
  42. NoGrabServer            # don't grab server during menus, etc.
  43. NoRaiseOnMove            # allow moving under other windows
  44. NoRaiseOnResize            # allow resizing under other windows
  45. NoTitleFocus            # avoid keystrokes in wrong window cause of lag
  46. DecorateTransients        # put titlebars on transients
  47. TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  48. MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  49. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  50. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  51. ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*"
  52. NoSaveUnders            # faster to just repaint then save
  53. XORvalue 1            # tend to use visually distinct adjacent colors
  54. ConstrainedMoveTime 0        # turn off horizontal/vertical only moving
  55. NoCaseSensitive            # turn off case-sensitivity in sorting icons
  56. WarpUnmapped            # allow warping to unmapped windows
  57.  
  58. ###############################################################################
  59. #                                                                             #
  60. #                           Declare some nice colors                          #
  61. #                                                                             #
  62. ###############################################################################
  63.  
  64. Pixmaps
  65. {
  66. #    TitleHighlight "solid4x4"        # make it stand out
  67. }
  68.  
  69. Color
  70. {
  71.     DefaultBackground "maroon"
  72.     DefaultForeground "gray85"
  73.     BorderColor "gray70"
  74.     TitleBackground "maroon"
  75.     TitleForeground "gray85"
  76.     MenuBackground "maroon"
  77.     MenuForeground "gray85"
  78.     MenuTitleBackground "gray70"
  79.     MenuTitleForeground "maroon"
  80.     IconBackground "maroon"
  81.     IconForeground "gray85"
  82.     IconBorderColor "gray85"
  83.     IconManagerBackground "maroon"
  84.     IconManagerForeground "gray85"
  85. }
  86.  
  87. Monochrome
  88. {
  89.     IconManagerHighlight  "white"
  90.     BorderColor "black"
  91. }
  92.  
  93.  
  94. ###############################################################################
  95. #                                                                             #
  96. #                             Define key bindings                             #
  97. #                                                                             #
  98. ###############################################################################
  99.  
  100. MoveDelta 3            # need to move this much before takes effect
  101. Function "move-or-raise"    # simulate uwm action
  102. {
  103.     f.move
  104.     f.deltastop
  105.     f.raise
  106. }
  107.  
  108. DefaultFunction f.nop        # ignore extraneous events
  109.  
  110. Button1 =    : root                : f.menu "twmops"
  111. Button2 =    : root                : f.menu "windowops"
  112. Button3 =    : root                : f.menu "TwmWindows"
  113. Button1 =    : title                : f.function "move-or-raise"
  114. Button1 =    : icon                : f.iconify
  115. Button1 =    : iconmgr            : f.iconify
  116. Button1    = m    : window|icon|frame|title    : f.lower
  117. Button2    = m    : window            : f.resize
  118. Button3    = m    : window|icon|frame|title    : f.function "move-or-raise"
  119. Button1 = c|m|s    : all                : f.menu "twmops"
  120. #Button1    = c|m|s    : root                : f.refresh
  121. #"F20"    =    : all                : f.warptoscreen "next"
  122.  
  123. "F21"        =    : all            : f.warpring "next"
  124. "F22"        =    : all            : f.warptoiconmgr ""
  125. "F23"        =    : all            : f.raiselower
  126. "Num_Lock"    =    : all            : f.iconify
  127. "F24"        =    : all            : f.warpto "xmh"
  128. "F25"        =    : all            : f.warpto "[expo]"
  129. "F26"        =    : all            : f.warpto "emacs"
  130. "KP_Subtract"    = mod5    : all            : f.colormap "prev"
  131. "KP_Add"    = mod5    : all            : f.colormap "next"
  132. "KP_Enter"    = mod5    : all            : f.colormap "default"
  133. "Left"        = m    : all            : f.backiconmgr
  134. "Right"        = m    : all            : f.forwiconmgr
  135. "Up"        = m    : all            : f.upiconmgr
  136. "Down"        = m    : all            : f.downiconmgr
  137. "Left"        = mod5    : all            : f.warpring "prev"
  138. "Right"        = mod5    : all            : f.warpring "next"
  139.  
  140. ###############################################################################
  141. #                                                                             #
  142. #     Display an icon manager across the top of the screen.  Don't manage     #
  143. #                the windows for which you don't show a title.                #
  144. #                                                                             #
  145. ###############################################################################
  146.  
  147. SortIconManager            # keep them in alphabetic order
  148. ShowIconManager            # start with iconmgr up
  149. IconManagerGeometry "700x50+246+2" 14    # strip across top
  150. IconRegion "200x300+950+2" North East 50 50
  151. IconifyByUnmapping        # just use icon manager
  152. IconManagerDontShow        # but ignore these windows
  153. {
  154.   "xclock"
  155.   "xbiff"
  156.   "xload"
  157.   "oclock"
  158.   "xcutsel"
  159.   "XLogout"
  160. }
  161. DontIconifyByUnmapping        # don't lose them (still in TwmWindows menu)
  162. {
  163.   "xclock"
  164.   "xbiff"
  165.   "xload"
  166.   "oclock"
  167.   "xcutsel"
  168.   "Untitled"
  169. }
  170. NoTitle                # little programs that look like icons
  171. {
  172.   "xclock"
  173.   "xbiff"
  174.   "xload"
  175.   "TWM Icon Manager"
  176.   "xcutsel"
  177. }
  178.  
  179. NoStackMode            # prevent hostile clients from hosing display
  180. {
  181.     "saber"
  182. }
  183.  
  184. WindowRing            # f.warpring acts along these windows
  185. {
  186.     "XTerm"
  187.     "emacs"
  188.     "Xmh"
  189. }
  190.  
  191.  
  192. ###############################################################################
  193. #                                                                             #
  194. #                          Define some useful menus.                          #
  195. #                                                                             #
  196. ###############################################################################
  197.  
  198. menu "twmops"
  199. {
  200. "System"        f.title
  201. "Restart Twm"        f.restart
  202. "Exit Twm"        f.quit
  203. ""            f.nop
  204. "xterm"            !"xterm &"
  205. "xterm -e /bin/sh"    !"xterm -e /bin/sh &"
  206. "xhost +"        !"xhost + >/dev/null"
  207. "xhost -"        !"xhost - >/dev/null"
  208. ""            f.nop
  209. "Kill"            f.menu "kill"
  210. ""            f.nop
  211. "Logout"        f.warpto "xlogout"
  212. }
  213.  
  214. menu "windowops"
  215. {
  216. "Windows"        f.title
  217. "Kill"            f.menu "kill"
  218. "Save"            f.saveyourself
  219. "Refresh"        f.refresh
  220. ""            f.nop
  221. "Iconify"        f.iconify
  222. "Resize"        f.resize
  223. "Move"            f.move
  224. "Raise"            f.raise
  225. "Lower"            f.lower
  226. "Info"            f.identify
  227. "Focus"            f.focus
  228. "Unfocus"        f.unfocus
  229. ""            f.nop
  230. "Show Iconmgr"        f.showiconmgr
  231. "Hide Iconmgr"        f.hideiconmgr
  232. "Prev Iconmgr"        f.previconmgr
  233. "Next Iconmgr"        f.nexticonmgr
  234. }
  235.  
  236. menu "windowmenu"
  237. {
  238. "Iconify"        f.iconify
  239. "RaiseLower"        f.raiselower
  240. "Refresh"        f.winrefresh
  241. "Focus"            f.focus
  242. ""            f.nop
  243. "Kill"            f.menu "kill"
  244. }
  245.  
  246. menu "kill"
  247. {
  248.     "Send Delete"    f.delete
  249.     "Kill Window"    f.destroy
  250. }
  251.