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