]> git.phdru.name Git - dotfiles.git/blob - .fvwm/phd.m4
898bc04306d8e23a45092fa7b775684447e0a27a
[dotfiles.git] / .fvwm / phd.m4
1 ##########################################################################
2 # FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
3 #
4
5 dnl The file is in m4 format, use FvwmM4 module to read it
6 dnl like this: ModuleSynchronous FvwmM4 -lock .fvwm2rc
7
8 dnl This is to prevent FvwmM4 to shadow $HOME
9 undefine(`HOME')
10
11 dnl Echo dimension
12 `#' width = WIDTH
13
14 divert(-1)
15 dnl koi8-r Fonts
16 dnl define(`SMALL_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-koi8-r')
17 dnl define(`MEDIUM_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-koi8-r')
18 dnl define(`BIG_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-koi8-r')
19
20 dnl cp1251 Fonts
21 dnl define(`SMALL_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-*-cp1251')
22 dnl define(`MEDIUM_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-*-cp1251')
23 dnl define(`BIG_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-*-cp1251')
24
25 dnl define(`XBUFFY_FONT', `-cronyx-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r')
26
27
28 dnl TrueType Fonts
29 define(`SMALL_FONT', `xft:Sans:size=12')
30 define(`MEDIUM_FONT', `xft:Sans:size=14')
31 define(`BIG_FONT', `xft:Sans:size=16')
32 define(`LARGE_FONT', `xft:Sans:size=18')
33 define(`HUGE_FONT', `xft:Sans:size=20')
34
35 dnl Bold TT fonts
36 define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold')
37 define(`MEDIUM_BOLD_FONT', MEDIUM_FONT`:Bold')
38 define(`BIG_BOLD_FONT', BIG_FONT`:Bold')
39
40 define(`TITLE_FONT', MEDIUM_FONT)
41 define(`ICON_FONT', LARGE_FONT)
42
43 dnl Font and geometry aliases that depend on whether the screen resolution is
44 dnl 800x600, 1024x768 or 1920x1200
45
46 define(`PAGER_GEOM',
47 ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',
48        eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'))
49
50 define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT))
51 define(`BUTTONS_FONT', PAGER_FONT)
52
53
54 define(`MENU_FONT',
55 ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',
56        eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'))
57 define(`IDENT_FONT', MENU_FONT)
58 define(`WIN_LIST_FONT', MENU_FONT)
59 define(`ICON_BOX_FONT', MENU_FONT)
60
61
62 dnl XSetBg message width and font
63 define(`TEXT_WIDTH',
64 ifelse(eval(WIDTH < 1024), 1, 70,
65        eval(WIDTH < 1920), 1, 75, 80))
66
67 define(`MESSAGE_FONT', `Nimbus Sans L 18')
68
69
70 dnl Terminal emulator
71 define(`TERM_GEOM',
72 ifelse(eval(WIDTH < 1024), 1, `80x25',
73        eval(WIDTH < 1920), 1, `80x30', `80x32'))
74
75 define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0')
76 define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0')
77
78 define(`TERM_GEOM_BIG',
79 ifelse(eval(WIDTH < 1024), 1, `96x30',
80        eval(WIDTH < 1920), 1, `112x32', `126x35'))
81
82
83 define(`TERM', `urxvt')
84 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
85 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
86 define(`TERM_KOI8_BOTLT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTLT')
87 define(`TERM_UTF8_BOTLT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTLT')
88 define(`TERM_KOI8_BOTRT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTRT')
89 define(`TERM_UTF8_BOTRT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTRT')
90
91
92 define(`REMOTE_HOST_KOI8',
93 TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1")
94
95 define(`REMOTE_HOST_KOI8_MENU',
96 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2))
97
98 define(`REMOTE_HOST_KOI8_BOTLT',
99 TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1")
100
101 define(`REMOTE_HOST_KOI8_BOTRT',
102 TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1")
103
104 define(`REMOTE_HOST_KOI8_BOTLT_MENU',
105 "$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2))
106
107 define(`REMOTE_HOST_KOI8_BOTRT_MENU',
108 "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2))
109
110 define(`REMOTE_HOST_UTF8',
111 TERM_UTF8 -e ssh -4 "$1")
112
113 define(`REMOTE_HOST_UTF8_MENU',
114 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2))
115
116 define(`REMOTE_HOST_UTF8_BOTLT',
117 TERM_UTF8_BOTLT -e ssh -4 "$1")
118
119 define(`REMOTE_HOST_UTF8_BOTRT',
120 TERM_UTF8_BOTRT -e ssh -4 "$1")
121
122 define(`REMOTE_HOST_UTF8_BOTLT_MENU',
123 "$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2))
124
125 define(`REMOTE_HOST_UTF8_BOTRT_MENU',
126 "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2))
127
128 define(`REMOTE_HOST_KOI8_BIG',
129 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1")
130
131 define(`REMOTE_HOST_KOI8_BIG_MENU',
132 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2))
133 divert
134
135
136 ##########################################################################
137 # PATH Setup
138 #
139 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
140 #ModulePath /usr/lib/fvwm
141 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons
142
143 ############################################################################
144 # COLORS and FONTS
145 #
146 # Set the fore and back border colors for the window that has focus
147 Style * HilightFore Black, HilightBack #c06077
148
149 # Set fore/back border colors for all other windows
150 Style * Color Black/#60a0c0
151
152 # Set colors/font for pop-up menus
153 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
154 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT
155
156 # Set fonts to use on title bar and icon label
157 Style * Font              TITLE_FONT
158
159 ############################################################################
160 # ICON Setup
161 #
162 # If you don't want icons for some or all windows (or all of them!)
163 # Style * !Icon
164
165 # If you want ALL icons to follow you around the desktop (Sticky)
166 #Style * StickyIcon
167
168 # Auto Place Icons is a nice feature (Left Top Right Bottom)
169 #Style * IconBox 10 -75 -10 -0
170
171 Style * IconFont          ICON_FONT
172
173 ############################################################################
174 # FOCUS Setup
175 #
176 # Does the window with focus control the colormap, or the one under the mouse
177 ColormapFocus FollowsMouse
178
179 # Uncomment this to force you to click in a window to give it focus
180 #Style * ClickToFocus
181
182 # default: focus follows mouse
183 #Style * MouseFocus
184 #Style * FocusFollowsMouse
185
186 # If you knock your mouse out of the term, it keeps focus while in root window
187 Style *           SloppyFocus
188
189 ############################################################################
190 # MISC Setup
191 #
192 # click/release must occur in <n milliseconds to be a "click"
193 ClickTime 250
194
195 # if the window occupies less than n% of the screen, draw it opaque
196 OpaqueMoveSize 100
197
198 # Do not flip pages on the edge of the screen, but allow to move windows
199 EdgeScroll 0 0
200 EdgeResistance 10000
201 Style * EdgeMoveDelay 500
202 Style * EdgeMoveResistance 100
203
204 # MWM Emulation: Don't ignore hints for functions and transient decoration
205 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
206 Style * MWMFunctions, MWMDecor, MWMButtons
207
208 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
209 XORvalue 80
210
211 ###########################################################################
212 # PAGER Setup
213 #
214 # set the desk top size in units of physical screen size (width x height)
215 DesktopSize 2 2
216
217 ############################################################################
218 # WINDOW Placement
219 #
220 Style * PositionPlacement Center
221
222
223 ############################################################################
224 # STYLE Flag Setup
225 #
226 # (decorations and window options)
227 # Note: Order is important!! If compatible styles are set, styles are ORed
228 # together. If conflicting styles are set, the last one specified is used.
229
230 # change the default width, set a global icon, and give borders to popups
231 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
232 Style * DecorateTransient, ClickToFocusRaisesOff
233
234 Style "Fvwm*"           !Title, Sticky, WindowListSkip
235 Style "FvwmButtons"     !Handles, BorderWidth 0
236
237 # Terminals
238 Style "*term"           Icon term.xpm
239 Style "*rxvt"           Icon term.xpm
240 Style "term-im-local"   Icon pidgin-menu.xpm
241 Style "term-im-remote"  Icon rcalc2.xpm
242 Style "term-im-*"       IconBox 630 -75 -2 -2, IconGrid 200 80
243 Style "term-im-*"       StartsOnPage 1 1 0, StartIconic
244
245 # Browsers' windows
246 Style "Certificate Manager" PositionPlacement Center
247 Style "*Downloads"      PositionPlacement 50-50w +5
248 Style "*Mozilla*"       PositionPlacement +0 -0
249
250 Style "*Chromium*"      PositionPlacement +0 -0
251
252 # IM
253 Style "Gajim"           PositionPlacement +0 -0
254 Style "* - Gajim"       MinOverlapPercentPlacement
255 # Pidgin
256 Style "Buddy List"      PositionPlacement +0 -0
257 Style "*Pidgin*"        MinOverlapPercentPlacement
258
259 # (S)MPlayer
260 Style "*MPlayer*"       Layer 6, PositionPlacement 350p 100p
261
262 Style "*clock"          !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p
263 Style "emacs"           NoPPosition
264 Style "gxmessage"       PositionPlacement 50-50w +20
265 Style "*lock"           !Title, Sticky, WindowListSkip
266 Style "Mosaic"          NoPPosition
267 Style "xbiff"           Icon mail1.xpm, !Title, Sticky, WindowListSkip
268 Style "xcalc"           Icon xcalc.xpm
269 Style "xconsole"        !Title, Sticky, WindowListSkip, NeverFocus
270 Style "xload"           !Title, Sticky, WindowListSkip, NeverFocus
271 Style "xman"            Icon xman.xpm
272 Style "xmh"             Icon mail2.xpm
273 Style "xsession"        !Title, Sticky, WindowListSkip, ClickToFocus
274 Style "XXkb"            !Title, !Borders, Sticky, WindowListSkip, Layer 5
275
276 ############################################################################
277 # BUTTON Setup
278 #
279
280 ## Buttons actually being used (duplicated below)
281 # small up triangle
282 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
283 # small down triangle
284 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
285 # Stylized X
286 #ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
287
288 ## Triangles
289 #
290 # Small up Triangle
291 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
292 # Small down Triangle
293 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
294 # Large up Triangle
295 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
296 # Large down Triangle
297 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
298
299 ## Boxes
300 #
301 # Big Box
302 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
303 # Little Box
304 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
305 # Tall Box
306 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
307 # Dot
308 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
309 # Big Box with arrow (left-up to right-down) to little box (iconify)
310 #ButtonStyle 6 14 20x20@1 20x70@1 70x70@0 70x20@0 20x20@1 60x60@0 60x50@0 60x60@0 50x60@0 60x60@0 60x80@0 80x80@0 80x60@0 60x60@0
311 # Big Box with arrow (right-up to left-down) to little box (iconify)
312 ButtonStyle 6 14 70x20@0 70x70@0 20x70@1 20x20@1 70x20@1 30x60@0 30x50@0 30x60@0 40x60@0 30x60@0 30x80@0 10x80@0 10x60@0 30x60@0
313
314 ## X's
315 #
316 # Standard X
317 #ButtonStyle 3 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
318 ButtonStyle 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
319 # Funky X
320 #ButtonStyle 3 13 26x29@1 34x21@1 50x35@1 70x21@1 79x29@1 63x48@0 79x65@1 70x75@0 50x61@0 34x75@0 26x65@0 44x48@1 26x29@0
321 # Stylized X
322 #ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
323
324 ## Lightning Bolts
325 #
326 # Small Lightning Bolt (skinny at both ends)
327 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
328 # Big Lighting Bolt (Fat at top, comes to a point)
329 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
330
331 ## Miscellaneous Buttons
332 #
333 # Nested Right Angles (looks kinda crappy)
334 #ButtonStyle 5 13 10x0@1 80x0@1 80x10@1 80x80@0 0x80@0 0x60@1 10x65@1 70x65@0 70x0@0 55x0@1 55x10@1 55x55@0 10x55@0
335 # Nested Right Angles (looks nice)
336 #ButtonStyle 6 14 0x0@1 0x20@1 20x20@0 20x0@0 0x0@1 0x25@1 25x25@1 25x0@1 55x0@1 55x55@0 0x55@0 0x60@1 60x60@1 60x0@1
337 # 4 Horizontal bars (sticky)
338 #ButtonStyle 7 12 10x23@0 90x23@0 90x28@0 10x28@1 10x47@1 90x47@0 90x52@0 10x52@1 10x70@2 90x70@0 90x76@0 10x76@1
339 ButtonStyle 3 12 10x23@0 90x23@0 90x28@0 10x28@1 10x47@1 90x47@0 90x52@0 10x52@1 10x70@2 90x70@0 90x76@0 10x76@1
340 # Expanding Windows (iconify -- looks NICE)
341 #ButtonStyle 8 16 60x40@1 60x80@0 15x80@0 15x40@1 60x40@1 40x40@1 40x25@1 75x25@1 75x60@0 60x60@0 75x60@0 75x40@0 85x40@0 85x15@0 60x15@1 60x25@1
342
343 ## Arrows Galore
344 #
345 # Up Arrow
346 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
347 # Down Arrow
348 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
349 # Left arrow  ( <- )
350 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
351 # Right arrow ( -> )
352 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
353 # Horizontal Line with arrowheads on left and right ( <-> )
354 #ButtonStyle * 12 10x50@1 35x25@1 35x40@1 65x40@1 65x25@1 90x50@1 65x75@0 65x60@0 35x60@0 35x75@0 10x50@0 10x50@1
355 # Vertical Line with arrowheads on top and bottom
356 #ButtonStyle * 12 50x10@1 25x35@1 40x35@1 40x60@1 25x60@1 50x85@1 75x60@0 60x60@0 60x35@0 75x35@0 50x10@0 50x10@1
357 # Diagonal Line with arrowheads on top and bottom ( / )
358 #ButtonStyle 5 11 80x15@1 45x15@1 55x25@1 25x55@1 15x45@1 15x80@1 50x80@0 40x70@0 70x40@0 80x50@0 80x15@0
359 # Diagonal Line with arrowheads on top and bottom ( \ )
360 #ButtonStyle 6 12 55x15@0 45x25@0 75x55@0 85x45@0 85x80@0 50x80@0 60x70@1 30x40@1 20x50@1 20x15@1 55x15@1 55x15@0
361 #
362 # the number "2"
363 #ButtonStyle 8 12 80x80@0 22x80@0 80x40@0 70x25@0 30x25@0 20x35@0 20x30@1 30x20@1 70x20@1 80x30@1 20x75@1 80x75@1
364
365
366 ############################################################################
367 # MOUSE Setup
368 #
369 # First, the root window. Button 1 brings up the Main Menu. B2 is the
370 # window operations list, and B3 is the winlist module
371 #     Button    Context Modifi  Function
372 Mouse 1         R       A       Menu RootMenu Nop
373 Mouse 2         R       A       Menu Window-Ops Nop
374 Mouse 3         R       A       WindowList
375
376 # Now, title bar buttons
377 # Left button is the Window-Ops2 menu
378 #     Button    Context Modifi  Function
379 Mouse 0         1       A       Menu Window-Ops2 Close
380 Mouse 0         3       A       Stick
381 Mouse 0         5       A       Center
382 # Right buttonsare iconify/maximize, rightmost is close
383 Mouse 0         2       A       Close
384 Mouse 0         4       A       Maximize toggle
385 Mouse 0         6       A       Iconify
386
387 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
388 # de-iconify, and on Top does a move-or-raise
389 #     Button    Context Modifi  Function
390 Mouse 1         F       A       Resize-or-Raise
391 Mouse 1         S       A       Move-or-Raise
392 Mouse 1         I       A       Move-or-Iconify
393 #Mouse 1                T       A       Move-or-Raise
394 Mouse 1         T       A       Shadify
395
396 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
397 #     Button    Context Modifi  Function
398 Mouse 2         I       A       Iconify
399 Mouse 2         FST     A       Menu Window-Ops2 Nop
400
401 # Button 3 does a raise-lower on anything
402 Mouse 3         TSIF    A       RaiseLower
403
404 ############################################################################
405 # KEYBOARD Setup
406
407 #
408 # press arrow + control + meta anywhere, and scroll by 1 page
409 Key Left        A       CM      Scroll -100 +0
410 Key Right       A       CM      Scroll +100 +0
411 Key Up          A       CM      Scroll +0   -100
412 Key Down        A       CM      Scroll +0   +100
413
414 # press arrow + meta key, and scroll by 1/10 of a page
415 Key Left        A       M       Scroll -10   +0
416 Key Right       A       M       Scroll +10   +0
417 Key Up          A       M       Scroll  +0  -10
418 Key Down        A       M       Scroll  +0  +10
419
420 # press shift arrow + control anywhere, and move the pointer by 1% of a page
421 Key Left        A       SC      CursorMove -1  +0
422 Key Right       A       SC      CursorMove +1  +0
423 Key Up          A       SC      CursorMove +0  -1
424 Key Down        A       SC      CursorMove +0  +1
425
426 # press shift arrow + meta key, and move the pointer by 1/10 of a page
427 Key Left        A       SM      CursorMove -10  +0
428 Key Right       A       SM      CursorMove +10  +0
429 Key Up          A       SM      CursorMove +0  -10
430 Key Down        A       SM      CursorMove +0  +10
431
432 # Switch window, mswindows style :)
433 Key Tab         A       M       Next [*] focus
434 Key Escape      A       M       Prev [*] focus
435
436 # Goto desktop/page
437 Key 1           A       CM      Desk 0 0
438 Key 2           A       CM      Desk 0 1
439 Key 3           A       CM      Desk 0 2
440 Key 4           A       CM      Desk 0 3
441 Key 5           A       CM      GotoPage 0 0
442 Key 6           A       CM      GotoPage 1 0
443 Key 7           A       CM      GotoPage 0 1
444 Key 8           A       CM      GotoPage 1 1
445
446 #############################################################################
447 # START-UP Functions
448 #
449 AddToFunc "InitFunction"
450 +              I Module FvwmBacker
451 +              I Module FvwmButtons
452 +              I Module FvwmCommandS
453 +              I Module FvwmPager 0 2
454
455 AddToFunc "RestartFunction"
456 +              I Module FvwmBacker
457 +              I Module FvwmButtons
458 +              I Module FvwmCommandS
459 +              I Module FvwmPager 0 2
460 +              I Next [!iconic CurrentScreen xterm] Focus
461
462 AddToFunc "StartStandardSession"
463 +              I GotoDeskAndPage 0 0 0
464 +              I TERM_KOI8
465 +              I Wait TERM
466 +              I GotoDeskAndPage 0 0 1
467 +              I TERM_UTF8 -geometry 38x30+0-0
468 +              I Wait URxvt
469 +              I GotoDeskAndPage 0 1 0
470 +              I TERM_KOI8 -e su -
471 +              I Wait TERM
472 +              I PaVuControl
473 +              I Wait "Volume Control"
474 +              I FireFox
475 +              I Wait "*Mozilla Firefox"
476 +              I GotoDeskAndPage 1 0 1
477 +              I TERM_KOI8
478 +              I Wait TERM
479 +              I GotoDeskAndPage 2 0 1
480 +              I TERM_KOI8 -geometry TERM_GEOM_BIG
481 +              I Wait TERM
482 +              I Gajim
483 +              I Wait Gajim
484 +              I TERM_UTF8 -iconic -name term-im-remote
485 +              I Wait URxvt
486 +              I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
487 +              I Wait URxvt
488 +              I GotoDeskAndPage 1 1 0
489 +              I Schedule 1000 GotoDeskAndPage 0 1 0
490
491
492 ############################################################################
493 # COMPLEX FUNCTIONS
494 #
495 DestroyFunc Center
496 AddToFunc Center                I Move 50-50w 50-50w
497 +                               I WarpToWindow 74p 18p
498
499 AddToFunc Iconify-and-Raise     I Iconify
500 +                               I Raise
501
502 AddToFunc Maximize-Func         C Maximize     toggle
503 +                               D Maximize     100 100
504
505 AddToFunc Move-or-Iconify       I Raise
506 +                               M Move
507 +                               D Iconify
508
509 AddToFunc Move-or-Raise         I Raise
510 +                               M Move
511 +                               D Lower
512
513 AddToFunc Move-or-Raise2        M Raise
514 +                               M Move
515 +                               D Lower
516
517 AddToFunc Resize-or-Raise       I Raise
518 +                               M Resize
519 +                               D Lower
520
521 AddToFunc Resize-or-Raise2      M Raise
522 +                               M Resize
523 +                               D Lower
524
525 AddToFunc Shadify               D WindowShade
526 +                               M Move
527 +                               C RaiseLower
528
529 AddToFunc warp-or-run           I Next [$0 CirculateHit] Iconify -1
530 +                               I Next [$0 CirculateHit] Focus
531 +                               I None [$0] $1
532
533 AddToFunc MailFunction          I Next [$0] Iconify -1
534 +                               I Next [$0] focus
535 +                               I None [$0] Exec exec $0 $1
536
537 AddToFunc PrintFunction         I Raise
538 +                               I Exec exec xdpr -id $w
539
540 ##############################################################################
541 # User-defined functions
542 #
543
544 DestroyFunc PaVuControl
545 AddToFunc PaVuControl         I GotoDeskAndPage 0 1 1
546 +                             I Exec exec pavucontrol
547
548 changequote([,])
549 DestroyFunc Id3Info
550 AddToFunc Id3Info             I Exec "$HOME"/lib/audio/mp3/id3info.py "`deadbeef --nowplaying '%F'`" | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
551 changequote([`], ['])
552
553 #DestroyFunc Audacious
554 #AddToFunc Audacious           I GotoDeskAndPage 0 1 1
555 #+                             I Exec LC_CTYPE=ru_RU.UTF-8 exec audacious
556
557 DestroyFunc DeadBeef
558 AddToFunc DeadBeef            I GotoDeskAndPage 0 1 1
559 +                             I Exec exec deadbeef
560
561 DestroyFunc SMPlayer
562 AddToFunc SMPlayer            I GotoDeskAndPage 0 1 1
563 +                             I Exec exec smplay -no-close-at-end
564
565 DestroyFunc Term-Phdru
566 AddToFunc Term-Phdru          I GotoDeskAndPage 1 0 1
567 +                             I REMOTE_HOST_KOI8(phdru.name, phdru.name)
568
569 DestroyFunc Term-Phdru-Big
570 AddToFunc Term-Phdru-Big      I GotoDeskAndPage 1 0 1
571 +                             I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
572
573 DestroyFunc FireFox
574 AddToFunc FireFox             I GotoDeskAndPage 1 0 0
575 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
576
577 DestroyFunc Gajim
578 AddToFunc Gajim               I GotoDeskAndPage 1 1 0
579 +                             I Exec exec gajim
580
581 DestroyFunc Pidgin
582 AddToFunc Pidgin              I GotoDeskAndPage 1 1 0
583 +                             I Exec exec pidgin
584
585 DestroyFunc Raise-All
586 AddToFunc Raise-All           I All (!"FvwmButtons|System|*clock") Raise
587
588 DestroyFunc UrgencyFunc
589 AddToFunc UrgencyFunc
590 +                             I Iconify off
591 +                             I ThisWindow ("*Downloads") Break
592 +                             I FlipFocus
593 +                             I Raise
594 +                             I WarpToWindow 5p 5p
595
596 ##############################################################################
597 # MENU Setup
598 #
599
600 # This defines the most common window operations
601 AddToMenu Window-Ops    "Window Ops"    Title
602 +                       "Center"        Center
603 +                       "Move"          Move-or-Raise2
604 +                       "Resize"        Resize-or-Raise2
605 +                       "Raise"         Raise
606 +                       "Lower"         Lower
607 +                       "(De)Iconify"   Iconify
608 +                       "(Un)Stick"     Stick
609 +                       "(Un)Maximize"  maximize_func
610 +                       ""              Nop
611 +                       "Delete"        Delete
612 +                       "Close"         Close
613 +                       "Destroy"       Destroy
614 +                       ""              Nop
615 +                       "Refresh Screen" Refresh
616
617 # A trimmed down version of "Window Ops", good for binding to decorations
618 DestroyMenu "Window-Ops2"
619 AddToMenu Window-Ops2   "Center"        Center
620 +                       "Move"          Move-or-Raise
621 +                       "Iconify"       Iconify
622 +                       "(Un)Stick"     Stick
623 +                       "Refresh"       RefreshWindow
624 +                       ""              Nop
625 +                       "Close"         Close
626 +                       "Delete"        Delete
627 +                       "Destroy"       Destroy
628 +                       ""              Nop
629 +                       "Resize"        Resize-or-Raise
630 +                       "Shade"         WindowShade
631 +                       "Raise/Lower"   RaiseLower
632 +                       ""              Nop
633 +                       "ScrollBar"     Module FvwmScroll 2 2
634 +                       "Print"         PrintFunction
635
636 AddToMenu Terminals     "Terminals" Title
637 +               "Grey term (koi8)" TERM_KOI8
638 +               "Grey term (utf8)" TERM_UTF8
639 +               "Grey term (koi8,btrt)" TERM_KOI8_BOTRT
640 +               "Grey term (utf8,btrt)" TERM_UTF8_BOTRT
641 +               "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
642 +                       ""      Nop
643 +               "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
644 +               "White/black term (utf8)" TERM_UTF8 -fg white -bg black
645
646 AddToMenu TermColors    "Term Colors" Title
647 +                       "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
648 +                       "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
649 +                       ""      Nop
650 +                       "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
651 +                       "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
652 +                       ""      Nop
653 +                       "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
654 +                       "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
655 +                       "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
656 +                       ""      Nop
657 +                       "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
658 +                       "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
659 +                       "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
660 +                       ""      Nop
661 +                       "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
662 +                       "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
663 +                       "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
664 +                       "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
665 +                       ""      Nop
666 +                       "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
667 +                       "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
668 +                       "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
669 +                       "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
670
671 AddToMenu Systems       "Systems" Title
672 +                       REMOTE_HOST_KOI8_MENU(phdru.name, phdru)
673 +                       REMOTE_HOST_UTF8_MENU(phdru.name, phdru)
674 +                       REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU)
675
676 AddToMenu FvwmCommands  "Fvwm Commands" Title
677 +                       "Restart" Restart
678 +                       "Raise all" Raise-All
679 #+                       "Restart Fvwm2" Restart fvwm2
680 #+                       "Start Fvwm"    Restart fvwm
681 +                       "Fvwm Setup"    Popup FvwmSetup
682 +                       "Fvwm Modules"  Popup FvwmModules
683 +                       "" Nop
684 +                       "Exit Fvwm"     Quit
685
686 AddToMenu FvwmSetup     "Fvwm Setup" Title
687 +                       "Start standard session" StartStandardSession
688 +                       "Change Scrolling"      Popup FvwmScroll
689
690 AddToMenu FvwmScroll    "Change Scroll Behavior" Title
691 +                       "OFF"   EdgeScroll 0 0
692 +                       "ON"    EdgeScroll 100 100
693 +                       "Horizontal Only"       EdgeScroll 100 0
694 +                       "Vertical Only"         EdgeScroll 0 100
695 +                       "Partial"               EdgeScroll 50 50
696
697 AddToMenu FvwmModules   "Fvwm Modules" Title
698 +                       "Animate"      Module FvwmAnimate
699 +                       "Auto"         Module FvwmAuto
700 +                       "Backer"       Module FvwmBacker
701 +                       "Banner"       Module FvwmBanner
702 +                       "Buttons"      Module FvwmButtons
703 +                       "Cascade"      Module FvwmCascade
704 +                       "CommandS"     Module FvwmCommandS
705 +                       "Console"      Module FvwmConsole
706 +                       "ConsoleC"     Module FvwmConsoleC -e FvwmConsoleC.pl
707 +                       "Cpp"          Module FvwmCpp
708 +                       "Debug"        Module FvwmDebug
709 +                       "DragWell"     Module FvwmDragWell
710 +                       "Event"        Module FvwmEvent
711 +                       "Form"         Module FvwmForm
712 +                       "Gtk"          Module FvwmGtk
713 +                       "IconBox"      Module FvwmIconBox
714 +                       "IconMan"      Module FvwmIconMan
715 +                       "Ident"        Module FvwmIdent
716 +                       "M4"           Module FvwmM4
717 +                       "Pager"        Module FvwmPager 0 2
718 +                       "Rearrange"    Module FvwmRearrange
719 +                       "Save"         Module FvwmSave
720 +                       "SaveDesk"     Module FvwmSaveDesk
721 +                       "Script"       Module FvwmScript
722 +                       "Scroll"       Module FvwmScroll
723 +                       "TaskBar"      Module FvwmTaskBar
724 +                       "Theme"        Module FvwmTheme
725 +                       "Tile"         Module FvwmTile
726 +                       "Wharf"        Module FvwmWharf
727 +                       "WinList"      Module FvwmWinList
728
729 # This is the root menu
730 AddToMenu RootMenu "Root Menu"  Title
731 +               "Terminals"     Popup Terminals
732 #+               "Color term"    Popup TermColors
733 +               "Systems"       Popup Systems
734 +               ""              Nop
735 +               "Browsers"      Popup Browsers
736 +               "Utilities"     Popup Utilities
737 #+               ""              Nop
738 #+               "Lock Screen"   Popup XlockMenu
739 +               "XScreenSaver"  Popup XScreenSaverMenu
740 #+               "Tv-tuner"      Popup Tv-tuner
741 +               ""              Nop
742 +               "XSetBg"        Popup XSetBgMenu
743 +               "Fvwm Commands" Popup FvwmCommands
744
745 # This menu will fire up some often used programs
746 DestroyMenu  Utilities
747 AddToMenu Utilities     "Choose one:" Title
748 +                       "FBReader" Exec exec fbreader
749 +                       "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim
750 +                       "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8  exec gvim
751 +                       "MyRuLb (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec "$HOME"/admin/prog/myrulib/myrulib
752 +                       "MyRuLb (utf8)" Exec LC_CTYPE=ru_RU.UTF-8  exec "$HOME"/admin/prog/myrulib/myrulib
753 #+                       "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
754 #+                       "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc
755 +                       ""       Nop
756 +                       "pavucontrol" PaVuControl
757 #+                       "audacious"   Audacious
758 +                       "DeadBeef"    DeadBeef
759 +                       "Id3Info"     Id3Info
760 +                       "Gajim"       Gajim
761 +                       "Pidgin"      Pidgin
762 +                       ""       Nop
763 +                       "xload"  Exec exec xload -geometry =136x136+0+0
764 +                       "Top"    TERM_KOI8 -T Top -n Top -e top
765 +                       ""       Nop
766 +                       "Refresh Screen" Refresh
767 +                       "xrefresh" Exec exec xrefresh
768 +                       ""       Nop
769 +                       "xcalc" Exec exec xcalc
770 +                       "xclipboard" Exec exec xclipboard
771 +                       "xcutsel" Exec exec xcutsel
772 #+                       "xman" Exec exec xman -notopbox -geometry +150+102
773 #+                       "emacs" Exec emacs -geometry 81x35+150+34
774 #+                       "xv" Function warp-or-run xv "Exec exec xv -ncols 240 -geometry +0+0"
775
776 DestroyMenu  Browsers
777 AddToMenu Browsers      "Choose one:" Title
778 +                       "FireFox" FireFox
779 +                       "Chromium" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium
780 +                       "Opera" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera
781
782 # A wide variety of screenlocking options...
783 #AddToMenu XlockMenu     "Choose one:" Title
784 #+                       "Hop" Exec exec xlock -mode hop
785 #+                       "Image" Exec exec xlock -mode image
786 #+                       "Life" Exec exec xlock -mode life
787 #+                       "Flame" Exec exec xlock -mode flame
788 #+                       "Pyro" Exec exec xlock -mode pyro
789 #+                       "Qix" Exec exec xlock -mode qix
790 #+                       "Rotor" Exec exec xlock -mode rotor
791 #+                       "Swarm" Exec exec xlock -mode swarm
792 #+                       "" Nop
793 #+                       "Random" Exec exec xlock -mode random
794 #+                       "Blank" Exec exec xlock -mode blank
795
796 AddToMenu XScreenSaverMenu     "Choose mode:" Title
797 +                       "Blank Screen Now" Exec exec xscreensaver-command -activate
798 +                       "Lock Screen Now"  Exec exec xscreensaver-command -lock
799 +                       "Screen Saver Demo" Exec exec xscreensaver-command -demo
800 +                       "Screen Saver Preferences"  Exec exec xscreensaver-command -prefs
801 +                       "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
802 +                       "" Nop
803 +                       "Launch Screen Saver"       Exec exec xscreensaver
804 +                       "Kill Screen Saver"         Exec exec xscreensaver-command -exit
805
806 AddToMenu XSetBgMenu    "XSetBg" Title
807 +                       "Change wallpaper" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-force
808 +                       "Start" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-start
809 +                       "Stop" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-stop
810 +                       "Restart" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-restart
811 +                       ""       Nop
812 changequote([,])
813 +                       "Xli" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
814 +                       "Xli (scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
815 +                       "Open in browser" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`"
816 +                       "Filename" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r
817 +                       "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
818 +                       "XFilename (wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
819 +                       ""       Nop
820 +                       "Xli (prev.)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
821 +                       "Xli (prev., scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
822 +                       "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r -o`"
823 changequote([`], ['])
824 +                       "Filename (prev.)" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r -o
825 +                       "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py -o | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
826 +                       "XFilename (prev., wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
827
828 ############################################################################
829 # FvwmBacker
830 #
831 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
832 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
833 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
834 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-change
835
836 ############################################################################
837 # FvwmButtons
838 #
839 # Colors
840 *FvwmButtons: Fore Black
841 *FvwmButtons: Back rgb:90/80/90
842
843 # Font
844 *FvwmButtonsFont        BUTTONS_FONT
845 *FvwmButtons: Font      BUTTONS_FONT
846
847 # Geometry-- really likes to pick its own size, but giving a position is OK
848 *FvwmButtons: Geometry -1+1
849
850 # Layout: specify rows or columns, not both
851 *FvwmButtons: Rows 2 #, Columns 5
852
853 # Transparent background
854 #*FvwmButtons: Pixmap none
855 # Background
856 #*FvwmButtons: Pixmap fvwm.xpm
857
858
859 # Define the buttons to use.....
860 #*FvwmButtons: Move              arrows2.xpm     Move
861 #*FvwmButtons: Kill              skull.xpm       Destroy
862 #*FvwmButtons: Quit              nuke.xpm        Popup "Quit-Verify"
863
864 #*FvwmButtons: (de)Iconify       eyenew.xpm      Iconify
865 #*FvwmButtons: Restart eye2.xpm     Restart
866 #*FvwmButtons: Xcalc   rcalc.xpm   Exec "Calculator" exec xcalc
867 #*FvwmButtons: junk   3dx.xpm     Swallow "xload"  xload -bg \#908090
868 #*FvwmButtons: xmter x.xpm            Swallow "xmter" xmter
869 #*FvwmButtons: ""  clock.xpm   Swallow "xclock" xclock -bg \#908090 -padding 0
870 #*FvwmButtons: "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0
871
872 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
873 #*FvwmButtons: news    page.xpm   TERM_KOI8 -title "Tin" -fn 10x20 -fg white -cr white -bg black -e tin
874 #*FvwmButtons: Minicom mini-connect.xpm TERM_KOI8 -title "Minicom" -fg white -cr white -bg black -e minicom
875 #*FvwmButtons: Real    bell.xpm    Exec cd /opt/audio && exec realplay
876 #*FvwmButtons: Kill    rbomb.xpm    Destroy
877
878
879 # Buttons
880 *FvwmButtons: (Title Term,     Icon rterm2.xpm,      Action TERM_KOI8)
881 *FvwmButtons: (Title UTF-8,    Icon rterm2.xpm,      Action TERM_UTF8)
882 *FvwmButtons: (Title phdru,    Icon xterm-sgi.xpm,   Action Term-Phdru)
883
884 *FvwmButtons: (Title Wallpaper, Icon find1.xpm,        Action Exec $HOME/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
885 *FvwmButtons: (Title "-1",      Icon find1.xpm,        Action Exec $HOME/current/projects/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
886 *FvwmButtons: (Title Next,      Icon Jrecycle.xpm,     Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force)
887 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action PaVuControl)
888 #*FvwmButtons: (Title Id3Info,  Icon bell.xpm,         Action Id3Info)
889 #*FvwmButtons: (Title Audacious, Icon bell.xpm,        Action Audacious)
890 *FvwmButtons: (Title DeadBeef,  Icon bell.xpm,         Action DeadBeef)
891 #*FvwmButtons: (Title SMPlayer,  Icon bell.xpm,        Action SMPlayer)
892 #*FvwmButtons: (Title XLock,     Icon Jxlock.xpm,      Action Exec exec xscreensaver-command -lock)
893
894 ############################################################################
895 # FvwmForm
896 #
897 # FvwmForm alias - rlogin to host via term
898 #FvwmForm Rlogin
899 #*Rlogin: WarpPointer
900 #*Rlogin: Font         *helvetica*m*r*n*14*
901 #*Rlogin: ButtonFont   *helvetica*m*o*n*14*
902 #*Rlogin: InputFont    *cour*m*r*n*14*
903 #*Rlogin: Fore         Black
904 #*Rlogin: Back         Light Gray
905 #*Rlogin: ItemFore          Wheat
906 #*Rlogin: ItemBack          Gray50
907 ## begin items
908 #*Rlogin: Line         center
909 #*Rlogin: Text         "Login to Remote Host"
910 #*Rlogin: Line         center
911 #*Rlogin: Text         "Host:"
912 #*Rlogin: Input        HostName  20   ""
913 #*Rlogin: Line         center
914 #*Rlogin: Selection    UserSel   single
915 #*Rlogin: Choice       Default   Default   on   "same user"
916 #*Rlogin: Choice       Custom    Custom    off  "user:"
917 #*Rlogin: Input        UserName  10   ""
918 #*Rlogin: Line         expand
919 #*Rlogin: Button       quit "Login" ^M
920 #*Rlogin: Command      TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
921 #*Rlogin: Button       restart   "Clear"
922 #*Rlogin: Command Beep
923 #*Rlogin: Button       quit "Cancel"
924 #*Rlogin: Command Nop
925 ##
926 ## FvwmForm alias - query exit ala mwm
927 #FvwmForm QuitVerify
928 #*QuitVerify: GrabServer
929 #*QuitVerify: WarpPointer
930 #*QuitVerify: Font          *helvetica*m*r*n*14*
931 ##*QuitVerify: ButtonFont    *helvetica*m*o*n*14*
932 #*QuitVerify: ButtonFont    7x13bold
933 #*QuitVerify: Fore          Black
934 #*QuitVerify: Back          Light Gray
935 #*QuitVerify: ItemFore Wheat
936 #*QuitVerify: ItemBack Gray50
937 ## begin items
938 #*QuitVerify: Line          center
939 #*QuitVerify: Text          "Do you really want to exit FVWM?"
940 #*QuitVerify: Line          expand
941 #*QuitVerify: Button   quit      " Exit "
942 #*QuitVerify: Command  Quit
943 #*QuitVerify: Button   quit      "Cancel"
944 #*QuitVerify: Command  Nop
945 #
946 ##
947 ## MyTalk & MyFvwmTalk from Dave Goldberg
948 ## MyTalk Form - dissappears after use
949 #FvwmForm MyTalk
950 #*MyTalk: WarpPointer
951 #*MyTalk: Font *helvetica*m*r*n*14*
952 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
953 #*MyTalk: InputFont *cour*m*r*n*14*
954 #*MyTalk: Fore Red
955 #*MyTalk: Back Gray
956 #*MyTalk: ItemFore Blue
957 #*MyTalk: ItemBack Gray
958 #*MyTalk: Line center
959 #*MyTalk: Text "Fvwm Function"
960 #*MyTalk: Input Func 40 ""
961 #*MyTalk: Line expand
962 #*MyTalk: Button quit "Run" ^M
963 #*MyTalk: Command $(Func)
964 #*MyTalk: Button restart "Clear" ^R
965 #*MyTalk: Button quit "Cancel" ^C
966 #*MyTalk: Command Nop
967 ##
968 ## MyFvwmTalk Form - sticks around
969 #FvwmForm MyFvwmTalk
970 #*MyFvwmTalk: WarpPointer
971 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
972 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
973 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
974 #*MyFvwmTalk: Fore Red
975 #*MyFvwmTalk: Back Gray
976 #*MyFvwmTalk: ItemFore Blue
977 #*MyFvwmTalk: ItemBack Gray
978 #*MyFvwmTalk: Line center
979 #*MyFvwmTalk: Text "Fvwm Function"
980 #*MyFvwmTalk: Input Func 40 ""
981 #*MyFvwmTalk: Line expand
982 #*MyFvwmTalk: Button restart "Run" ^M
983 #*MyFvwmTalk: Command $(Func)
984 #*MyFvwmTalk: Button restart "Clear" ^R
985 #*MyFvwmTalk: Command Nop
986 #*MyFvwmTalk: Button restart "Iconify" ^Z
987 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
988 #*MyFvwmTalk: Button quit "Quit" ^C
989 #*MyFvwmTalk: Command Nop
990
991 ############################################################################
992 # FvwmIconBox
993 #
994 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
995 *FvwmIconBox: IconBack    #cfcfcf
996 *FvwmIconBox: IconHiFore  black
997 *FvwmIconBox: IconHiBack  LightSkyBlue
998 *FvwmIconBox: Back        #5f9ea0
999 #*FvwmIconBox: Fore       blue
1000 *FvwmIconBox: Geometry    5x1+0+0
1001 *FvwmIconBox: MaxIconSize 64x38
1002 *FvwmIconBox: Font        ICON_BOX_FONT
1003 *FvwmIconBox: SortIcons   IconName
1004 *FvwmIconBox: Padding     4
1005 *FvwmIconBox: Lines       10
1006 *FvwmIconBox: SBWidth     11
1007 *FvwmIconBox: Placement   Left Top
1008 *FvwmIconBox: Pixmap      fvwm.xpm
1009 #*FvwmIconBox: HideSC Horizontal
1010 *FvwmIconBox: SetWMIconSize
1011 *FvwmIconBox: HilightFocusWin
1012 #*FvwmIconBox: Resolution          Desk
1013 *FvwmIconBox: Mouse       1       Click           RaiseLower
1014 *FvwmIconBox: Mouse       1       DoubleClick     Iconify
1015 *FvwmIconBox: Mouse       2       Click           Iconify -1, Focus
1016 *FvwmIconBox: Mouse       3       Click           Module FvwmIdent
1017 *FvwmIconBox: Key         r       RaiseLower
1018 *FvwmIconBox: Key         space   Iconify
1019 *FvwmIconBox: Key         d       Close
1020 *FvwmIconBox: Key         n       Next
1021 *FvwmIconBox: Key         p       Prev
1022 *FvwmIconBox: Key         h       Left
1023 *FvwmIconBox: Key         j       Down
1024 *FvwmIconBox: Key         k       Up
1025 *FvwmIconBox: Key         l       Right
1026
1027 ############################################################################
1028 # FvwmIdent
1029 #
1030 # Give us colors and a fonts
1031 *FvwmIdent: Back MidnightBlue
1032 *FvwmIdent: Fore Yellow
1033 *FvwmIdent: Font IDENT_FONT
1034
1035 ############################################################################
1036 # FvwmPager
1037 #
1038 *FvwmPager: Back #908090
1039 *FvwmPager: Fore #484048
1040 *FvwmPager: Font TITLE_FONT
1041 *FvwmPager: Hilight #cab3ca
1042 *FvwmPager: Geometry PAGER_GEOM
1043 *FvwmPager: Label 0 System
1044 *FvwmPager: Label 1 Net
1045 *FvwmPager: Label 2 Work
1046 *FvwmPager: SmallFont PAGER_FONT
1047
1048 *FvwmPager: Balloons All
1049 *FvwmPager: BalloonBack #efe3b5
1050 *FvwmPager: BalloonFore Black
1051 *FvwmPager: BalloonFont ICON_FONT
1052 *FvwmPager: BalloonYOffset +2
1053 *FvwmPager: BalloonBorderWidth 1
1054 *FvwmPager: BalloonBorderColor Black
1055
1056 ############################################################################
1057 # FvwmScroll
1058 #
1059 *FvwmScroll: Back grey40
1060 *FvwmScroll: Fore green
1061
1062 ############################################################################
1063 # FvwmWinList
1064 #
1065 *FvwmWinList: Back #908090
1066 *FvwmWinList: Fore Black
1067 *FvwmWinList: Font WIN_LIST_FONT
1068 *FvwmWinList: Action Click1 Iconify -1, Focus
1069 *FvwmWinList: Action Click2 Iconify
1070 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1071 *FvwmWinList: UseSkipList
1072 *FvwmWinList: Geometry +10-10