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