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