mirror of the now-defunct rocklinux.org
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.

138 lines
3.7 KiB

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