-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMR.twmrc
300 lines (265 loc) · 6.84 KB
/
MR.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
TitleFont "-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1"
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-*-*-*"
# -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1
#options left without brackets are global
# <Window:>
NoDefaults
# NoGrabServer
DecorateTransients
NoTitle # No title bars on these windows
{
"TWM Icon Manager"
}
# NoRaiseOnMove # Drag underneath windows
# {}
# NoTitleHighlight
# No borders on any windows
OpaqueMove # Show contents while dragging
EnableXrenderTransparency
TitleButtonBorderWidth 0
BorderWidth 3
ClientBorderWidth 3
ButtonIndent 0
NoHighlight
AutoRelativeResize
FramePadding 1
Zoom 500
# SqueezeTitle
#
# Icons:
#
#IconManagerGeometry "800x60+0+0" 90 # up/left, four icons per row
# ShowIconManager # Use the icon manager
NoIconManagers
IconifyByUnmapping
IconManagerDontShow # Don't show other icons
{
}
DontIconifyByUnmapping
{
}
# apperance:
# NoMenuShadows
SqueezeTitle
{
"uxterm" center 1 2
"feh" right 0 0
}
DontSqueezeTitle
{
"bitmap"
"uxrvt"
"nedit"
}
Color
{
BorderColor "dimgrey"
{
# "xterm" "crimson"
"nedit" "cyan"
"uxterm" "lime"
}
DefaultBackground "black"
DefaultForeground "white"
TitleBackground "black"
TitleForeground "white"
MenuBorderColor "grey"
MenuBackground "white"
MenuForeground "black"
MenuTitleBackground "black"
MenuTitleForeground "white"
TitleHighlightForeground"blue"
TitleHighlightBackground"yellow"
IconBackground "grey"
IconForeground "white"
IconBorderColor "black"
IconManagerBackground "lightgrey"
IconManagerForeground "black"
PointerForeground "blue"
PointerBackground "cyan"
}
#{
# BorderColor "red"
# DefaultBackground "blue"
# DefaultForeground "white"
# TitleBackground "orange"
# TitleForeground "black"
# MenuBorderColor "crimson"
# MenuBackground "white"
# MenuForeground "black"
# MenuTitleBackground "orange"
# MenuTitleForeground "black"
# IconBackground "lightblue"
# IconForeground "black"
# IconBorderColor "cyan"
# IconManagerBackground "lightblue"
# IconManagerForeground "black"
# PointerForeground "firebrick"
# PointerBackground "crimson"
#}
#{
# BorderColor "Cyan"
# DefaultBackground "blue"
# DefaultForeground "white"
# TitleBackground "blue"
# TitleForeground "White"
# MenuBorderColor "cyan"
# MenuBackground "navyblue"
# MenuForeground "white"
# MenuTitleBackground "blue"
# MenuTitleForeground "white"
# IconBackground "blue"
# IconForeground "white"
# IconBorderColor "cyan"
# IconManagerBackground "navyblue"
# IconManagerForeground "white"
# PointerForeground "blue"
# PointerBackground "skyblue"
#}
Cursors
{
Frame "left_ptr"
Title "left_ptr"
Icon "left_ptr"
IconMgr "left_ptr"
Move "left_ptr"
Resize "fleur"
Menu "right_ptr"
Button "left_ptr"
Wait "clock"
Select "target"
Destroy "star"
}
#
# Define some useful functions for motion-based actions.
#
MoveDelta 1
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.focus f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }
Function "shove" {f.lower}
Function "Rise-&-focus" {f.raise f.focus}
##
# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.focus
Button2 = : root :
Button3 = : root : f.menu "main"
# Button1 = : frame : f.resize
# Button2 = : frame :
# Button3 = : frame :
Button1 = m : window|icon : f.function "move-or-raise"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-lower"
Button1 = : title : f.move
Button2 = : title :
Button3 = : title : f.menu ="window"
#f.function "Rise-&-focus"
Button1 = : icon : f.function "move-or-lower"
Button2 = : icon :
Button3 = : icon : f.iconify
Button1 = : iconmgr : f.raise
Button2 = : iconmgr :
Button3 = : iconmgr : f.lower
# custom title bar:
#LeftTitleButton "/Users/scragg/Pictures/local-icons/resizeLeft2" = f.resize
LeftTitleButton "/Users/scragg/Pictures/local-icons/monoResize" = f.resize
pixmaps
{
TitleHighlight "/Users/scragg/Pictures/local-icons/pinstripes2"
BorderTile "/Users/scragg/Pictures/local-icons/p3dbar"
}
RightTitleButton "/Users/scragg/Pictures/local-icons/irclose3" = f.delete
RightTitleButton "/Users/scragg/Pictures/local-icons/irmin2" = f.iconify
RightTitleButton "/Users/scragg/Pictures/local-icons/irmax" = f.fullzoom
RightTitleButton "/Users/scragg/Pictures/local-icons/amigacircle" =f.circledown
#RightTitleButton "/Users/scragg/Pictures/local-icons/resizeRight2" = f.resize
#
# And a menus with the usual things
#
menu "main"
{
"System menu" f.title
"Terminal" f.menu "term"
"man" f.exec "xman &"
#"Email" f.exec "sylpheed --geometry=202x69+0+48 &"
#"Mozilla" f.exec "mozilla -viewer &"
#"Xosview" f.exec "xosview +net &"
"Xcalc" f.exec "xcalc &"
"Editors" f.menu "editors"
# "Network" f.menu "internet"
"Graphics" f.menu "graphics"
"Music" f.menu "music"
"" f.title
"Window List" f.menu "TwmWindows"
"Actions" f.menu "window"
"Twm " f.menu "twm"
}
menu "internet"
{
"Network" f.title
"GFTP" f.exec "gftp --geometry=202x69+0+48 &"
"GTK-Gnutella" f.exec "gtk-gnutella &"
"VNC:1" f.exec "vncviewer -noauto -geometry 800x600 -depth 16 -passwd
/root/.vnc/passwd spyro:1 &"
}
menu "editors"
{
"xedit" f.exec "xedit &"
"nedit" f.exec "nedit &"
}
menu "graphics"
{
# "Graphics" f.title
# "XV" f.exec "xv &"
# "Gimp" f.exec "gimp &"
# "Ximaging" f.exec "/volumes/cal_main/code_dump/con_oringinal/zipd/open/mit/ximaging-master/src/ximaging"
"X bitmap editor" f.exec "bitmap &"
"Classic-colors" f.exec "/volumes/cal_main/code_dump/classic-colors-master-3/bin/classic-colors &"
}
menu "term"
{
"Terminals" f.title
"xterm" f.exec "xterm &"
"uxterm" f.exec "uxterm &"
}
menu "window"
{
"Actions" f.title
"Term Window" f.destroy
"Delete Window" f.delete
"" f.title
"Maximize" f.fullzoom
"Minimize" f.iconify
"Resize" f.resize
"Move" f.move
"Raise" f.raise
"Lower" f.lower
"" f.title
"Focus" f.focus
"Unfocus" f.unfocus
# "Show Iconmgr" f.showiconmgr
# "Hide Iconmgr" f.hideiconmgr
"" f.title
#"Screensaver" f.menu "screensaver"
"Redraw" f.refresh
}
menu "twm"
{
"Restart" f.restart
"Quit TWM" f.startwm ""
"Quit" f.menu "quit"
}
menu "Wm's"
{
"Mwm" f.startwm "/opt/pkg/bin/mwm"
}
menu "quit"
{
"Really Quit?" f.title
"Quit X" f.quit
#"Quit all" f.exec "killall -9 xterm"
}