OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
3.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../twm/twm-defaults.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. Some twm configs Clifford likes more ...
  18. --- twm/src/system.twmrc.orig 2003-08-28 02:06:28.000000000 +0200
  19. +++ twm/src/system.twmrc 2003-08-28 02:36:46.000000000 +0200
  20. @@ -12,6 +12,8 @@
  21. # $XFree86: xc/programs/twm/system.twmrc,v 1.5 2003/08/04 10:32:30 eich Exp $
  22. #
  23. +NoDefaults
  24. +
  25. NoGrabServer
  26. RestartPreviousState
  27. DecorateTransients
  28. @@ -21,6 +23,9 @@
  29. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  30. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  31. #ClientBorderWidth
  32. +RandomPlacement
  33. +AutoRelativeResize
  34. +IconifyByUnmapping
  35. Color
  36. {
  37. @@ -47,48 +52,65 @@
  38. MoveDelta 3
  39. Function "move-or-lower" { f.move f.deltastop f.lower }
  40. Function "move-or-raise" { f.move f.deltastop f.raise }
  41. -Function "move-or-iconify" { f.move f.deltastop f.iconify }
  42. +Function "xiconify" { f.iconify f.showiconmgr }
  43. #
  44. # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
  45. #
  46. -Button1 = : root : f.menu "defops"
  47. -Button1 = m : window|icon : f.function "move-or-lower"
  48. -Button2 = m : window|icon : f.iconify
  49. -Button3 = m : window|icon : f.function "move-or-raise"
  50. +LeftTitleButton "opendotMask" = f.function "xiconify"
  51. +RightTitleButton "star" = f.delete
  52. +
  53. +Button1 = : root : f.menu "defops"
  54. +Button2 = : root : f.menu "apps"
  55. +Button3 = : root : f.exec "xterm &"
  56. Button1 = : title : f.function "move-or-raise"
  57. -Button2 = : title : f.raiselower
  58. +Button2 = : title : f.fullzoom
  59. +Button3 = : title : f.function "move-or-lower"
  60. -Button1 = : icon : f.function "move-or-iconify"
  61. -Button2 = : icon : f.iconify
  62. +Button1 = : icon : f.function "xiconify"
  63. +Button3 = : icon : f.identify
  64. +
  65. +Button1 = : iconmgr : f.function "xiconify"
  66. +Button2 = : iconmgr : f.raise
  67. +Button3 = : iconmgr : f.identify
  68. +
  69. +Button1 = : frame : f.resize
  70. +Button2 = : frame : f.raiselower
  71. +Button3 = : frame : f.function "move-or-raise"
  72. -Button1 = : iconmgr : f.iconify
  73. -Button2 = : iconmgr : f.iconify
  74. #
  75. # And a menus with the usual things
  76. #
  77. menu "defops"
  78. {
  79. -"Twm" f.title
  80. -"Iconify" f.iconify
  81. -"Resize" f.resize
  82. -"Move" f.move
  83. -"Raise" f.raise
  84. -"Lower" f.lower
  85. -"" f.nop
  86. -"Focus" f.focus
  87. -"Unfocus" f.unfocus
  88. -"Show Iconmgr" f.showiconmgr
  89. -"Hide Iconmgr" f.hideiconmgr
  90. -"" f.nop
  91. -"Xterm" f.exec "exec xterm &"
  92. -"" f.nop
  93. -"Kill" f.destroy
  94. -"Delete" f.delete
  95. -"" f.nop
  96. -"Restart" f.restart
  97. -"Exit" f.quit
  98. + "TWM" f.title
  99. + "Iconify" f.iconify
  100. + "Resize" f.resize
  101. + "Move" f.move
  102. + "Raise" f.raise
  103. + "Lower" f.lower
  104. + "Zoom" f.fullzoom
  105. + "" f.nop
  106. + "Focus" f.focus
  107. + "Unfocus" f.unfocus
  108. + "Show Iconmgr" f.showiconmgr
  109. + "Hide Iconmgr" f.hideiconmgr
  110. + "" f.nop
  111. + "Kill" f.destroy
  112. + "Delete" f.delete
  113. + "" f.nop
  114. + "Restart" f.restart
  115. + "Exit" f.quit
  116. +}
  117. +
  118. +menu "apps"
  119. +{
  120. + "Applications" f.title
  121. + "xTerm" f.exec "xterm &"
  122. + "xTerm (black)" f.exec "xterm -fg white -bg black &"
  123. + "Mozilla" f.exec "mozilla &"
  124. + "Icon Manager" f.showiconmgr
  125. }