Advertisement
Dj_Dexter

.twmrc

Oct 16th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. #
  2. # $XConsortium: system.twmrc /main/9 1996/10/16 16:14:38 kaleb $
  3. #
  4. # Default twm configuration file; needs to be kept small to conserve string
  5. # space in systems whose compilers don't handle medium-sized strings.
  6. #
  7. # Sites should tailor this file, providing any extra title buttons, menus, etc.
  8. # that may be appropriate for their environment. For example, if most of the
  9. # users were accustomed to uwm, the defaults could be set up not to decorate
  10. # any windows and to use meta-keys.
  11. # twm riced, for non or nostalgic mode on? o_O
  12.  
  13. NoGrabServer
  14. NoTitle
  15. RandomPlacement
  16. RestartPreviousState
  17. DecorateTransients
  18. #IconifyByUnmapping
  19. TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  20. ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  21. MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  22. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  23. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  24.  
  25. BorderWidth 4
  26.  
  27. Color
  28. {
  29. BorderColor "gray70"
  30. {
  31. # "XTerm" "red"
  32. }
  33. DefaultBackground "lightcyan4"
  34. DefaultForeground "gray85"
  35. TitleBackground "rgb:2/0/4"
  36. TitleForeground "rgb:8/0/f"
  37. MenuBackground "rgb:0/8/f"
  38. MenuForeground "rgb:0/2/4"
  39. MenuTitleBackground "rgb:0/2/4"
  40. MenuTitleForeground "rgb:0/8/f"
  41. IconBackground "gray70"
  42. IconForeground "gray90"
  43. IconBorderColor "rgb:0/0/f"
  44. IconManagerBackground "rgb:1/1/4"
  45. IconManagerForeground "rgb:4/4/F"
  46. }
  47.  
  48.  
  49. #
  50. # Define some useful functions for motion-based actions.
  51. #
  52. MoveDelta 3
  53. Function "move-or-lower" { f.move f.deltastop f.lower }
  54. Function "move-or-raise" { f.move f.deltastop f.raise }
  55. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  56. Function "focus-move" { f.raise f.deltastop f.move }
  57. Function "window-client" { f.delete f.deltastop f.destroy }
  58. #
  59. # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
  60. #
  61. Button1 = : frame : f.function "focus-move"
  62. Button2 = : frame : f.resize
  63. Button3 = : frame : f.iconify
  64. Button4 = : window | frame : f.function "focus-move"
  65. Button5 = : window | frame : f.resize
  66.  
  67. Button1 = : root : f.menu "prog"
  68. Button3 = : root : f.menu "defops"
  69. Button2 = : root : f.menu "movement"
  70. #Button4 = : root : f.menu "admin"
  71.  
  72. Button1 = m : all : f.function "move-or-lower"
  73. Button3 = m : all : f.iconify
  74. button2 = m : all : f.menu "movement"
  75. Button5 = m : window | frame : f.delete
  76.  
  77. Button1 = : title : f.function "move-or-raise"
  78. Button2 = : title : f.raiselower
  79.  
  80. Button1 = : icon : f.function "move-or-iconify"
  81. Button2 = : icon : f.iconify
  82.  
  83. Button1 = : iconmgr : f.iconify
  84. Button2 = : iconmgr : f.iconify
  85.  
  86. "Left" = m : all : f.warpring "next"
  87. "F1" = : all : f.iconify
  88. "z" = m : window : f.delete
  89. "a" = m : window : f.destroy
  90.  
  91. #Icons
  92. #{
  93. # "XTerm" "/home/chris/.x/xterm.icon"
  94. # "Buddy List" "/home/chris/.x/aim.icon"
  95. #}
  96. #
  97. # And a menus with the usual things
  98. #
  99. menu "prog"
  100. {
  101. "PROGRAMS" f.title
  102. "xterm" f.exec "xterm&"
  103. "Run.." f.exec "gmrun&"
  104. "Qupzilla" f.exec "qupzilla&"
  105. "MOC" f.exec "xterm -e mocp&"
  106. "PSI" f.exec "psi&"
  107. "Xnetload" f.exec "xnetload -nc -ni -i wlan0&"
  108. }
  109.  
  110. menu "defops"
  111. {
  112. "MAIN" f.title
  113. "Iconify" f.iconify
  114. "Identify" f.identify
  115. "Resize" f.resize
  116. "Move" f.move
  117. "Raise" f.raise
  118. "Lower" f.lower
  119. "Delete" f.delete
  120. "Show Iconmgr" f.showiconmgr
  121. "Hide Iconmgr" f.hideiconmgr
  122. "x Window" ("rgb:0/2/4":"rgb:4/b/f") f.delete
  123. "Restart" f.restart
  124. "Exit" f.quit
  125. "REALLY Exit" ("rgb:8/0/0":"rgb:0/8/f") f.exec "killall sleep"
  126. "x Client" ("rgb:8/0/0":"rgb:4/b/f") f.destroy
  127. }
  128. menu "movement"
  129. {
  130. "ADJUST" f.title
  131. "Maximize" f.fullzoom
  132. "Adjust Size" f.resize
  133. "--->" f.rightzoom
  134. "<---" f.leftzoom
  135. "<-->" f.horizoom
  136. "^^^^" f.topzoom
  137. "VVVV" f.bottomzoom
  138. "^V^V" f.zoom
  139. }
  140. menu "admin"
  141. {
  142.  
  143. "ADMIN" f.title
  144. "xterm" f.exec "xterm -bg black -fg white&"
  145. "xhost +" f.exec "xhost +"
  146. "vncserver" f.exec "vncserver -geometry 640x480&"
  147. "vncviewer" f.exec "vncviewer&"
  148. "time" f.exec "xmessage `date`&"
  149. "xmix" f.exec "xmix&"
  150. "xlock" f.exec "xlock&"
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement