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