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