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.

209 lines
6.1 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/xfree86-cvs/startwm.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./programs/twm/system.twmrc.orig Fri Jan 21 19:41:50 2000
  23. +++ ./programs/twm/system.twmrc Thu Dec 28 15:23:15 2000
  24. @@ -12,6 +12,8 @@
  25. # $XFree86: xc/programs/twm/system.twmrc,v 1.3 2000/01/21 18:41:50 dawes Exp $
  26. #
  27. +NoDefaults
  28. +
  29. NoGrabServer
  30. RestartPreviousState
  31. DecorateTransients
  32. @@ -21,23 +23,26 @@
  33. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  34. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  35. #ClientBorderWidth
  36. +RandomPlacement
  37. +AutoRelativeResize
  38. +IconifyByUnmapping
  39. Color
  40. {
  41. - BorderColor "slategrey"
  42. - DefaultBackground "rgb:2/a/9"
  43. - DefaultForeground "gray85"
  44. - TitleBackground "rgb:2/a/9"
  45. - TitleForeground "gray85"
  46. - MenuBackground "rgb:2/a/9"
  47. - MenuForeground "gray85"
  48. - MenuTitleBackground "gray70"
  49. - MenuTitleForeground "rgb:2/a/9"
  50. - IconBackground "rgb:2/a/9"
  51. - IconForeground "gray85"
  52. - IconBorderColor "gray85"
  53. - IconManagerBackground "rgb:2/a/9"
  54. - IconManagerForeground "gray85"
  55. + BorderColor "slategrey"
  56. + DefaultBackground "rgb:2/a/9"
  57. + DefaultForeground "gray85"
  58. + TitleBackground "rgb:2/a/9"
  59. + TitleForeground "gray85"
  60. + MenuBackground "rgb:2/a/9"
  61. + MenuForeground "gray85"
  62. + MenuTitleBackground "gray70"
  63. + MenuTitleForeground "rgb:2/a/9"
  64. + IconBackground "rgb:2/a/9"
  65. + IconForeground "gray85"
  66. + IconBorderColor "gray85"
  67. + IconManagerBackground "rgb:2/a/9"
  68. + IconManagerForeground "gray85"
  69. }
  70. #
  71. @@ -46,48 +51,65 @@
  72. MoveDelta 3
  73. Function "move-or-lower" { f.move f.deltastop f.lower }
  74. Function "move-or-raise" { f.move f.deltastop f.raise }
  75. -Function "move-or-iconify" { f.move f.deltastop f.iconify }
  76. +Function "xiconify" { f.iconify f.showiconmgr }
  77. #
  78. # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
  79. #
  80. -Button1 = : root : f.menu "defops"
  81. -Button1 = m : window|icon : f.function "move-or-lower"
  82. -Button2 = m : window|icon : f.iconify
  83. -Button3 = m : window|icon : f.function "move-or-raise"
  84. +LeftTitleButton "opendotMask" = f.function "xiconify"
  85. +RightTitleButton "star" = f.delete
  86. +
  87. +Button1 = : root : f.menu "defops"
  88. +Button2 = : root : f.menu "apps"
  89. +Button3 = : root : f.exec "xterm &"
  90. Button1 = : title : f.function "move-or-raise"
  91. -Button2 = : title : f.raiselower
  92. +Button2 = : title : f.fullzoom
  93. +Button3 = : title : f.function "move-or-lower"
  94. -Button1 = : icon : f.function "move-or-iconify"
  95. -Button2 = : icon : f.iconify
  96. +Button1 = : icon : f.function "xiconify"
  97. +Button3 = : icon : f.identify
  98. +
  99. +Button1 = : iconmgr : f.function "xiconify"
  100. +Button2 = : iconmgr : f.raise
  101. +Button3 = : iconmgr : f.identify
  102. +
  103. +Button1 = : frame : f.resize
  104. +Button2 = : frame : f.raiselower
  105. +Button3 = : frame : f.function "move-or-raise"
  106. -Button1 = : iconmgr : f.iconify
  107. -Button2 = : iconmgr : f.iconify
  108. #
  109. # And a menus with the usual things
  110. #
  111. menu "defops"
  112. {
  113. -"Twm" f.title
  114. -"Iconify" f.iconify
  115. -"Resize" f.resize
  116. -"Move" f.move
  117. -"Raise" f.raise
  118. -"Lower" f.lower
  119. -"" f.nop
  120. -"Focus" f.focus
  121. -"Unfocus" f.unfocus
  122. -"Show Iconmgr" f.showiconmgr
  123. -"Hide Iconmgr" f.hideiconmgr
  124. -"" f.nop
  125. -"Xterm" f.exec "exec xterm &"
  126. -"" f.nop
  127. -"Kill" f.destroy
  128. -"Delete" f.delete
  129. -"" f.nop
  130. -"Restart" f.restart
  131. -"Exit" f.quit
  132. + "TWM" f.title
  133. + "Iconify" f.iconify
  134. + "Resize" f.resize
  135. + "Move" f.move
  136. + "Raise" f.raise
  137. + "Lower" f.lower
  138. + "Zoom" f.fullzoom
  139. + "" f.nop
  140. + "Focus" f.focus
  141. + "Unfocus" f.unfocus
  142. + "Show Iconmgr" f.showiconmgr
  143. + "Hide Iconmgr" f.hideiconmgr
  144. + "" f.nop
  145. + "Kill" f.destroy
  146. + "Delete" f.delete
  147. + "" f.nop
  148. + "Restart" f.restart
  149. + "Exit" f.quit
  150. +}
  151. +
  152. +menu "apps"
  153. +{
  154. + "Applications" f.title
  155. + "xTerm" f.exec "xterm &"
  156. + "xTerm (black)" f.exec "xterm -fg white -bg black &"
  157. + "Mozilla" f.exec "mozilla &"
  158. + "Icon Manager" f.showiconmgr
  159. }
  160. --- ./programs/xdm/config/Xsession.orig Sun Jan 11 04:48:32 1998
  161. +++ ./programs/xdm/config/Xsession Thu Dec 28 15:23:15 2000
  162. @@ -33,5 +33,11 @@
  163. if [ -r "$resources" ]; then
  164. xrdb -load "$resources"
  165. fi
  166. +
  167. + WINDOWMANAGER="${WINDOWMANAGER:-gnome-session}"
  168. + [ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
  169. + [ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
  170. + [ "$WINDOWMANAGER" != "twm" ] && exec $WINDOWMANAGER
  171. + xsetroot -solid darkcyan ; exec twm ; exec xterm
  172. exec xsm
  173. fi
  174. --- ./programs/xdm/config/Xsetup_0.orig Wed Apr 27 09:20:03 1994
  175. +++ ./programs/xdm/config/Xsetup_0 Thu Dec 28 15:23:15 2000
  176. @@ -1,3 +1,4 @@
  177. #!/bin/sh
  178. # $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
  179. xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
  180. +xsetroot -solid black
  181. --- ./programs/xinit/xinitrc.cpp.orig Wed Apr 27 09:13:07 1994
  182. +++ ./programs/xinit/xinitrc.cpp Thu Dec 28 15:23:15 2000
  183. @@ -24,10 +24,10 @@
  184. xmodmap $usermodmap
  185. fi
  186. -XCOMM start some nice programs
  187. +XCOMM start the window manager
  188. -twm &
  189. -xclock -geometry 50x50-1+1 &
  190. -xterm -geometry 80x50+494+51 &
  191. -xterm -geometry 80x20+494-0 &
  192. -exec xterm -geometry 80x66+0+0 -name login
  193. +WINDOWMANAGER="${WINDOWMANAGER:-gnome-session}"
  194. +[ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
  195. +[ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
  196. +[ "$WINDOWMANAGER" != "twm" ] && exec $WINDOWMANAGER
  197. +xsetroot -solid darkcyan ; exec twm ; exec xterm