-
Notifications
You must be signed in to change notification settings - Fork 0
/
twmrc
162 lines (146 loc) · 4.25 KB
/
twmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# ===-- .twmrc ---------------------------------------------- -*- conf -*- --===
# $XConsortium: system.twmrc /main/9 1996/10/16 16:14:38 kaleb $
#
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment. For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#
# $XFree86$
#
NoGrabServer
RestartPreviousState
DecorateTransients
OpaqueMove
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
# This is how I want Icons to work: don't make those crummy little icons
# scattered all over the screen (use IconifyByUnmapping), and manage everything
# via the TWM Icon Manager.
IconifyByUnmapping
ShowIconManager
SortIconManager
# I might not want this after all...
AutoRaise
{
"TWM Icon Manager"
}
Color
{
BorderColor "slategrey"
DefaultBackground "rgb:B2/22/22"
DefaultForeground "gray85"
TitleBackground "rgb:B2/22/22"
TitleForeground "gray85"
MenuBackground "rgb:B2/22/22"
MenuForeground "gray85"
MenuTitleBackground "gray70"
MenuTitleForeground "rgb:B2/22/22"
IconBackground "rgb:B2/22/22"
IconForeground "gray85"
IconBorderColor "gray85"
IconManagerBackground "rgb:B2/22/22"
IconManagerForeground "gray85"
}
#Function "raise-and-focus"
#{
# f.downiconmgr
# f.deiconify
# f.raise
#}
#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower"
{
f.move
f.deltastop
f.lower
}
Function "move-or-raise"
{
f.move
f.deltastop
f.raise
}
Function "move-or-iconify"
{
f.move
f.deltastop
f.iconify
}
#
# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"
Button2 = : root : f.menu "weirdops"
Button3 = : root : f.menu "commonapps"
Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower
Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify
#"F1" = : all : f.function "raise-and-focus"
#
# And a menus with the usual things
#
menu "defops"
{
"Twm" f.title
"Iconify" f.iconify
"Resize" f.resize
"Move" f.move
"Raise" f.raise
"Lower" f.lower
"" f.nop
"Focus" f.focus
"Unfocus" f.unfocus
"Show Iconmgr" f.showiconmgr
"Hide Iconmgr" f.hideiconmgr
"" f.nop
"Purple XTerm" f.exec "xterm -name aixterm &"
"XConsole" f.exec "xconsole &"
"Xterm" f.exec "xterm &"
"" f.nop
"Kill" f.destroy
"Delete" f.delete
"" f.nop
"Restart" f.restart
"Exit" f.quit
}
menu "weirdops"
{
"Options" f.title
"Identify" f.identify
"Toggle AutoRaise" f.autoraise
"" f.nop
"Refresh" f.winrefresh
"Refresh All" f.refresh
"Save State" f.saveyourself
}
menu "commonapps"
{
"Applications" f.title
"Amarok" ! "amarok -m &"
"Emacs" ! "emacs &"
# "Calculator" ! "gcalctool &"
"Calculator" ! "kcalc &"
"Volume Control" ! "gnome-volume-control &"
"VMWare" ! "vmwareesd &"
"" f.nop
"Firefox" ! "firefox &"
"Pidgin" ! "pidgin &"
"" f.nop
"Lock Screen" ! "xscreensaver-command -lock &"
}