Advertisement
baksatibi

~/.twmrc

Jan 6th, 2016
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.84 KB | None | 0 0
  1. #
  2. # $Xorg: system.twmrc,v 1.3 2000/08/17 19:54:08 cpqbld Exp $
  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. #
  12. # $XFree86: xc/programs/twm/system.twmrc,v 1.4 2001/01/17 23:45:08 dawes Exp $
  13. #
  14.  
  15. NoGrabServer
  16. RestartPreviousState
  17. DecorateTransients
  18. #TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  19. TitleFont "-misc-fixed-bold-r-normal--*-120-*-*-*-*-*-*"
  20. #ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  21. ResizeFont "-misc-fixed-bold-r-normal--*-120-*-*-*-*-*-*"
  22. #MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  23. MenuFont "-misc-fixed-bold-r-normal--*-120-*-*-*-*-*-*"
  24. #IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  25. IconFont "-misc-fixed-bold-r-normal--*-100-*-*-*-*-*-*"
  26. #IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  27. IconManagerFont "-misc-fixed-bold-r-normal--*-100-*-*-*-*-*-*"
  28. #ClientBorderWidth
  29.  
  30. Color
  31. {
  32.     BorderColor "#eeeee6"
  33. #    BorderTitleBackground "white"
  34. #    BorderTitleForeground "black"
  35.     DefaultBackground "#ebe9e9"
  36.     DefaultForeground "#000000"
  37.     IconBorderColor "#eeeee6"
  38.     IconBackground "#ebe9e9"
  39.     IconForeground "#000000"
  40.     IconManagerBackground "#ebe9e9"
  41.     IconManagerForeground "#000000"
  42. #    IconManagerHighlight "black"
  43.     MenuBorderColor "#eeeee6"
  44.     MenuBackground "#ebe9e9"
  45.     MenuForeground "#86aadc"
  46. #    MenuShadowColor "black"
  47.     MenuTitleBackground "#ebe9e9"
  48.     MenuTitleForeground "#808080"
  49. #    PointerBackground "white"
  50. #    PointerForeground "black"
  51.     TitleBackground "#4978ca"
  52.     TitleForeground "#ffffff"
  53. }
  54.  
  55. #
  56. # Define some useful functions for motion-based actions.
  57. #
  58. MoveDelta 3
  59. Function "move-or-lower" { f.move f.deltastop f.lower }
  60. Function "move-or-raise" { f.move f.deltastop f.raise }
  61. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  62. Function "resize-or-fullzoom" { f.resize f.deltastop f.fullzoom }
  63.  
  64. #
  65. # Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
  66. #
  67. Button1 = : root : f.menu "menu"
  68. Button2 = : root : f.menu "TwmWindows"
  69. Button3 = : root : f.menu "menu"
  70.  
  71. Button1 = m : window|icon : f.function "move-or-lower"
  72. Button2 = m : window|icon : f.iconify
  73. Button3 = m : window|icon : f.function "move-or-raise"
  74.  
  75. Button1 = : title : f.function "move-or-raise"
  76. Button2 = : title : f.raiselower
  77. Button3 = : title : f.menu "window"
  78.  
  79. Button1 = : icon : f.function "move-or-iconify"
  80. Button2 = : icon : f.iconify
  81. Button3 = : icon : f.menu "window"
  82.  
  83. Button1 = : iconmgr : f.iconify
  84. Button2 = : iconmgr : f.iconify
  85. Button3 = : iconmgr : f.menu "window"
  86.  
  87. #
  88. # And a menus with the usual things
  89. #
  90.  
  91. menu "menu"
  92. {
  93.     "    Menu    "  f.title
  94.     "Applications"  f.menu "applications"
  95.     "Settings"      f.menu "settings"
  96.     "Window"        f.menu "window"
  97.     "TWM"           f.menu "twm"
  98.     "System"        f.menu "system"
  99. }
  100.  
  101. menu "applications"
  102. {
  103.     "Applications"  f.title
  104.     "Links"         f.exec "exec xterm -e links ~ &"
  105.     "Mc"            f.exec "exec xterm -e mc &"
  106.     "Mcedit"        f.exec "exec xterm -e mcedit &"
  107.     "Xterm"         f.exec "exec xterm &"
  108. }
  109.  
  110. menu "settings"
  111. {
  112.     "  Settings  "  f.title
  113.     "Grub"          f.exec "exec grubconfig.sh &"
  114.     "Mouse"         f.exec "exec mouseconfig.sh &"
  115.     "Net"           f.exec "exec netconfig.sh &"
  116.     "Raid"          f.exec "exec raidconfig.sh &"
  117.     "Time"          f.exec "exec timeconfig.sh &"
  118.     "X"             f.exec "exec xconfig.sh &"
  119.     "Xwm"           f.exec "exec xwmconfig.sh &"
  120. }
  121.  
  122. menu "window"
  123. {
  124.     "   Window   "  f.title
  125.     "Iconify"       f.iconify
  126.     "Resize"        f.resize
  127.     "Move"          f.move
  128.     "Raise"         f.raise
  129.     "Lower"         f.lower
  130.     "Focus"         f.focus
  131.     "Unfocus"       f.unfocus
  132.     "Kill"          f.destroy
  133.     "Delete"        f.delete
  134. }
  135.  
  136. menu "twm"
  137. {
  138.     "    TWM     "  f.title
  139.     "Show Iconmgr"  f.showiconmgr
  140.     "Hide Iconmgr"  f.hideiconmgr
  141.     "Restart"       f.restart
  142.     "Exit"          f.quit
  143. }
  144.  
  145. menu "system"
  146. {
  147.     "   System   "  f.title
  148.     "Logout"        f.quit
  149.     "Power off"     f.exec "exec su -c poweroff"
  150.     "Reboot"        f.exec "exec su -c reboot"
  151. }
  152.  
  153. AutoRelativeResize
  154. BorderWidth 1
  155. DontMoveOff
  156. IconBorderWidth 1
  157. IconifyByUnmapping
  158. IconManagerDontShow { "xclock" }
  159. IconManagerGeometry "192-0+33"
  160. LeftTitleButton ":menu"=f.menu "window"
  161. MenuBorderWidth 1
  162. NoDefaults
  163. NoHighlight
  164. NoMenuShadows
  165. NoTitle { "xclock" "TWM Icon Manager" }
  166. NoTitleFocus    # Seems this doesn't work at all
  167. OpaqueMove
  168. RandomPlacement
  169. RightTitleButton ":iconify"=f.iconify
  170. RightTitleButton ":resize"=f.function "resize-or-fullzoom"
  171. RightTitleButton ":delete"=f.delete
  172. ShowIconManager
  173. UsePPosition "on"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement