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 11NoGrabServer 12RestartPreviousState 13DecorateTransients 14TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" 15ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" 16MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" 17IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" 18IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" 19#ClientBorderWidth 20 21Color 22{ 23 BorderColor "slategrey" 24 DefaultBackground "rgb:2/a/9" 25 DefaultForeground "gray85" 26 TitleBackground "rgb:2/a/9" 27 TitleForeground "gray85" 28 MenuBackground "rgb:2/a/9" 29 MenuForeground "gray85" 30 MenuBorderColor "slategrey" 31 MenuTitleBackground "gray70" 32 MenuTitleForeground "rgb:2/a/9" 33 IconBackground "rgb:2/a/9" 34 IconForeground "gray85" 35 IconBorderColor "gray85" 36 IconManagerBackground "rgb:2/a/9" 37 IconManagerForeground "gray85" 38} 39 40# 41# Define some useful functions for motion-based actions. 42# 43MoveDelta 3 44Function "move-or-lower" { f.move f.deltastop f.lower } 45Function "move-or-raise" { f.move f.deltastop f.raise } 46Function "move-or-iconify" { f.move f.deltastop f.iconify } 47 48# 49# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish 50# 51Button1 = : root : f.menu "defops" 52 53Button1 = m : window|icon : f.function "move-or-lower" 54Button2 = m : window|icon : f.iconify 55Button3 = m : window|icon : f.function "move-or-raise" 56 57Button1 = : title : f.function "move-or-raise" 58Button2 = : title : f.raiselower 59 60Button1 = : icon : f.function "move-or-iconify" 61Button2 = : icon : f.iconify 62 63Button1 = : iconmgr : f.iconify 64Button2 = : iconmgr : f.iconify 65 66# 67# And a menus with the usual things 68# 69menu "defops" 70{ 71"Twm" f.title 72"Iconify" f.iconify 73"Resize" f.resize 74"Move" f.move 75"Raise" f.raise 76"Lower" f.lower 77"" f.nop 78"Focus" f.focus 79"Unfocus" f.unfocus 80"Show Iconmgr" f.showiconmgr 81"Hide Iconmgr" f.hideiconmgr 82"" f.nop 83"Xterm" f.exec "exec xterm &" 84"" f.nop 85"Kill" f.destroy 86"Delete" f.delete 87"" f.nop 88"Restart" f.restart 89"Exit" f.quit 90} 91