]> git.phdru.name Git - dotfiles.git/blob - .fvwm/phd.m4
ec00a0238d5dfcc9c0047602ff1418b8900b9e4f
[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(`VERY_SMALL_FONT', `xft:Sans:size=10')
30 define(`SMALL_FONT', `xft:Sans:size=12')
31 define(`MEDIUM_FONT', `xft:Sans:size=14')
32 define(`BIG_FONT', `xft:Sans:size=16')
33 define(`LARGE_FONT', `xft:Sans:size=18')
34 define(`HUGE_FONT', `xft:Sans:size=20')
35
36 dnl Bold TT fonts
37 define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold')
38 define(`MEDIUM_BOLD_FONT', MEDIUM_FONT`:Bold')
39 define(`BIG_BOLD_FONT', BIG_FONT`:Bold')
40
41 define(`TITLE_FONT', MEDIUM_FONT)
42 define(`ICON_FONT', LARGE_FONT)
43
44 dnl Font and geometry aliases that depend on whether the screen resolution is
45 dnl 800x600, 1024x768 or 1920x1200
46
47 define(`PAGER_GEOM',
48 ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',
49        eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'))
50
51 define(`SMALL_PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, VERY_SMALL_FONT, SMALL_FONT))
52 define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT))
53 define(`BUTTONS_FONT', PAGER_FONT)
54
55
56 define(`MENU_FONT',
57 ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',
58        eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'))
59 define(`IDENT_FONT', MENU_FONT)
60 define(`WIN_LIST_FONT', MENU_FONT)
61 define(`ICON_BOX_FONT', MENU_FONT)
62
63
64 dnl XSetBg message width and font
65 define(`TEXT_WIDTH',
66 ifelse(eval(WIDTH < 1024), 1, 70,
67        eval(WIDTH < 1920), 1, 75, 80))
68
69 define(`MESSAGE_FONT', `Nimbus Sans L 18')
70
71
72 dnl Terminal emulator
73 define(`TERM_GEOM',
74 ifelse(eval(WIDTH < 1024), 1, `80x25',
75        eval(WIDTH < 1920), 1, `80x30', `80x32'))
76
77 define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0')
78 define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0')
79
80 define(`TERM_GEOM_BIG',
81 ifelse(eval(WIDTH < 1024), 1, `96x30',
82        eval(WIDTH < 1920), 1, `112x32', `126x35'))
83
84
85 define(`TERM', `urxvt')
86 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
87 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
88 define(`TERM_KOI8_BOTLT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTLT')
89 define(`TERM_UTF8_BOTLT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTLT')
90 define(`TERM_KOI8_BOTRT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTRT')
91 define(`TERM_UTF8_BOTRT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTRT')
92
93
94 define(`REMOTE_HOST_KOI8',
95 TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1")
96
97 define(`REMOTE_HOST_KOI8_MENU',
98 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2))
99
100 define(`REMOTE_HOST_KOI8_BOTLT',
101 TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1")
102
103 define(`REMOTE_HOST_KOI8_BOTRT',
104 TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1")
105
106 define(`REMOTE_HOST_KOI8_BOTLT_MENU',
107 "$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2))
108
109 define(`REMOTE_HOST_KOI8_BOTRT_MENU',
110 "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2))
111
112 define(`REMOTE_HOST_UTF8',
113 TERM_UTF8 -e ssh -4 "$1")
114
115 define(`REMOTE_HOST_UTF8_MENU',
116 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2))
117
118 define(`REMOTE_HOST_UTF8_BOTLT',
119 TERM_UTF8_BOTLT -e ssh -4 "$1")
120
121 define(`REMOTE_HOST_UTF8_BOTRT',
122 TERM_UTF8_BOTRT -e ssh -4 "$1")
123
124 define(`REMOTE_HOST_UTF8_BOTLT_MENU',
125 "$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2))
126
127 define(`REMOTE_HOST_UTF8_BOTRT_MENU',
128 "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2))
129
130 define(`REMOTE_HOST_KOI8_BIG',
131 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1")
132
133 define(`REMOTE_HOST_KOI8_BIG_MENU',
134 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2))
135 divert
136
137 ##########################################################################
138 # PATH Setup
139 #
140 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
141 #ModulePath /usr/lib/fvwm
142 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons
143
144 ############################################################################
145 # COLORS and FONTS
146 #
147 # Set the fore and back border colors for the window that has focus
148 Style * HilightFore Black, HilightBack #c06077
149
150 # Set fore/back border colors for all other windows
151 Style * Color Black/#60a0c0
152
153 # Set colors/font for pop-up menus
154 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
155 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT
156
157 # Set fonts to use on title bar and icon label
158 Style * Font              TITLE_FONT
159
160 ############################################################################
161 # ICON Setup
162 #
163 # If you don't want icons for some or all windows (or all of them!)
164 # Style * !Icon
165
166 # If you want ALL icons to follow you around the desktop (Sticky)
167 #Style * StickyIcon
168
169 # Auto Place Icons is a nice feature (Left Top Right Bottom)
170 #Style * IconBox 10 -75 -10 -0
171
172 Style * IconFont          ICON_FONT
173
174 ############################################################################
175 # FOCUS Setup
176 #
177 # Does the window with focus control the colormap, or the one under the mouse
178 ColormapFocus FollowsMouse
179
180 # Uncomment this to force you to click in a window to give it focus
181 #Style * ClickToFocus
182
183 # default: focus follows mouse
184 #Style * MouseFocus
185 #Style * FocusFollowsMouse
186
187 # If you knock your mouse out of the term, it keeps focus while in root window
188 Style *           SloppyFocus
189
190 ############################################################################
191 # MISC Setup
192 #
193 # click/release must occur in <n milliseconds to be a "click"
194 ClickTime 250
195
196 # if the window occupies less than n% of the screen, draw it opaque
197 OpaqueMoveSize 100
198
199 # Do not flip pages on the edge of the screen, but allow to move windows
200 EdgeScroll 0 0
201 EdgeResistance 10000
202 Style * EdgeMoveDelay 500
203 Style * EdgeMoveResistance 100
204
205 # MWM Emulation: Don't ignore hints for functions and transient decoration
206 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
207 Style * MWMFunctions, MWMDecor, MWMButtons
208
209 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
210 XORvalue 80
211
212 ###########################################################################
213 # PAGER Setup
214 #
215 # set the desk top size in units of physical screen size (width x height)
216 DesktopSize 2 2
217
218 ############################################################################
219 # WINDOW Placement
220 #
221 Style * PositionPlacement Center
222
223 ############################################################################
224 # STYLE Flag Setup
225 #
226 # (decorations and window options)
227 # Note: Order is important!! If compatible styles are set, styles are ORed
228 # together. If conflicting styles are set, the last one specified is used.
229
230 # change the default width, set a global icon, and give borders to popups
231 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
232 Style * DecorateTransient, ClickToFocusRaisesOff
233
234 Style "Fvwm*"           !Title, Sticky, WindowListSkip
235 Style "FvwmButtons"     !Handles, BorderWidth 0
236
237 # Terminals
238 Style "*term"           Icon term.xpm
239 Style "*rxvt"           Icon term.xpm
240 Style "term-im-local"   Icon pidgin-menu.xpm
241 Style "term-im-remote"  Icon rcalc2.xpm
242 Style "term-im-*"       IconBox 630 -75 -2 -2, IconGrid 200 80
243 Style "term-im-*"       StartsOnPage 1 1 0, StartIconic
244
245 # Browsers' windows
246 Style "Certificate Manager" PositionPlacement Center
247 Style "*Downloads"      PositionPlacement 50-50w +5
248 Style "*Mozilla*"       PositionPlacement +0 -0
249
250 Style "*Chromium*"      PositionPlacement +0 -0
251
252 # IM
253 Style "Gajim"           PositionPlacement +0 -0
254 Style "* - Gajim"       MinOverlapPercentPlacement
255 # Pidgin
256 Style "Buddy List"      PositionPlacement +0 -0
257 Style "*Pidgin*"        MinOverlapPercentPlacement
258
259 # (S)MPlayer
260 Style "*MPlayer*"       Layer 6, PositionPlacement 350p 100p
261
262 Style "*clock"          !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p
263 Style "emacs"           NoPPosition
264 Style "gxmessage"       PositionPlacement 50-50w +20
265 Style "*lock"           !Title, Sticky, WindowListSkip
266 Style "Mosaic"          NoPPosition
267 Style "xbiff"           Icon mail1.xpm, !Title, Sticky, WindowListSkip
268 Style "xcalc"           Icon xcalc.xpm
269 Style "xconsole"        !Title, Sticky, WindowListSkip, NeverFocus
270 Style "xload"           !Title, Sticky, WindowListSkip, NeverFocus
271 Style "xman"            Icon xman.xpm
272 Style "xmh"             Icon mail2.xpm
273 Style "xsession"        !Title, Sticky, WindowListSkip, ClickToFocus
274 Style "XXkb"            !Title, !Borders, Sticky, WindowListSkip, Layer 5
275
276 ############################################################################
277 # BUTTON Setup
278 #
279
280 ## Buttons actually being used (duplicated below)
281 # small up triangle
282 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
283 # small down triangle
284 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
285 # Stylized X
286 #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
287
288 ## Triangles
289 #
290 # Small up Triangle
291 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
292 # Small down Triangle
293 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
294 # Large up Triangle
295 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
296 # Large down Triangle
297 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
298
299 ## Boxes
300 #
301 # Big Box
302 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
303 # Little Box
304 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
305 # Tall Box
306 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
307 # Dot
308 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
309 # Big Box with arrow (left-up to right-down) to little box (iconify)
310 #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
311 # Big Box with arrow (right-up to left-down) to little box (iconify)
312 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
313
314 ## X's
315 #
316 # Standard X
317 #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
318 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
319 # Funky X
320 #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
321 # Stylized X
322 #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
323
324 ## Lightning Bolts
325 #
326 # Small Lightning Bolt (skinny at both ends)
327 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
328 # Big Lighting Bolt (Fat at top, comes to a point)
329 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
330
331 ## Miscellaneous Buttons
332 #
333 # Nested Right Angles (looks kinda crappy)
334 #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
335 # Nested Right Angles (looks nice)
336 #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
337 # 4 Horizontal bars (sticky)
338 #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
339 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
340 # Expanding Windows (iconify -- looks NICE)
341 #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
342
343 ## Arrows Galore
344 #
345 # Up Arrow
346 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
347 # Down Arrow
348 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
349 # Left arrow  ( <- )
350 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
351 # Right arrow ( -> )
352 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
353 # Horizontal Line with arrowheads on left and right ( <-> )
354 #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
355 # Vertical Line with arrowheads on top and bottom
356 #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
357 # Diagonal Line with arrowheads on top and bottom ( / )
358 #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
359 # Diagonal Line with arrowheads on top and bottom ( \ )
360 #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
361 #
362 # the number "2"
363 #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
364
365 ############################################################################
366 # MOUSE Setup
367 #
368 # First, the root window. Button 1 brings up the Main Menu. B2 is the
369 # window operations list, and B3 is the winlist module
370 #     Button    Context Modifi  Function
371 Mouse 1         R       A       Menu RootMenu Nop
372 Mouse 2         R       A       Menu Window-Ops Nop
373 Mouse 3         R       A       WindowList
374
375 # Now, title bar buttons
376 # Left button is the Window-Ops2 menu
377 #     Button    Context Modifi  Function
378 Mouse 0         1       A       Menu Window-Ops2 Close
379 Mouse 0         3       A       Stick
380 Mouse 0         5       A       Center
381 # Right buttonsare iconify/maximize, rightmost is close
382 Mouse 0         2       A       Close
383 Mouse 0         4       A       Maximize toggle
384 Mouse 0         6       A       Iconify
385
386 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
387 # de-iconify, and on Top does a move-or-raise
388 #     Button    Context Modifi  Function
389 Mouse 1         F       A       Resize-or-Raise
390 Mouse 1         S       A       Move-or-Raise
391 Mouse 1         I       A       Move-or-Iconify
392 #Mouse 1                T       A       Move-or-Raise
393 Mouse 1         T       A       Shadify
394
395 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
396 #     Button    Context Modifi  Function
397 Mouse 2         I       A       Iconify
398 Mouse 2         FST     A       Menu Window-Ops2 Nop
399
400 # Button 3 does a raise-lower on anything
401 Mouse 3         TSIF    A       RaiseLower
402
403 ############################################################################
404 # KEYBOARD Setup
405
406 #
407 # press arrow + control + meta anywhere, and scroll by 1 page
408 Key Left        A       CM      Scroll -100 +0
409 Key Right       A       CM      Scroll +100 +0
410 Key Up          A       CM      Scroll +0   -100
411 Key Down        A       CM      Scroll +0   +100
412
413 # press arrow + meta key, and scroll by 1/10 of a page
414 Key Left        A       M       Scroll -10   +0
415 Key Right       A       M       Scroll +10   +0
416 Key Up          A       M       Scroll  +0  -10
417 Key Down        A       M       Scroll  +0  +10
418
419 # press shift arrow + control anywhere, and move the pointer by 1% of a page
420 Key Left        A       SC      CursorMove -1  +0
421 Key Right       A       SC      CursorMove +1  +0
422 Key Up          A       SC      CursorMove +0  -1
423 Key Down        A       SC      CursorMove +0  +1
424
425 # press shift arrow + meta key, and move the pointer by 1/10 of a page
426 Key Left        A       SM      CursorMove -10  +0
427 Key Right       A       SM      CursorMove +10  +0
428 Key Up          A       SM      CursorMove +0  -10
429 Key Down        A       SM      CursorMove +0  +10
430
431 # Switch window, mswindows style :)
432 Key Tab         A       M       Next [*] focus
433 Key Escape      A       M       Prev [*] focus
434
435 # Goto desktop/page
436 Key 1           A       CM      Desk 0 0
437 Key 2           A       CM      Desk 0 1
438 Key 3           A       CM      Desk 0 2
439 Key 4           A       CM      Desk 0 3
440 Key 5           A       CM      GotoPage 0 0
441 Key 6           A       CM      GotoPage 1 0
442 Key 7           A       CM      GotoPage 0 1
443 Key 8           A       CM      GotoPage 1 1
444
445 #############################################################################
446 # START-UP Functions
447 #
448 DestroyFunc InitFunction
449 AddToFunc InitFunction
450 +              I Module FvwmBacker
451 +              I Module FvwmButtons
452 +              I Module FvwmCommandS
453 +              I Module FvwmPager 0 2
454
455 DestroyFunc RestartFunction
456 AddToFunc RestartFunction
457 +              I Module FvwmBacker
458 +              I Module FvwmButtons
459 +              I Module FvwmCommandS
460 +              I Module FvwmPager 0 2
461 +              I Schedule 1000 Raise-All
462
463 DestroyFunc UrgencyFunc
464 AddToFunc UrgencyFunc
465 +                             I Iconify off
466 +                             I ThisWindow ("*Downloads") Break
467 +                             I FlipFocus
468 +                             I Raise
469 +                             I WarpToWindow 5p 5p
470
471 DestroyFunc StartStandardSession
472 AddToFunc StartStandardSession
473 +              I GotoDeskAndPage 0 0 0
474 +              I TERM_KOI8
475 +              I Wait TERM
476 +              I GotoDeskAndPage 0 0 1
477 +              I TERM_UTF8 -geometry 38x30+0-0
478 +              I Wait URxvt
479 +              I GotoDeskAndPage 0 1 0
480 +              I TERM_KOI8 -e su -
481 +              I Wait TERM
482 +              I PaVuControl
483 +              I Wait "Volume Control"
484 +              I FireFox-Wait
485 +              I GotoDeskAndPage 1 0 1
486 +              I TERM_KOI8
487 +              I Wait TERM
488 +              I GotoDeskAndPage 2 0 1
489 +              I TERM_KOI8 -geometry TERM_GEOM_BIG
490 +              I Wait TERM
491 +              I Gajim
492 +              I Wait Gajim
493 +              I TERM_UTF8 -iconic -name term-im-remote
494 +              I Wait URxvt
495 +              I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
496 +              I Wait URxvt
497 +              I GotoDeskAndPage 1 1 0
498 +              I Schedule 1000 GotoDeskAndPage 0 1 0
499
500 DestroyFunc ResumeFunction
501 AddToFunc ResumeFunction
502 +              I GotoDeskAndPage 0 0 0
503 +              I TERM_KOI8
504 +              I Wait TERM
505 +              I PaVuControl
506 +              I Wait "Volume Control"
507 +              I 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 -
508 +              I Wait gxmessage
509 +              I None ("*Mozilla Firefox") FireFox-Wait
510 +              I GotoDeskAndPage 0 1 0
511
512 ############################################################################
513 # COMPLEX FUNCTIONS
514 #
515 DestroyFunc Center
516 AddToFunc Center                I Move 50-50w 50-50w
517 +                               I WarpToWindow 74p 18p
518
519 DestroyFunc Iconify-and-Raise
520 AddToFunc Iconify-and-Raise     I Iconify
521 +                               I Raise
522
523 DestroyFunc Maximize-Func
524 AddToFunc Maximize-Func         C Maximize     toggle
525 +                               D Maximize     100 100
526
527 DestroyFunc Move-or-Iconify
528 AddToFunc Move-or-Iconify       I Raise
529 +                               M Move
530 +                               D Iconify
531
532 DestroyFunc Move-or-Raise
533 AddToFunc Move-or-Raise         I Raise
534 +                               M Move
535 +                               D Lower
536
537 DestroyFunc Move-or-Raise2
538 AddToFunc Move-or-Raise2        M Raise
539 +                               M Move
540 +                               D Lower
541
542 DestroyFunc Resize-or-Raise
543 AddToFunc Resize-or-Raise       I Raise
544 +                               M Resize
545 +                               D Lower
546
547 DestroyFunc Resize-or-Raise2
548 AddToFunc Resize-or-Raise2      M Raise
549 +                               M Resize
550 +                               D Lower
551
552 DestroyFunc Shadify
553 AddToFunc Shadify               D WindowShade
554 +                               M Move
555 +                               C RaiseLower
556
557 DestroyFunc warp-or-run
558 AddToFunc warp-or-run           I Next [$0 CirculateHit] Iconify -1
559 +                               I Next [$0 CirculateHit] Focus
560 +                               I None [$0] $1
561
562 DestroyFunc MailFunction
563 AddToFunc MailFunction          I Next [$0] Iconify -1
564 +                               I Next [$0] focus
565 +                               I None [$0] Exec exec $0 $1
566
567 DestroyFunc PrintFunction
568 AddToFunc PrintFunction         I Raise
569 +                               I Exec exec xdpr -id $w
570
571 DestroyFunc Raise-All
572 AddToFunc Raise-All           I All (!"FvwmButtons|System|*clock") Raise
573
574 ##############################################################################
575 # User-defined functions
576 #
577
578 DestroyFunc PaVuControl
579 AddToFunc PaVuControl         I GotoDeskAndPage 0 1 1
580 +                             I Exec exec pavucontrol
581
582 changequote([,])
583 DestroyFunc Id3Info
584 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 -
585 changequote([`], ['])
586
587 #DestroyFunc Audacious
588 #AddToFunc Audacious           I GotoDeskAndPage 0 1 1
589 #+                             I Exec LC_CTYPE=ru_RU.UTF-8 exec audacious
590
591 DestroyFunc DeadBeef
592 AddToFunc DeadBeef            I GotoDeskAndPage 0 1 1
593 +                             I Exec exec deadbeef
594
595 DestroyFunc SMPlayer
596 AddToFunc SMPlayer            I GotoDeskAndPage 0 1 1
597 +                             I Exec exec smplay -no-close-at-end
598
599 DestroyFunc Term-Phdru
600 AddToFunc Term-Phdru          I GotoDeskAndPage 1 0 1
601 +                             I REMOTE_HOST_KOI8(phdru.name, phdru.name)
602
603 DestroyFunc Term-Phdru-Big
604 AddToFunc Term-Phdru-Big      I GotoDeskAndPage 1 0 1
605 +                             I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
606
607 DestroyFunc FireFox
608 AddToFunc FireFox             I Any ("*Mozilla Firefox") Break
609 +                             I GotoDeskAndPage 1 0 0
610 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
611
612 DestroyFunc FireFox-Wait
613 AddToFunc FireFox-Wait        I Any ("*Mozilla Firefox") Break
614 +                             I FireFox
615 +                             I Wait "*Mozilla Firefox"
616
617 DestroyFunc Gajim
618 AddToFunc Gajim               I GotoDeskAndPage 1 1 0
619 +                             I Exec exec gajim
620
621 DestroyFunc Pidgin
622 AddToFunc Pidgin              I GotoDeskAndPage 1 1 0
623 +                             I Exec exec pidgin
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" None ("*Chromium") Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium
809 +                       "Opera" None ("*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 # Define the buttons to use.....
888 #*FvwmButtons: Move              arrows2.xpm     Move
889 #*FvwmButtons: Kill              skull.xpm       Destroy
890 #*FvwmButtons: Quit              nuke.xpm        Popup "Quit-Verify"
891
892 #*FvwmButtons: (de)Iconify       eyenew.xpm      Iconify
893 #*FvwmButtons: Restart eye2.xpm     Restart
894 #*FvwmButtons: Xcalc   rcalc.xpm   Exec "Calculator" exec xcalc
895 #*FvwmButtons: junk   3dx.xpm     Swallow "xload"  xload -bg \#908090
896 #*FvwmButtons: xmter x.xpm            Swallow "xmter" xmter
897 #*FvwmButtons: ""  clock.xpm   Swallow "xclock" xclock -bg \#908090 -padding 0
898 #*FvwmButtons: "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0
899
900 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
901 #*FvwmButtons: news    page.xpm   TERM_KOI8 -title "Tin" -fn 10x20 -fg white -cr white -bg black -e tin
902 #*FvwmButtons: Minicom mini-connect.xpm TERM_KOI8 -title "Minicom" -fg white -cr white -bg black -e minicom
903 #*FvwmButtons: Real    bell.xpm    Exec cd /opt/audio && exec realplay
904 #*FvwmButtons: Kill    rbomb.xpm    Destroy
905
906 # Buttons
907 *FvwmButtons: (Title Term,     Icon rterm2.xpm,      Action TERM_KOI8)
908 *FvwmButtons: (Title UTF-8,    Icon rterm2.xpm,      Action TERM_UTF8)
909 *FvwmButtons: (Title phdru,    Icon xterm-sgi.xpm,   Action Term-Phdru)
910
911 *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 -)
912 *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 -)
913 *FvwmButtons: (Title Next,      Icon Jrecycle.xpm,     Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force)
914 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action PaVuControl)
915 #*FvwmButtons: (Title Id3Info,  Icon bell.xpm,         Action Id3Info)
916 #*FvwmButtons: (Title Audacious, Icon bell.xpm,        Action Audacious)
917 *FvwmButtons: (Title DeadBeef,  Icon bell.xpm,         Action DeadBeef)
918 #*FvwmButtons: (Title SMPlayer,  Icon bell.xpm,        Action SMPlayer)
919 #*FvwmButtons: (Title XLock,     Icon Jxlock.xpm,      Action Exec exec xscreensaver-command -lock)
920
921 ############################################################################
922 # FvwmForm
923 #
924 # FvwmForm alias - rlogin to host via term
925 #FvwmForm Rlogin
926 #*Rlogin: WarpPointer
927 #*Rlogin: Font         *helvetica*m*r*n*14*
928 #*Rlogin: ButtonFont   *helvetica*m*o*n*14*
929 #*Rlogin: InputFont    *cour*m*r*n*14*
930 #*Rlogin: Fore         Black
931 #*Rlogin: Back         Light Gray
932 #*Rlogin: ItemFore          Wheat
933 #*Rlogin: ItemBack          Gray50
934 ## begin items
935 #*Rlogin: Line         center
936 #*Rlogin: Text         "Login to Remote Host"
937 #*Rlogin: Line         center
938 #*Rlogin: Text         "Host:"
939 #*Rlogin: Input        HostName  20   ""
940 #*Rlogin: Line         center
941 #*Rlogin: Selection    UserSel   single
942 #*Rlogin: Choice       Default   Default   on   "same user"
943 #*Rlogin: Choice       Custom    Custom    off  "user:"
944 #*Rlogin: Input        UserName  10   ""
945 #*Rlogin: Line         expand
946 #*Rlogin: Button       quit "Login" ^M
947 #*Rlogin: Command      TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
948 #*Rlogin: Button       restart   "Clear"
949 #*Rlogin: Command Beep
950 #*Rlogin: Button       quit "Cancel"
951 #*Rlogin: Command Nop
952 ##
953 ## FvwmForm alias - query exit ala mwm
954 #FvwmForm QuitVerify
955 #*QuitVerify: GrabServer
956 #*QuitVerify: WarpPointer
957 #*QuitVerify: Font          *helvetica*m*r*n*14*
958 ##*QuitVerify: ButtonFont    *helvetica*m*o*n*14*
959 #*QuitVerify: ButtonFont    7x13bold
960 #*QuitVerify: Fore          Black
961 #*QuitVerify: Back          Light Gray
962 #*QuitVerify: ItemFore Wheat
963 #*QuitVerify: ItemBack Gray50
964 ## begin items
965 #*QuitVerify: Line          center
966 #*QuitVerify: Text          "Do you really want to exit FVWM?"
967 #*QuitVerify: Line          expand
968 #*QuitVerify: Button   quit      " Exit "
969 #*QuitVerify: Command  Quit
970 #*QuitVerify: Button   quit      "Cancel"
971 #*QuitVerify: Command  Nop
972 #
973 ##
974 ## MyTalk & MyFvwmTalk from Dave Goldberg
975 ## MyTalk Form - dissappears after use
976 #FvwmForm MyTalk
977 #*MyTalk: WarpPointer
978 #*MyTalk: Font *helvetica*m*r*n*14*
979 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
980 #*MyTalk: InputFont *cour*m*r*n*14*
981 #*MyTalk: Fore Red
982 #*MyTalk: Back Gray
983 #*MyTalk: ItemFore Blue
984 #*MyTalk: ItemBack Gray
985 #*MyTalk: Line center
986 #*MyTalk: Text "Fvwm Function"
987 #*MyTalk: Input Func 40 ""
988 #*MyTalk: Line expand
989 #*MyTalk: Button quit "Run" ^M
990 #*MyTalk: Command $(Func)
991 #*MyTalk: Button restart "Clear" ^R
992 #*MyTalk: Button quit "Cancel" ^C
993 #*MyTalk: Command Nop
994 ##
995 ## MyFvwmTalk Form - sticks around
996 #FvwmForm MyFvwmTalk
997 #*MyFvwmTalk: WarpPointer
998 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
999 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
1000 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
1001 #*MyFvwmTalk: Fore Red
1002 #*MyFvwmTalk: Back Gray
1003 #*MyFvwmTalk: ItemFore Blue
1004 #*MyFvwmTalk: ItemBack Gray
1005 #*MyFvwmTalk: Line center
1006 #*MyFvwmTalk: Text "Fvwm Function"
1007 #*MyFvwmTalk: Input Func 40 ""
1008 #*MyFvwmTalk: Line expand
1009 #*MyFvwmTalk: Button restart "Run" ^M
1010 #*MyFvwmTalk: Command $(Func)
1011 #*MyFvwmTalk: Button restart "Clear" ^R
1012 #*MyFvwmTalk: Command Nop
1013 #*MyFvwmTalk: Button restart "Iconify" ^Z
1014 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
1015 #*MyFvwmTalk: Button quit "Quit" ^C
1016 #*MyFvwmTalk: Command Nop
1017
1018 ############################################################################
1019 # FvwmIconBox
1020 #
1021 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
1022 *FvwmIconBox: IconBack    #cfcfcf
1023 *FvwmIconBox: IconHiFore  black
1024 *FvwmIconBox: IconHiBack  LightSkyBlue
1025 *FvwmIconBox: Back        #5f9ea0
1026 #*FvwmIconBox: Fore       blue
1027 *FvwmIconBox: Geometry    5x1+0+0
1028 *FvwmIconBox: MaxIconSize 64x38
1029 *FvwmIconBox: Font        ICON_BOX_FONT
1030 *FvwmIconBox: SortIcons   IconName
1031 *FvwmIconBox: Padding     4
1032 *FvwmIconBox: Lines       10
1033 *FvwmIconBox: SBWidth     11
1034 *FvwmIconBox: Placement   Left Top
1035 *FvwmIconBox: Pixmap      fvwm.xpm
1036 #*FvwmIconBox: HideSC Horizontal
1037 *FvwmIconBox: SetWMIconSize
1038 *FvwmIconBox: HilightFocusWin
1039 #*FvwmIconBox: Resolution          Desk
1040 *FvwmIconBox: Mouse       1       Click           RaiseLower
1041 *FvwmIconBox: Mouse       1       DoubleClick     Iconify
1042 *FvwmIconBox: Mouse       2       Click           Iconify -1, Focus
1043 *FvwmIconBox: Mouse       3       Click           Module FvwmIdent
1044 *FvwmIconBox: Key         r       RaiseLower
1045 *FvwmIconBox: Key         space   Iconify
1046 *FvwmIconBox: Key         d       Close
1047 *FvwmIconBox: Key         n       Next
1048 *FvwmIconBox: Key         p       Prev
1049 *FvwmIconBox: Key         h       Left
1050 *FvwmIconBox: Key         j       Down
1051 *FvwmIconBox: Key         k       Up
1052 *FvwmIconBox: Key         l       Right
1053
1054 ############################################################################
1055 # FvwmIdent
1056 #
1057 # Give us colors and a fonts
1058 *FvwmIdent: Back MidnightBlue
1059 *FvwmIdent: Fore Yellow
1060 *FvwmIdent: Font IDENT_FONT
1061
1062 ############################################################################
1063 # FvwmPager
1064 #
1065 *FvwmPager: Back #908090
1066 *FvwmPager: Fore #484048
1067 *FvwmPager: Font TITLE_FONT
1068 *FvwmPager: Hilight #cab3ca
1069 *FvwmPager: Geometry PAGER_GEOM
1070 *FvwmPager: Label 0 System
1071 *FvwmPager: Label 1 Net
1072 *FvwmPager: Label 2 Work
1073 *FvwmPager: SmallFont SMALL_PAGER_FONT
1074
1075 *FvwmPager: Balloons All
1076 *FvwmPager: BalloonBack #efe3b5
1077 *FvwmPager: BalloonFore Black
1078 *FvwmPager: BalloonFont ICON_FONT
1079 *FvwmPager: BalloonYOffset +2
1080 *FvwmPager: BalloonBorderWidth 1
1081 *FvwmPager: BalloonBorderColor Black
1082
1083 ############################################################################
1084 # FvwmScroll
1085 #
1086 *FvwmScroll: Back grey40
1087 *FvwmScroll: Fore green
1088
1089 ############################################################################
1090 # FvwmWinList
1091 #
1092 *FvwmWinList: Back #908090
1093 *FvwmWinList: Fore Black
1094 *FvwmWinList: Font WIN_LIST_FONT
1095 *FvwmWinList: Action Click1 Iconify -1, Focus
1096 *FvwmWinList: Action Click2 Iconify
1097 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1098 *FvwmWinList: UseSkipList
1099 *FvwmWinList: Geometry +10-10