Advertisement
microwerx

twmrc

Feb 26th, 2020
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. #
  2. # Default twm configuration file; needs to be kept small to conserve string
  3. # space in systems whose compilers don't handle medium-sized strings.
  4. #
  5. # Sites should tailor this file, providing any extra title buttons, menus, etc.
  6. # that may be appropriate for their environment. For example, if most of the
  7. # users were accustomed to uwm, the defaults could be set up not to decorate
  8. # any windows and to use meta-keys.
  9. #
  10.  
  11. NoGrabServer
  12. RestartPreviousState
  13. DecorateTransients
  14. TitleFont "-adobe-helvetica-bold-o-normal--*-140-*-*-*-*-*-*"
  15. ResizeFont "-adobe-helvetica-bold-o-normal--*-120-*-*-*-*-*-*"
  16. MenuFont "-adobe-helvetica-bold-o-normal--*-180-*-*-*-*-*-*"
  17. IconFont "-adobe-helvetica-bold-o-normal--*-100-*-*-*-*-*-*"
  18. IconManagerFont "-adobe-helvetica-bold-o-normal--*-100-*-*-*"
  19. #ClientBorderWidth
  20.  
  21. Color
  22. {
  23. BorderColor "slategrey"
  24. BorderTileBackground "darkgray"
  25. DefaultBackground "rgb:0F/4C/81"
  26. DefaultForeground "gray85"
  27. TitleBackground "rgb:0F/4C/81"
  28. TitleForeground "rgb:f/f/f"
  29. MenuBackground "rgb:0F/4C/81"
  30. MenuForeground "rgb:f/f/f"
  31. #MenuBorderColor "slategrey"
  32. MenuTitleBackground "rgb:f/f/f"
  33. MenuTitleForeground "rgb:0F/4C/81"
  34. MenuShadowColor "black"
  35. #IconBackground "rgb:2/a/9"
  36. #IconForeground "gray85"
  37. #IconBorderColor "gray85"
  38. #IconManagerBackground "rgb:2/a/9"
  39. #IconManagerForeground "gray85"
  40. }
  41.  
  42. # Define a close button
  43. # RightTitleButton "iconpath"
  44.  
  45. #
  46. # Define some useful functions for motion-based actions.
  47. #
  48. MoveDelta 3
  49. Function "move-or-lower" { f.move f.deltastop f.lower }
  50. Function "move-or-raise" { f.move f.deltastop f.raise }
  51. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  52.  
  53. #
  54. # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
  55. #
  56. Button1 = : root : f.menu "defops"
  57.  
  58. Button1 = m : window|icon : f.function "move-or-lower"
  59. Button2 = m : window|icon : f.iconify
  60. Button3 = m : window|icon : f.function "move-or-raise"
  61.  
  62. Button1 = : title : f.function "move-or-raise"
  63. ResizeFont
  64. Button2 = : title : f.raiselower
  65.  
  66. Button1 = : icon : f.function "move-or-iconify"
  67. Button2 = : icon : f.iconify
  68.  
  69. Button1 = : iconmgr : f.iconify
  70. Button2 = : iconmgr : f.iconify
  71.  
  72. #
  73. # And a menus with the usual things
  74. #
  75. menu "defops"
  76. {
  77. "Twm" f.title
  78. "Iconify" f.iconify
  79. "Resize" f.resize
  80. "Move" f.move
  81. "Raise" f.raise
  82. "Lower" f.lower
  83. "" f.nop
  84. "Focus" f.focus
  85. "Unfocus" f.unfocus
  86. "Show Iconmgr" f.showiconmgr
  87. "Hide Iconmgr" f.hideiconmgr
  88. "" f.nop
  89. "Xterm" f.exec "exec xterm &"
  90. "Chrome" f.exec "exec chrome &"
  91. "" f.nop
  92. "Kill" f.destroy
  93. "Delete" f.delete
  94. "" f.nop
  95. "Restart" f.restart
  96. "Exit" f.quit
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement