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