summaryrefslogtreecommitdiff
path: root/sample-twmrc/lemke.twmrc
blob: f0a12af5f739e2f39a8d6bdbddf16112dcf069fd (plain)
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
#
#  Dave Lemke's .twmrc
#

IconDirectory "/u/lemke/lib/icons"

#AutoRelativeResize
BorderWidth	3
ButtonIndent	0
ClientBorderWidth
#DefaultFunction	f.nop
#DontMoveOff
IconifyByUnmapping
IconFont	"-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1"
IconManagerFont	"-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1"
IconManagerGeometry  "=98x5-2+50"
#LeftTitleButton	"menu12.xbm" = f.menu "window-ops"
MenuFont	"-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1"
MoveDelta	5
#NoBackingStore
NoDefaults
NoGrabServer
NoMenuShadows
#NoRaiseOnDeiconify
NoRaiseOnMove
#NoRaiseOnResize
#NoSaveUnder
#NoTitleFocus
#NoVersion
#OpaqueMove
ResizeFont	"10x20"
RestartPreviousState
#ReverseVideo
ShowIconManager
SortIconManager

SqueezeTitle
{
	"XTerm"		center	0	0 
	"Xsol"		center	0	0
	"Spider"	center	0	0
}

TitleFont	"-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1"
TitleButtonBorderWidth	1
UnknownIcon     "ncdlogo64.xbm"
#WarpCursor
XORValue	1
#Zoom

DefaultFunction	f.nop

Function "move-or-raise"
{
	f.move
	f.deltastop
	f.raise
}

AutoRaise
{
	"xtrek"
	"TWM Icon Manager"
	"xclock"
	"xbiff"
	"xeyes"
}

Cursors
{
	Menu	"right_ptr"
}

DontIconifyByUnmapping
{
	"xclock"
	"xbiff"
	"twmOutput"
	"xload"
	"oclock"
	"xeyes"
}

IconManagerDontShow
{
	"xclock"
	"xbiff"
	"twmOutput"
	"xload"
	"oclock"
	"xeyes"
}

Monochrome
{
	DefaultForeground	"black"
	DefaultBackground	"white"
	BorderColor	"black"
	TitleForeground	"black"
	TitleBackground	"white"
	MenuForeground	"black"
	MenuBackground	"white"
}

NoTitle
{
	"xclock"
	"xbiff"
	"xload"
	"TWM Icon Manager"
	"FrameMaker"
	"FrameWriter"
	"oclock"
	"twmOutput"
	"xeyes"
}

#
# buttons
#

Button1 = 	: root	: f.menu "button1"
Button2 = 	: root	: f.menu "Util_menu"
Button3 = 	: root	: f.menu "Hosts_menu"
Button1 = 	: m	: f.iconify
Button2 = 	: m	: f.lower
Button1 = 	: t	: f.function "move-or-raise"
Button2 = 	: t	: f.lower
Button3 = 	: t	: f.menu "window-ops"
Button1 = 	: i	: f.iconify
Button2 = 	: i	: f.function "move-or-raise"

"F1"    =	: w|t|i	: f.iconify
"F2"    =	: all	: f.refresh
"F3"	=	: w|t|i	: f.raise
"F4"	=	: w|t|i	: f.lower

"F5"	=	: w|t|i	: f.zoom



menu "button1"
{
"Applications"		f.title
#"FrameWriter"		!"rsh indian -n /usr/local/xframewriter $DISPLAY& "
#"Q Calc "		!"rsh indian -n /usr/bin/X11/xterm -display $DISPLAY -T Qcalc -e /pmax/u/demo/qsp/bin/qcalc &"
#"Notepad"		!"/usr/bin/dxnotepad -display $DISPLAY&"
#"Calculator"		!"xcalc -display $DISPLAY&"
"Mail Box"		!"/usr/bin/X11/xbiff -display $DISPLAY&"
"Clock"        		!"oclock -display $DISPLAY &"
"Xterm"			!"/usr/bin/X11/xterm -ls -display $DISPLAY &"
"Big Xterm"		!"/usr/bin/X11/xterm -ls -fn 9x15 -display $DISPLAY &"
"xsol"			!"$HOME/games/bin/`arch`/xsol &"
"Spider"		!"$HOME/games/bin/`arch`/spider &"
"Utility"		f.title
#"Focus"		f.focus
#"UnFocus"		f.unfocus
#"More.."		f.title
"..Hosts"		f.menu "Hosts_menu"
"..Applications"	f.menu "Apps_menu"
"..Utility"		f.menu "Util_menu"
""			f.title
"Exit"			f.quit
}

menu "Hosts_menu"
{
"Host Connections"	f.title
"Almanor"	!"rsh -n almanor exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Almanor&"
"Hamilton"	!"rsh -n hamilton exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Hamilton&"
"Homer"		!"rsh -n Homer exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Homer&"
"Lupine"	!"TERM=xterms xterm -fn 10x20 -T lupine -e rlogin lupine&"
"Ramona"	!"rsh -n ramona exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Ramona&"
"Pagemill"	!"rsh pagemill -n /usr/bin/X11/xterm -display $DISPLAY -T Pagemill -e /bin/ksh&"
"Sheridan"	!"rsh -n sheridan exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Sheridan&"
}

menu "Apps_menu"
{
"Applications"	f.title
"Man Pages"		!"/usr/bin/X11/xman -display $DISPLAY&"
#"Notepad"		!"/usr/bin/dxnotepad -display $DISPLAY&"
#"FrameMaker"		!"rsh indian -n /usr/local/xframemaker $DISPLAY& "
#"Calendar"		!"/usr/bin/dxcalendar -display $DISPLAY &"
"Clock"                 !"/usr/bin/X11/xclock -display $DISPLAY &"
#"Rolodex"       	!"/usr/bin/dxcardfiler -display $DISPLAY &"
#"Paint"        		!"/usr/bin/dxpaint -display $DISPLAY &"
"Lock Screen"    	!"/usr/bin/X11/xlock & "
"Preferences"		!"/usr/bin/X11/xpref -display $DISPLAY&"
"Xterm"			!"/usr/bin/X11/xterm -ls -display $DISPLAY &"
}

menu "Util_menu"
{
"Utilities"		f.title
"Refresh"		f.refresh
"twm Version"		f.version
"Source .twmrc"		f.twmrc
"Restart twm"		f.restart
#"Hide IconManager"      f.hideiconmgr
#"Show IconManager"      f.showiconmgr
#"Destroy All Window"    !"xkill -a&"
"Preferences"		f.menu "Pref_menu"
"TwmWindows"		f.menu "TwmWindows"
"Exit twm"		f.quit
"Window Ops"		f.title
"Refresh Window"	f.winrefresh
"Move Window"           f.move
"Resize Window"         f.resize
"Lower Window"		f.lower
"Raise Window"		f.raise
"Iconify"		f.iconify
"Window Info"		f.identify
"Destroy Window"        f.destroy
"Focus on Window"       f.focus
"Focus on Root"		f.unfocus
}

menu "Pref_menu"
{
"Preferences"		f.title
"Bell Loud"		!"xset b 75&"
"Bell Normal"		!"xset b 50&"
"Bell Quiet"		!"xset b 25&"
"Bell Off"		!"xset b off&"
"Mouse Fast"		!"xset m 5 1&"
"Mouse Normal"		!"xset m 3 1&"
"Mouse Slow"		!"xset m 1 1&"
"Screen Saver"		f.menu "SSaver"
}


menu "SSaver"
{
"Screen Saver"		f.title
"Blank"			!"/usr/bin/X11/xset s blank -display $DISPLAY &"
"No Blank"		!"/usr/bin/X11/xset s noblank -display $DISPLAY &"
"Saver 2 Sec."		!"/usr/bin/X11/xset s 2 2 -display $DISPLAY &"
"Saver 2 Min."		!"/usr/bin/X11/xset s 120 120 -display $DISPLAY &"
"Saver 10 Min."		!"/usr/bin/X11/xset s 600 600 -display $DISPLAY &"
}

menu "window-ops"
{
"Window Ops"		f.title
"Iconify"		f.iconify
"Refresh Window"	f.winrefresh
"Move Window"		f.move
"Resize Window"		f.resize
"Hide Window"		f.lower
"Expose Window"		f.raise
"Destroy Window"	f.destroy
"Delete Window"		f.delete
"Save"			f.saveyourself
}