home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / etc / X11 / twm / system.twmrc
Text File  |  1999-09-19  |  2KB  |  92 lines

  1. #
  2. # $XConsortium: system.twmrc /main/9 1996/10/16 16:14:38 kaleb $
  3. # Default twm configuration file; needs to be kept small to conserve string
  4. # space in systems whose compilers don't handle medium-sized strings.
  5. #
  6. # Sites should tailor this file, providing any extra title buttons, menus, etc.
  7. # that may be appropriate for their environment.  For example, if most of the
  8. # users were accustomed to uwm, the defaults could be set up not to decorate
  9. # any windows and to use meta-keys.
  10. #
  11.  
  12. NoGrabServer
  13. RestartPreviousState
  14. DecorateTransients
  15. TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  16. ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  17. MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  18. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  19. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  20. #ClientBorderWidth
  21.  
  22. Color
  23. {
  24.     BorderColor "slategrey"
  25.     DefaultBackground "rgb:2/a/9"
  26.     DefaultForeground "gray85"
  27.     TitleBackground "rgb:2/a/9"
  28.     TitleForeground "gray85"
  29.     MenuBackground "rgb:2/a/9"
  30.     MenuForeground "gray85"
  31.     MenuTitleBackground "gray70"
  32.     MenuTitleForeground "rgb:2/a/9"
  33.     IconBackground "rgb:2/a/9"
  34.     IconForeground "gray85"
  35.     IconBorderColor "gray85"
  36.     IconManagerBackground "rgb:2/a/9"
  37.     IconManagerForeground "gray85"
  38. }
  39.  
  40. #
  41. # Define some useful functions for motion-based actions.
  42. #
  43. MoveDelta 3
  44. Function "move-or-lower" { f.move f.deltastop f.lower }
  45. Function "move-or-raise" { f.move f.deltastop f.raise }
  46. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  47.  
  48. #
  49. # Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
  50. #
  51. Button1 = : root : f.menu "defops"
  52.  
  53. Button1 = m : window|icon : f.function "move-or-lower"
  54. Button2 = m : window|icon : f.iconify
  55. Button3 = m : window|icon : f.function "move-or-raise"
  56.  
  57. Button1 = : title : f.function "move-or-raise"
  58. Button2 = : title : f.raiselower
  59.  
  60. Button1 = : icon : f.function "move-or-iconify"
  61. Button2 = : icon : f.iconify
  62.  
  63. Button1 = : iconmgr : f.iconify
  64. Button2 = : iconmgr : f.iconify
  65.  
  66. #
  67. # And a menus with the usual things
  68. #
  69. menu "defops"
  70. {
  71. "Twm"    f.title
  72. "New Window"    f.exec "xterm &"
  73. ""        f.nop
  74. "Iconify"    f.iconify
  75. "Resize"    f.resize
  76. "Move"        f.move
  77. "Raise"        f.raise
  78. "Lower"        f.lower
  79. ""        f.nop
  80. "Focus"        f.focus
  81. "Unfocus"    f.unfocus
  82. "Show Iconmgr"    f.showiconmgr
  83. "Hide Iconmgr"    f.hideiconmgr
  84. ""        f.nop
  85. "Kill"        f.destroy
  86. "Delete"    f.delete
  87. ""        f.nop
  88. "Restart"    f.restart
  89. "Exit"        f.quit
  90. }
  91.