Advertisement
Dj_Dexter

.twmrc

Nov 3rd, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. #
  2. # $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
  3. #
  4. # A little $HOME/.twmrc by Thomas Eriksson brummelufs@hotmail.com
  5. #
  6. # Modified (just colors and some menu options) by Istvan Keppler keppler@lajli.gau.hu
  7. #
  8. # twm... the original and the best...
  9. #
  10.  
  11. NoGrabServer
  12. #NoDefaults
  13. RestartPreviousState
  14. DecorateTransients
  15. RandomPlacement
  16. MenuFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-*"
  17. TitleFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-*"
  18. IconManagerFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-**"
  19. IconFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-*"
  20. ResizeFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-*"
  21. #WorkSpaceFont "-*-terminus-medium-r-normal-*-*-*-*-*-*-*-*-*"
  22.  
  23. #ClientBorderWidth 2
  24. BorderWidth 3
  25. ButtonIndent 2
  26. NoHighlight
  27. AutoRelativeResize
  28. #DefaultBackground
  29. FramePadding 0
  30. #ForceIcons
  31. NoRaiseOnMove
  32. OpaqueMove
  33. Zoom 500
  34.  
  35.  
  36. # This is for hiding the ugly menubar in windows who dont need em.
  37. NoTitle
  38. {
  39. # "x11amp" # x11amp, the winamp lookalike, http://x11amp.ml.org.
  40. # "xlogo" # a must have :)
  41. "xosview"
  42. }
  43.  
  44. Color
  45. {
  46. BorderColor "gray85"
  47. DefaultBackground "black"
  48. DefaultForeground "gray85"
  49. TitleBackground "black"
  50. TitleForeground "gray85"
  51. MenuBackground "black"
  52. MenuForeground "gray85"
  53. MenuTitleBackground "gray65"
  54. MenuTitleForeground "black"
  55. IconBackground "black"
  56. IconForeground "white"
  57. IconBorderColor "black"
  58. IconManagerBackground "black"
  59. IconManagerForeground "gray85"
  60. PointerForeground "black"
  61. PointerBackground "white"
  62.  
  63. }
  64.  
  65. #
  66. # Define some useful functions for motion-based actions.
  67. #
  68. MoveDelta 1
  69. Function "move-or-lower" { f.move f.deltastop f.lower }
  70. Function "move-or-raise" { f.move f.deltastop f.raise }
  71. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  72.  
  73. #
  74. # Set some useful bindings. Sort of uwm-ish, sort of
  75. # simple-button-ish
  76. #
  77. Button1 = : root : f.menu "prog"
  78. Button2 = : root : f.delete
  79. Button3 = : root : f.menu "window"
  80.  
  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.  
  85. Button1 = : title : f.function "move-or-raise"
  86. Button2 = : title : f.raiselower
  87. Button3 = : title : f.iconify
  88.  
  89. Button1 = : icon : f.function "move-or-iconify"
  90. #Button2 = : icon : f.destroy
  91. Button3 = : icon : f.iconify
  92.  
  93. Button1 = : iconmgr : f.iconify
  94. Button2 = : iconmgr : f.destroy
  95. Button3 = : iconmgr : f.iconify
  96.  
  97. # This is for the window bar
  98. #LeftTitleButton "/usr/X11/include/bitmaps/checkmark.xbm" = f.delete
  99. #LeftTitleButton "/usr/X11R6/include/X11/bitmaps/xm_noenter16" = f.delete
  100. #RightTitleButton "/usr/X11/include/bitmaps/menu12" = f.resize
  101.  
  102.  
  103. #
  104. # And a menus with the usual things
  105. #
  106. menu "prog"
  107. {
  108. "Progs" f.title
  109. "Xterm" f.exec "xterm&"
  110. "wicd-curses" f.exec "xterm -e su -c 'wicd-curses'&"
  111. "Run.." f.exec "gmrun&"
  112. "Qupzilla" f.exec "qupzilla&"
  113. "MOC" f.exec "xterm -e mocp&"
  114. "PSI" f.exec "psi&"
  115. "Xnetload" f.exec "xnetload -nc -ni -i wlan0&"
  116. "" f.nop
  117. "Files" f.menu "files"
  118. "Editors" f.menu "editors"
  119. "Internet" f.menu "internet"
  120. "Graphics" f.menu "graphics"
  121. "Viewers" f.menu "viewers"
  122. "Music" f.menu "music"
  123. "Games" f.menu "games"
  124. "Utilities" f.menu "utilities"
  125. "System" f.menu "system"
  126. }
  127.  
  128. menu "files"
  129. {
  130. "Files" f.title
  131. "MC" f.exec "xterm -sl 255 -bg black -fg white -e mc &"
  132. }
  133.  
  134. menu "editors"
  135. {
  136. "Editors" f.title
  137. "Vim" f.exec "xterm -bg black -fg white -e vim &"
  138. }
  139.  
  140. menu "system"
  141. {
  142. "System" f.title
  143. "Xosview" f.exec "xosview &"
  144. "Top" f.exec "xterm -bg black -fg white -e top &"
  145. }
  146.  
  147. menu "viewers"
  148. {
  149. "Viewers" f.title
  150. "Ghostview" f.exec "gv &"
  151. "Xpdf" f.exec "xpdf &"
  152. }
  153.  
  154. menu "internet"
  155. {
  156. "Internet" f.title
  157. "Qupzilla" f.exec "qupzilla &"
  158. "Lynx" f.exec "xterm -bg black -fg white -e lynx &"
  159. }
  160.  
  161. menu "graphics"
  162. {
  163. "Graphics" f.title
  164. "Feh" f.exec "feh&"
  165. "Gimp" f.exec "gimp &"
  166. "Xpaint" f.exec "xpaint&"
  167. }
  168.  
  169. menu "music"
  170. {
  171. "Music" f.title
  172. "CdPlayer" f.exec "xterm -bg black -fg white -e cd-console &"
  173. "MOCP" f.exec "xterm -bg black -fg white -e mocp &"
  174. "Mplayer" f.exec "xterm -e mplayer *.flv &"
  175. "Xine" f.exec "xine&"
  176. }
  177.  
  178. menu "games"
  179. {
  180. "Games" f.title
  181. "Zsnes" f.exec "zsnes&"
  182. "Zednafen" f.exec "zednafen&"
  183. "Supertux" f.exec "supertux&"
  184. }
  185.  
  186. menu "utilities"
  187. {
  188. "Utilities" f.title
  189. "Xman" f.exec "xman -rv &"
  190. "htop" f.exec "xterm -e htop&"
  191. "Xcalc" f.exec "xcalc &"
  192. }
  193.  
  194. menu "window"
  195. {
  196. "X Windows" f.title
  197. "Kill Window" f.destroy
  198. "Delete Window" f.delete
  199. "" f.nop
  200. "Maximize" f.fullzoom
  201. "Minimize" f.iconify
  202. #"Resize" f.resize
  203. "Move" f.move
  204. #"Raise" f.raise
  205. #"Lower" f.lower
  206. "" f.nop
  207. "Focus" f.focus
  208. "Unfocus" f.unfocus
  209. "Show Iconmgr" f.showiconmgr
  210. "Hide Iconmgr" f.hideiconmgr
  211. "Identify" f.identify
  212. "" f.nop
  213. "Screensaver" f.menu "screensaver"
  214. "Redraw" f.refresh
  215. "Refresh" f.exec "xrefresh&"
  216. "Restart" f.restart
  217. "Quit" f.menu "quit"
  218. }
  219.  
  220. menu "quit"
  221. {
  222. "Really Quit?" f.title
  223. "No" f.nop
  224. "Yes" f.quit
  225. }
  226.  
  227. menu "screensaver"
  228. {
  229. "ZZzz..." f.title
  230. "Laser" f.exec "xlock -nolock -mode laser &"
  231. "Qix" f.exec "xlock -nolock -mode qix &"
  232. "Star trek" f.exec "xlock -nolock -mode star &"
  233. "Galaxy" f.exec "xlock -nolock -mode galaxy -wireframe&"
  234. "Pyrotechnical" f.exec "xlock -nolock -mode pyro -wireframe &"
  235. "Swarm" f.exec "xlock -nolock -mode swarm &"
  236. "Linux" f.exec "xlock -nolock -mode flag &"
  237. }
  238.  
  239. #Icons
  240. {
  241. # "XTerm" "/usr/X11R6/include/X11/bitmaps/Term"
  242. # "x11amp" "/usr/include/X11/bitmaps/xfm_au.xbm"
  243. #}
  244.  
  245. Cursors
  246. {
  247. Frame "left_ptr"
  248. Title "left_ptr"
  249. Icon "left_ptr"
  250. IconMgr "left_ptr"
  251. Move "fleur"
  252. Resize "fleur"
  253. Menu "hand1"
  254. Button "hand2"
  255. Wait "clock"
  256. Select "dot"
  257. Destroy "pirate"
  258. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement