1 ##########################################################################
2 # FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
5 dnl The file is in m4 format, use FvwmM4 module to read it
6 dnl like this: ModuleSynchronous FvwmM4 -lock .fvwm2rc
8 dnl This is to prevent FvwmM4 to shadow $HOME
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')
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')
25 dnl define(`XBUFFY_FONT', `-cronyx-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r')
29 define(`SMALL_FONT', `xft:Sans:size=12')
30 define(`MEDIUM_FONT', `xft:Sans:size=14')
31 define(`BIG_FONT', `xft:Sans:size=16')
32 define(`LARGE_FONT', `xft:Sans:size=18')
33 define(`HUGE_FONT', `xft:Sans:size=20')
36 define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold')
37 define(`MEDIUM_BOLD_FONT', MEDIUM_FONT`:Bold')
38 define(`BIG_BOLD_FONT', BIG_FONT`:Bold')
40 define(`TITLE_FONT', MEDIUM_FONT)
41 define(`ICON_FONT', LARGE_FONT)
43 dnl Font and geometry aliases that depend on whether the screen resolution is
44 dnl 800x600, 1024x768 or 1920x1200
47 ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',
48 eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'))
50 define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT))
51 define(`BUTTONS_FONT', PAGER_FONT)
55 ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',
56 eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'))
57 define(`IDENT_FONT', MENU_FONT)
58 define(`WIN_LIST_FONT', MENU_FONT)
59 define(`ICON_BOX_FONT', MENU_FONT)
62 dnl XSetBg message width and font
64 ifelse(eval(WIDTH < 1024), 1, 70,
65 eval(WIDTH < 1920), 1, 75, 80))
67 define(`MESSAGE_FONT', `Nimbus Sans L 18')
72 ifelse(eval(WIDTH < 1024), 1, `80x25',
73 eval(WIDTH < 1920), 1, `80x30', `80x32'))
75 define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0')
76 define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0')
78 define(`TERM_GEOM_BIG',
79 ifelse(eval(WIDTH < 1024), 1, `96x30',
80 eval(WIDTH < 1920), 1, `112x32', `126x35'))
83 define(`TERM', `urxvt')
84 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
85 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
86 define(`TERM_KOI8_BOTLT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTLT')
87 define(`TERM_UTF8_BOTLT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTLT')
88 define(`TERM_KOI8_BOTRT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTRT')
89 define(`TERM_UTF8_BOTRT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTRT')
92 define(`REMOTE_HOST_KOI8',
93 TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1")
95 define(`REMOTE_HOST_KOI8_MENU',
96 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2))
98 define(`REMOTE_HOST_KOI8_BOTLT',
99 TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1")
101 define(`REMOTE_HOST_KOI8_BOTRT',
102 TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1")
104 define(`REMOTE_HOST_KOI8_BOTLT_MENU',
105 "$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2))
107 define(`REMOTE_HOST_KOI8_BOTRT_MENU',
108 "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2))
110 define(`REMOTE_HOST_UTF8',
111 TERM_UTF8 -e ssh -4 "$1")
113 define(`REMOTE_HOST_UTF8_MENU',
114 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2))
116 define(`REMOTE_HOST_UTF8_BOTLT',
117 TERM_UTF8_BOTLT -e ssh -4 "$1")
119 define(`REMOTE_HOST_UTF8_BOTRT',
120 TERM_UTF8_BOTRT -e ssh -4 "$1")
122 define(`REMOTE_HOST_UTF8_BOTLT_MENU',
123 "$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2))
125 define(`REMOTE_HOST_UTF8_BOTRT_MENU',
126 "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2))
128 define(`REMOTE_HOST_KOI8_BIG',
129 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1")
131 define(`REMOTE_HOST_KOI8_BIG_MENU',
132 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2))
136 ##########################################################################
139 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
140 #ModulePath /usr/lib/fvwm
141 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons
143 ############################################################################
146 # Set the fore and back border colors for the window that has focus
147 Style * HilightFore Black, HilightBack #c06077
149 # Set fore/back border colors for all other windows
150 Style * Color Black/#60a0c0
152 # Set colors/font for pop-up menus
153 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
154 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT
156 # Set fonts to use on title bar and icon label
157 Style * Font TITLE_FONT
159 ############################################################################
162 # If you don't want icons for some or all windows (or all of them!)
165 # If you want ALL icons to follow you around the desktop (Sticky)
168 # Auto Place Icons is a nice feature (Left Top Right Bottom)
169 #Style * IconBox 10 -75 -10 -0
171 Style * IconFont ICON_FONT
173 ############################################################################
176 # Does the window with focus control the colormap, or the one under the mouse
177 ColormapFocus FollowsMouse
179 # Uncomment this to force you to click in a window to give it focus
180 #Style * ClickToFocus
182 # default: focus follows mouse
184 #Style * FocusFollowsMouse
186 # If you knock your mouse out of the term, it keeps focus while in root window
189 ############################################################################
192 # click/release must occur in <n milliseconds to be a "click"
195 # if the window occupies less than n% of the screen, draw it opaque
198 # Do not flip pages on the edge of the screen, but allow to move windows
201 Style * EdgeMoveDelay 500
202 Style * EdgeMoveResistance 100
204 # MWM Emulation: Don't ignore hints for functions and transient decoration
205 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
206 Style * MWMFunctions, MWMDecor, MWMButtons
208 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
211 ###########################################################################
214 # set the desk top size in units of physical screen size (width x height)
217 ############################################################################
220 Style * PositionPlacement Center
223 ############################################################################
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.
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
234 Style "Fvwm*" !Title, Sticky, WindowListSkip
235 Style "FvwmButtons" !Handles, BorderWidth 0
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
246 Style "Certificate Manager" PositionPlacement Center
247 Style "*Downloads" PositionPlacement 50-50w +5
248 Style "*Mozilla*" PositionPlacement +0 -0
250 Style "*Chromium*" PositionPlacement +0 -0
253 Style "Gajim" PositionPlacement +0 -0
254 Style "* - Gajim" MinOverlapPercentPlacement
256 Style "Buddy List" PositionPlacement +0 -0
257 Style "*Pidgin*" MinOverlapPercentPlacement
260 Style "*MPlayer*" Layer 6, PositionPlacement 350p 100p
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
276 ############################################################################
280 ## Buttons actually being used (duplicated below)
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
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
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
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
302 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
304 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
306 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
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
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
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
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
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
331 ## Miscellaneous Buttons
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
346 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
348 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
350 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
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
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
366 ############################################################################
369 # First, the root window. Button 1 brings up the Main Menu. B2 is the
370 # window operations list, and B3 is the winlist module
371 # Button Context Modifi Function
372 Mouse 1 R A Menu RootMenu Nop
373 Mouse 2 R A Menu Window-Ops Nop
374 Mouse 3 R A WindowList
376 # Now, title bar buttons
377 # Left button is the Window-Ops2 menu
378 # Button Context Modifi Function
379 Mouse 0 1 A Menu Window-Ops2 Close
382 # Right buttonsare iconify/maximize, rightmost is close
384 Mouse 0 4 A Maximize toggle
387 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
388 # de-iconify, and on Top does a move-or-raise
389 # Button Context Modifi Function
390 Mouse 1 F A Resize-or-Raise
391 Mouse 1 S A Move-or-Raise
392 Mouse 1 I A Move-or-Iconify
393 #Mouse 1 T A Move-or-Raise
396 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
397 # Button Context Modifi Function
399 Mouse 2 FST A Menu Window-Ops2 Nop
401 # Button 3 does a raise-lower on anything
402 Mouse 3 TSIF A RaiseLower
404 ############################################################################
408 # press arrow + control + meta anywhere, and scroll by 1 page
409 Key Left A CM Scroll -100 +0
410 Key Right A CM Scroll +100 +0
411 Key Up A CM Scroll +0 -100
412 Key Down A CM Scroll +0 +100
414 # press arrow + meta key, and scroll by 1/10 of a page
415 Key Left A M Scroll -10 +0
416 Key Right A M Scroll +10 +0
417 Key Up A M Scroll +0 -10
418 Key Down A M Scroll +0 +10
420 # press shift arrow + control anywhere, and move the pointer by 1% of a page
421 Key Left A SC CursorMove -1 +0
422 Key Right A SC CursorMove +1 +0
423 Key Up A SC CursorMove +0 -1
424 Key Down A SC CursorMove +0 +1
426 # press shift arrow + meta key, and move the pointer by 1/10 of a page
427 Key Left A SM CursorMove -10 +0
428 Key Right A SM CursorMove +10 +0
429 Key Up A SM CursorMove +0 -10
430 Key Down A SM CursorMove +0 +10
432 # Switch window, mswindows style :)
433 Key Tab A M Next [*] focus
434 Key Escape A M Prev [*] focus
441 Key 5 A CM GotoPage 0 0
442 Key 6 A CM GotoPage 1 0
443 Key 7 A CM GotoPage 0 1
444 Key 8 A CM GotoPage 1 1
446 #############################################################################
449 AddToFunc "InitFunction"
450 + I Module FvwmBacker
451 + I Module FvwmButtons
452 + I Module FvwmCommandS
453 + I Module FvwmPager 0 2
455 AddToFunc "RestartFunction"
456 + I Module FvwmBacker
457 + I Module FvwmButtons
458 + I Module FvwmCommandS
459 + I Module FvwmPager 0 2
460 + I Next [!iconic CurrentScreen xterm] Focus
462 AddToFunc "StartStandardSession"
463 + I GotoDeskAndPage 0 0 0
466 + I GotoDeskAndPage 0 0 1
467 + I TERM_UTF8 -geometry 38x30+0-0
469 + I GotoDeskAndPage 0 1 0
470 + I TERM_KOI8 -e su -
473 + I Wait "Volume Control"
475 + I Wait "*Mozilla Firefox"
476 + I GotoDeskAndPage 1 0 1
479 + I GotoDeskAndPage 2 0 1
480 + I TERM_KOI8 -geometry TERM_GEOM_BIG
484 + I TERM_UTF8 -iconic -name term-im-remote
486 + I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
488 + I GotoDeskAndPage 1 1 0
489 + I Schedule 1000 GotoDeskAndPage 0 1 0
492 ############################################################################
496 AddToFunc Center I Move 50-50w 50-50w
497 + I WarpToWindow 74p 18p
499 AddToFunc Iconify-and-Raise I Iconify
502 AddToFunc Maximize-Func C Maximize toggle
505 AddToFunc Move-or-Iconify I Raise
509 AddToFunc Move-or-Raise I Raise
513 AddToFunc Move-or-Raise2 M Raise
517 AddToFunc Resize-or-Raise I Raise
521 AddToFunc Resize-or-Raise2 M Raise
525 AddToFunc Shadify D WindowShade
529 AddToFunc warp-or-run I Next [$0 CirculateHit] Iconify -1
530 + I Next [$0 CirculateHit] Focus
533 AddToFunc MailFunction I Next [$0] Iconify -1
535 + I None [$0] Exec exec $0 $1
537 AddToFunc PrintFunction I Raise
538 + I Exec exec xdpr -id $w
540 ##############################################################################
541 # User-defined functions
544 DestroyFunc PaVuControl
545 AddToFunc PaVuControl I GotoDeskAndPage 0 1 1
546 + I Exec exec pavucontrol
550 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 -
551 changequote([`], ['])
553 #DestroyFunc Audacious
554 #AddToFunc Audacious I GotoDeskAndPage 0 1 1
555 #+ I Exec LC_CTYPE=ru_RU.UTF-8 exec audacious
558 AddToFunc DeadBeef I GotoDeskAndPage 0 1 1
559 + I Exec exec deadbeef
562 AddToFunc SMPlayer I GotoDeskAndPage 0 1 1
563 + I Exec exec smplay -no-close-at-end
565 DestroyFunc Term-Phdru
566 AddToFunc Term-Phdru I GotoDeskAndPage 1 0 1
567 + I REMOTE_HOST_KOI8(phdru.name, phdru.name)
569 DestroyFunc Term-Phdru-Big
570 AddToFunc Term-Phdru-Big I GotoDeskAndPage 1 0 1
571 + I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
574 AddToFunc FireFox I GotoDeskAndPage 1 0 0
575 + I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
578 AddToFunc Gajim I GotoDeskAndPage 1 1 0
582 AddToFunc Pidgin I GotoDeskAndPage 1 1 0
585 DestroyFunc Raise-All
586 AddToFunc Raise-All I All (!"FvwmButtons|System|*clock") Raise
588 DestroyFunc UrgencyFunc
589 AddToFunc UrgencyFunc
591 + I ThisWindow ("*Downloads") Break
594 + I WarpToWindow 5p 5p
596 ##############################################################################
600 # This defines the most common window operations
601 AddToMenu Window-Ops "Window Ops" Title
603 + "Move" Move-or-Raise2
604 + "Resize" Resize-or-Raise2
607 + "(De)Iconify" Iconify
609 + "(Un)Maximize" maximize_func
615 + "Refresh Screen" Refresh
617 # A trimmed down version of "Window Ops", good for binding to decorations
618 DestroyMenu "Window-Ops2"
619 AddToMenu Window-Ops2 "Center" Center
620 + "Move" Move-or-Raise
623 + "Refresh" RefreshWindow
629 + "Resize" Resize-or-Raise
630 + "Shade" WindowShade
631 + "Raise/Lower" RaiseLower
633 + "ScrollBar" Module FvwmScroll 2 2
634 + "Print" PrintFunction
636 AddToMenu Terminals "Terminals" Title
637 + "Grey term (koi8)" TERM_KOI8
638 + "Grey term (utf8)" TERM_UTF8
639 + "Grey term (koi8,btrt)" TERM_KOI8_BOTRT
640 + "Grey term (utf8,btrt)" TERM_UTF8_BOTRT
641 + "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
643 + "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
644 + "White/black term (utf8)" TERM_UTF8 -fg white -bg black
646 AddToMenu TermColors "Term Colors" Title
647 + "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
648 + "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
650 + "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
651 + "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
653 + "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
654 + "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
655 + "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
657 + "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
658 + "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
659 + "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
661 + "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
662 + "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
663 + "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
664 + "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
666 + "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
667 + "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
668 + "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
669 + "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
671 AddToMenu Systems "Systems" Title
672 + REMOTE_HOST_KOI8_MENU(phdru.name, phdru)
673 + REMOTE_HOST_UTF8_MENU(phdru.name, phdru)
674 + REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU)
676 AddToMenu FvwmCommands "Fvwm Commands" Title
678 + "Raise all" Raise-All
679 #+ "Restart Fvwm2" Restart fvwm2
680 #+ "Start Fvwm" Restart fvwm
681 + "Fvwm Setup" Popup FvwmSetup
682 + "Fvwm Modules" Popup FvwmModules
686 AddToMenu FvwmSetup "Fvwm Setup" Title
687 + "Start standard session" StartStandardSession
688 + "Change Scrolling" Popup FvwmScroll
690 AddToMenu FvwmScroll "Change Scroll Behavior" Title
691 + "OFF" EdgeScroll 0 0
692 + "ON" EdgeScroll 100 100
693 + "Horizontal Only" EdgeScroll 100 0
694 + "Vertical Only" EdgeScroll 0 100
695 + "Partial" EdgeScroll 50 50
697 AddToMenu FvwmModules "Fvwm Modules" Title
698 + "Animate" Module FvwmAnimate
699 + "Auto" Module FvwmAuto
700 + "Backer" Module FvwmBacker
701 + "Banner" Module FvwmBanner
702 + "Buttons" Module FvwmButtons
703 + "Cascade" Module FvwmCascade
704 + "CommandS" Module FvwmCommandS
705 + "Console" Module FvwmConsole
706 + "ConsoleC" Module FvwmConsoleC -e FvwmConsoleC.pl
707 + "Cpp" Module FvwmCpp
708 + "Debug" Module FvwmDebug
709 + "DragWell" Module FvwmDragWell
710 + "Event" Module FvwmEvent
711 + "Form" Module FvwmForm
712 + "Gtk" Module FvwmGtk
713 + "IconBox" Module FvwmIconBox
714 + "IconMan" Module FvwmIconMan
715 + "Ident" Module FvwmIdent
717 + "Pager" Module FvwmPager 0 2
718 + "Rearrange" Module FvwmRearrange
719 + "Save" Module FvwmSave
720 + "SaveDesk" Module FvwmSaveDesk
721 + "Script" Module FvwmScript
722 + "Scroll" Module FvwmScroll
723 + "TaskBar" Module FvwmTaskBar
724 + "Theme" Module FvwmTheme
725 + "Tile" Module FvwmTile
726 + "Wharf" Module FvwmWharf
727 + "WinList" Module FvwmWinList
729 # This is the root menu
730 AddToMenu RootMenu "Root Menu" Title
731 + "Terminals" Popup Terminals
732 #+ "Color term" Popup TermColors
733 + "Systems" Popup Systems
735 + "Browsers" Popup Browsers
736 + "Utilities" Popup Utilities
738 #+ "Lock Screen" Popup XlockMenu
739 + "XScreenSaver" Popup XScreenSaverMenu
740 #+ "Tv-tuner" Popup Tv-tuner
742 + "XSetBg" Popup XSetBgMenu
743 + "Fvwm Commands" Popup FvwmCommands
745 # This menu will fire up some often used programs
746 DestroyMenu Utilities
747 AddToMenu Utilities "Choose one:" Title
748 + "FBReader" Exec exec fbreader
749 + "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim
750 + "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec gvim
751 + "MyRuLb (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec "$HOME"/admin/prog/myrulib/myrulib
752 + "MyRuLb (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec "$HOME"/admin/prog/myrulib/myrulib
753 #+ "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
754 #+ "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc
756 + "pavucontrol" PaVuControl
757 #+ "audacious" Audacious
758 + "DeadBeef" DeadBeef
763 + "xload" Exec exec xload -geometry =136x136+0+0
764 + "Top" TERM_KOI8 -T Top -n Top -e top
766 + "Refresh Screen" Refresh
767 + "xrefresh" Exec exec xrefresh
769 + "xcalc" Exec exec xcalc
770 + "xclipboard" Exec exec xclipboard
771 + "xcutsel" Exec exec xcutsel
772 #+ "xman" Exec exec xman -notopbox -geometry +150+102
773 #+ "emacs" Exec emacs -geometry 81x35+150+34
774 #+ "xv" Function warp-or-run xv "Exec exec xv -ncols 240 -geometry +0+0"
777 AddToMenu Browsers "Choose one:" Title
779 + "Chromium" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium
780 + "Opera" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera
782 # A wide variety of screenlocking options...
783 #AddToMenu XlockMenu "Choose one:" Title
784 #+ "Hop" Exec exec xlock -mode hop
785 #+ "Image" Exec exec xlock -mode image
786 #+ "Life" Exec exec xlock -mode life
787 #+ "Flame" Exec exec xlock -mode flame
788 #+ "Pyro" Exec exec xlock -mode pyro
789 #+ "Qix" Exec exec xlock -mode qix
790 #+ "Rotor" Exec exec xlock -mode rotor
791 #+ "Swarm" Exec exec xlock -mode swarm
793 #+ "Random" Exec exec xlock -mode random
794 #+ "Blank" Exec exec xlock -mode blank
796 AddToMenu XScreenSaverMenu "Choose mode:" Title
797 + "Blank Screen Now" Exec exec xscreensaver-command -activate
798 + "Lock Screen Now" Exec exec xscreensaver-command -lock
799 + "Screen Saver Demo" Exec exec xscreensaver-command -demo
800 + "Screen Saver Preferences" Exec exec xscreensaver-command -prefs
801 + "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
803 + "Launch Screen Saver" Exec exec xscreensaver
804 + "Kill Screen Saver" Exec exec xscreensaver-command -exit
806 AddToMenu XSetBgMenu "XSetBg" Title
807 + "Change wallpaper" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-force
808 + "Start" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-start
809 + "Stop" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-stop
810 + "Restart" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-restart
813 + "Xli" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
814 + "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"
815 + "Open in browser" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`"
816 + "Filename" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r
817 + "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
818 + "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 -
820 + "Xli (prev.)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
821 + "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"
822 + "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r -o`"
823 changequote([`], ['])
824 + "Filename (prev.)" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r -o
825 + "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py -o | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
826 + "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 -
828 ############################################################################
831 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
832 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
833 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
834 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-change
836 ############################################################################
840 *FvwmButtons: Fore Black
841 *FvwmButtons: Back rgb:90/80/90
844 *FvwmButtonsFont BUTTONS_FONT
845 *FvwmButtons: Font BUTTONS_FONT
847 # Geometry-- really likes to pick its own size, but giving a position is OK
848 *FvwmButtons: Geometry -1+1
850 # Layout: specify rows or columns, not both
851 *FvwmButtons: Rows 2 #, Columns 5
853 # Transparent background
854 #*FvwmButtons: Pixmap none
856 #*FvwmButtons: Pixmap fvwm.xpm
859 # Define the buttons to use.....
860 #*FvwmButtons: Move arrows2.xpm Move
861 #*FvwmButtons: Kill skull.xpm Destroy
862 #*FvwmButtons: Quit nuke.xpm Popup "Quit-Verify"
864 #*FvwmButtons: (de)Iconify eyenew.xpm Iconify
865 #*FvwmButtons: Restart eye2.xpm Restart
866 #*FvwmButtons: Xcalc rcalc.xpm Exec "Calculator" exec xcalc
867 #*FvwmButtons: junk 3dx.xpm Swallow "xload" xload -bg \#908090
868 #*FvwmButtons: xmter x.xpm Swallow "xmter" xmter
869 #*FvwmButtons: "" clock.xpm Swallow "xclock" xclock -bg \#908090 -padding 0
870 #*FvwmButtons: "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0
872 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
873 #*FvwmButtons: news page.xpm TERM_KOI8 -title "Tin" -fn 10x20 -fg white -cr white -bg black -e tin
874 #*FvwmButtons: Minicom mini-connect.xpm TERM_KOI8 -title "Minicom" -fg white -cr white -bg black -e minicom
875 #*FvwmButtons: Real bell.xpm Exec cd /opt/audio && exec realplay
876 #*FvwmButtons: Kill rbomb.xpm Destroy
880 *FvwmButtons: (Title Term, Icon rterm2.xpm, Action TERM_KOI8)
881 *FvwmButtons: (Title UTF-8, Icon rterm2.xpm, Action TERM_UTF8)
882 *FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action Term-Phdru)
884 *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 -)
885 *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 -)
886 *FvwmButtons: (Title Next, Icon Jrecycle.xpm, Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force)
887 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action PaVuControl)
888 #*FvwmButtons: (Title Id3Info, Icon bell.xpm, Action Id3Info)
889 #*FvwmButtons: (Title Audacious, Icon bell.xpm, Action Audacious)
890 *FvwmButtons: (Title DeadBeef, Icon bell.xpm, Action DeadBeef)
891 #*FvwmButtons: (Title SMPlayer, Icon bell.xpm, Action SMPlayer)
892 #*FvwmButtons: (Title XLock, Icon Jxlock.xpm, Action Exec exec xscreensaver-command -lock)
894 ############################################################################
897 # FvwmForm alias - rlogin to host via term
899 #*Rlogin: WarpPointer
900 #*Rlogin: Font *helvetica*m*r*n*14*
901 #*Rlogin: ButtonFont *helvetica*m*o*n*14*
902 #*Rlogin: InputFont *cour*m*r*n*14*
904 #*Rlogin: Back Light Gray
905 #*Rlogin: ItemFore Wheat
906 #*Rlogin: ItemBack Gray50
908 #*Rlogin: Line center
909 #*Rlogin: Text "Login to Remote Host"
910 #*Rlogin: Line center
911 #*Rlogin: Text "Host:"
912 #*Rlogin: Input HostName 20 ""
913 #*Rlogin: Line center
914 #*Rlogin: Selection UserSel single
915 #*Rlogin: Choice Default Default on "same user"
916 #*Rlogin: Choice Custom Custom off "user:"
917 #*Rlogin: Input UserName 10 ""
918 #*Rlogin: Line expand
919 #*Rlogin: Button quit "Login" ^M
920 #*Rlogin: Command TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
921 #*Rlogin: Button restart "Clear"
922 #*Rlogin: Command Beep
923 #*Rlogin: Button quit "Cancel"
924 #*Rlogin: Command Nop
926 ## FvwmForm alias - query exit ala mwm
928 #*QuitVerify: GrabServer
929 #*QuitVerify: WarpPointer
930 #*QuitVerify: Font *helvetica*m*r*n*14*
931 ##*QuitVerify: ButtonFont *helvetica*m*o*n*14*
932 #*QuitVerify: ButtonFont 7x13bold
933 #*QuitVerify: Fore Black
934 #*QuitVerify: Back Light Gray
935 #*QuitVerify: ItemFore Wheat
936 #*QuitVerify: ItemBack Gray50
938 #*QuitVerify: Line center
939 #*QuitVerify: Text "Do you really want to exit FVWM?"
940 #*QuitVerify: Line expand
941 #*QuitVerify: Button quit " Exit "
942 #*QuitVerify: Command Quit
943 #*QuitVerify: Button quit "Cancel"
944 #*QuitVerify: Command Nop
947 ## MyTalk & MyFvwmTalk from Dave Goldberg
948 ## MyTalk Form - dissappears after use
950 #*MyTalk: WarpPointer
951 #*MyTalk: Font *helvetica*m*r*n*14*
952 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
953 #*MyTalk: InputFont *cour*m*r*n*14*
956 #*MyTalk: ItemFore Blue
957 #*MyTalk: ItemBack Gray
958 #*MyTalk: Line center
959 #*MyTalk: Text "Fvwm Function"
960 #*MyTalk: Input Func 40 ""
961 #*MyTalk: Line expand
962 #*MyTalk: Button quit "Run" ^M
963 #*MyTalk: Command $(Func)
964 #*MyTalk: Button restart "Clear" ^R
965 #*MyTalk: Button quit "Cancel" ^C
966 #*MyTalk: Command Nop
968 ## MyFvwmTalk Form - sticks around
970 #*MyFvwmTalk: WarpPointer
971 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
972 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
973 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
974 #*MyFvwmTalk: Fore Red
975 #*MyFvwmTalk: Back Gray
976 #*MyFvwmTalk: ItemFore Blue
977 #*MyFvwmTalk: ItemBack Gray
978 #*MyFvwmTalk: Line center
979 #*MyFvwmTalk: Text "Fvwm Function"
980 #*MyFvwmTalk: Input Func 40 ""
981 #*MyFvwmTalk: Line expand
982 #*MyFvwmTalk: Button restart "Run" ^M
983 #*MyFvwmTalk: Command $(Func)
984 #*MyFvwmTalk: Button restart "Clear" ^R
985 #*MyFvwmTalk: Command Nop
986 #*MyFvwmTalk: Button restart "Iconify" ^Z
987 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
988 #*MyFvwmTalk: Button quit "Quit" ^C
989 #*MyFvwmTalk: Command Nop
991 ############################################################################
994 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
995 *FvwmIconBox: IconBack #cfcfcf
996 *FvwmIconBox: IconHiFore black
997 *FvwmIconBox: IconHiBack LightSkyBlue
998 *FvwmIconBox: Back #5f9ea0
999 #*FvwmIconBox: Fore blue
1000 *FvwmIconBox: Geometry 5x1+0+0
1001 *FvwmIconBox: MaxIconSize 64x38
1002 *FvwmIconBox: Font ICON_BOX_FONT
1003 *FvwmIconBox: SortIcons IconName
1004 *FvwmIconBox: Padding 4
1005 *FvwmIconBox: Lines 10
1006 *FvwmIconBox: SBWidth 11
1007 *FvwmIconBox: Placement Left Top
1008 *FvwmIconBox: Pixmap fvwm.xpm
1009 #*FvwmIconBox: HideSC Horizontal
1010 *FvwmIconBox: SetWMIconSize
1011 *FvwmIconBox: HilightFocusWin
1012 #*FvwmIconBox: Resolution Desk
1013 *FvwmIconBox: Mouse 1 Click RaiseLower
1014 *FvwmIconBox: Mouse 1 DoubleClick Iconify
1015 *FvwmIconBox: Mouse 2 Click Iconify -1, Focus
1016 *FvwmIconBox: Mouse 3 Click Module FvwmIdent
1017 *FvwmIconBox: Key r RaiseLower
1018 *FvwmIconBox: Key space Iconify
1019 *FvwmIconBox: Key d Close
1020 *FvwmIconBox: Key n Next
1021 *FvwmIconBox: Key p Prev
1022 *FvwmIconBox: Key h Left
1023 *FvwmIconBox: Key j Down
1024 *FvwmIconBox: Key k Up
1025 *FvwmIconBox: Key l Right
1027 ############################################################################
1030 # Give us colors and a fonts
1031 *FvwmIdent: Back MidnightBlue
1032 *FvwmIdent: Fore Yellow
1033 *FvwmIdent: Font IDENT_FONT
1035 ############################################################################
1038 *FvwmPager: Back #908090
1039 *FvwmPager: Fore #484048
1040 *FvwmPager: Font TITLE_FONT
1041 *FvwmPager: Hilight #cab3ca
1042 *FvwmPager: Geometry PAGER_GEOM
1043 *FvwmPager: Label 0 System
1044 *FvwmPager: Label 1 Net
1045 *FvwmPager: Label 2 Work
1046 *FvwmPager: SmallFont PAGER_FONT
1048 *FvwmPager: Balloons All
1049 *FvwmPager: BalloonBack #efe3b5
1050 *FvwmPager: BalloonFore Black
1051 *FvwmPager: BalloonFont ICON_FONT
1052 *FvwmPager: BalloonYOffset +2
1053 *FvwmPager: BalloonBorderWidth 1
1054 *FvwmPager: BalloonBorderColor Black
1056 ############################################################################
1059 *FvwmScroll: Back grey40
1060 *FvwmScroll: Fore green
1062 ############################################################################
1065 *FvwmWinList: Back #908090
1066 *FvwmWinList: Fore Black
1067 *FvwmWinList: Font WIN_LIST_FONT
1068 *FvwmWinList: Action Click1 Iconify -1, Focus
1069 *FvwmWinList: Action Click2 Iconify
1070 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1071 *FvwmWinList: UseSkipList
1072 *FvwmWinList: Geometry +10-10