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