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
9 dnl This is to prevent FvwmM4 to shadow $HOME
20 dnl define(`SMALL_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-koi8-r')
21 dnl define(`MEDIUM_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-koi8-r')
22 dnl define(`BIG_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-koi8-r')
25 dnl define(`SMALL_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-*-cp1251')
26 dnl define(`MEDIUM_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-*-cp1251')
27 dnl define(`BIG_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-*-cp1251')
29 dnl define(`XBUFFY_FONT', `-cronyx-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r')
33 define(`SMALL_FONT', `xft:Sans:size=12')
34 define(`MEDIUM_FONT', `xft:Sans:size=14')
35 define(`BIG_FONT', `xft:Sans:size=16')
36 define(`LARGE_FONT', `xft:Sans:size=18')
37 define(`HUGE_FONT', `xft:Sans:size=20')
40 define(`SMALL_BOLD_FONT', `SMALL_FONT:Bold')
41 define(`MEDIUM_BOLD_FONT', `MEDIUM_FONT:Bold')
42 define(`BIG_BOLD_FONT', `BIG_FONT:Bold')
45 dnl Font and geometry aliases that depend on whether the screen resolution is
46 dnl 800x600, 1024x768 or 1920x1200
48 define(`TITLE_FONT', `MEDIUM_FONT')
50 define(`ICON_FONT', `LARGE_FONT')
54 `ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',dnl
55 `ifelse(eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'dnl
60 `ifelse(eval(WIDTH < 1920), 1, `SMALL_FONT', `BIG_FONT'dnl
62 define(`BUTTONS_FONT', PAGER_FONT)
66 `ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',dnl
67 `ifelse(eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'dnl
70 define(`IDENT_FONT', MENU_FONT)
71 define(`WIN_LIST_FONT', MENU_FONT)
72 define(`ICON_BOX_FONT', MENU_FONT)
75 dnl XSetBg message width and font
77 `ifelse(eval(WIDTH < 1024), 1, 70,dnl
78 `ifelse(eval(WIDTH < 1920), 1, 75, 80 dnl
82 define(`MESSAGE_FONT', `Nimbus Sans L 18')'dnl
87 `ifelse(eval(WIDTH < 1024), 1, `80x25',dnl
88 `ifelse(eval(WIDTH < 1920), 1, `80x30', `80x32'dnl
92 define(`TERM_GEOM_BOTRT', `TERM_GEOM-0-0')'dnl
94 define(`TERM_GEOM_BIG',
95 `ifelse(eval(WIDTH < 1024), 1, `96x30',dnl
96 `ifelse(eval(WIDTH < 1920), 1, `112x32', `126x35'dnl
101 define(`TERM', `urxvt')
102 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
103 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
104 define(`TERM_KOI8_BOTRT', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -geometry TERM_GEOM_BOTRT')
105 define(`TERM_UTF8_BOTRT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEOM_BOTRT')
108 define(`REMOTE_HOST_KOI8',
109 TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1"dnl
112 define(`REMOTE_HOST_KOI8_MENU',
113 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2)dnl
116 define(`REMOTE_HOST_KOI8_BOTRT',
117 TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1"dnl
120 define(`REMOTE_HOST_KOI8_BOTRT_MENU',
121 "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2)dnl
124 define(`REMOTE_HOST_UTF8',
125 TERM_UTF8 -e ssh -4 "$1"dnl
128 define(`REMOTE_HOST_UTF8_MENU',
129 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2)dnl
132 define(`REMOTE_HOST_UTF8_BOTRT',
133 TERM_UTF8_BOTRT -e ssh -4 "$1"dnl
136 define(`REMOTE_HOST_UTF8_BOTRT_MENU',
137 "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2)dnl
140 define(`REMOTE_HOST_KOI8_BIG',
141 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1"dnl
144 define(`REMOTE_HOST_KOI8_BIG_MENU',
145 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2)dnl
149 ##########################################################################
152 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
153 #ModulePath /usr/lib/fvwm
154 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons
156 ############################################################################
159 # Set the fore and back border colors for the window that has focus
160 Style * HilightFore Black, HilightBack #c06077
162 # Set fore/back border colors for all other windows
163 Style * Color Black/#60a0c0
165 # Set colors/font for pop-up menus
166 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
167 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT fvwm
169 # Set fonts to use on title bar and icon label
170 Style * Font TITLE_FONT
172 ############################################################################
175 # If you don't want icons for some or all windows (or all of them!)
178 # If you want ALL icons to follow you around the desktop (Sticky)
181 # Auto Place Icons is a nice feature (Left Top Right Bottom)
182 #Style * IconBox 10 -75 -10 -0
184 Style * IconFont ICON_FONT
186 ############################################################################
189 # Does the window with focus control the colormap, or the one under the mouse
190 ColormapFocus FollowsMouse
192 # Uncomment this to force you to click in a window to give it focus
193 #Style * ClickToFocus
195 # default: focus follows mouse
197 #Style * FocusFollowsMouse
199 # If you knock your mouse out of the term, it keeps focus while in root window
202 ############################################################################
205 # click/release must occur in <n milliseconds to be a "click"
208 # if the window occupies less than n% of the screen, draw it opaque
211 # Do not flip pages on the edge of the screen, but allow to move windows
214 Style * EdgeMoveDelay 500
215 Style * EdgeMoveResistance 100
217 # MWM Emulation: Don't ignore hints for functions and transient decoration
218 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
219 Style * MWMFunctions, MWMDecor, MWMButtons
221 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
224 ###########################################################################
227 # set the desk top size in units of physical screen size (width x height)
230 ############################################################################
233 Style * PositionPlacement Center
236 ############################################################################
239 # (decorations and window options)
240 # Note: Order is important!! If compatible styles are set, styles are ORed
241 # together. If conflicting styles are set, the last one specified is used.
243 # change the default width, set a global icon, and give borders to popups
244 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
245 Style * DecorateTransient, ClickToFocusRaisesOff
247 Style "Fvwm*" !Title, Sticky, WindowListSkip
248 Style "FvwmButtons" !Handles, BorderWidth 0
251 Style "*term" Icon term.xpm
252 Style "*rxvt" Icon term.xpm
253 Style "term-im-local" Icon pidgin-menu.xpm
254 Style "term-im-remote" Icon rcalc2.xpm
255 Style "term-im-*" IconBox 630 -75 -2 -2, IconGrid 200 80
256 Style "term-im-*" StartsOnPage 1 1 0, StartIconic
259 Style "Certificate Manager" PositionPlacement Center
260 Style "*Downloads" PositionPlacement 50-50w +5
261 Style "*Mozilla*" PositionPlacement +0 -0
263 Style "*Chromium*" PositionPlacement +0 -0
266 Style "Gajim" PositionPlacement +0 -0
267 Style "* - Gajim" MinOverlapPercentPlacement
269 Style "Buddy List" PositionPlacement +0 -0
270 Style "*Pidgin*" MinOverlapPercentPlacement
273 Style "*MPlayer*" Layer 6, PositionPlacement 350p 100p
275 Style "*clock" !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p
276 Style "emacs" NoPPosition
277 Style "gxmessage" PositionPlacement 50-50w +20
278 Style "*lock" !Title, Sticky, WindowListSkip
279 Style "Mosaic" NoPPosition
280 Style "xbiff" Icon mail1.xpm, !Title, Sticky, WindowListSkip
281 Style "xcalc" Icon xcalc.xpm
282 Style "xconsole" !Title, Sticky, WindowListSkip, NeverFocus
283 Style "xload" !Title, Sticky, WindowListSkip, NeverFocus
284 Style "xman" Icon xman.xpm
285 Style "xmh" Icon mail2.xpm
286 Style "xsession" !Title, Sticky, WindowListSkip, ClickToFocus
287 Style "XXkb" !Title, !Borders, Sticky, WindowListSkip, Layer 5
289 ############################################################################
293 ## Buttons actually being used (duplicated below)
295 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
296 # small down triangle
297 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
299 #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
304 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
305 # Small down Triangle
306 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
308 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
309 # Large down Triangle
310 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
315 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
317 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
319 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
321 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
322 # Big Box with arrow (left-up to right-down) to little box (iconify)
323 #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
324 # Big Box with arrow (right-up to left-down) to little box (iconify)
325 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
330 #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
331 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
333 #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
335 #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
339 # Small Lightning Bolt (skinny at both ends)
340 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
341 # Big Lighting Bolt (Fat at top, comes to a point)
342 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
344 ## Miscellaneous Buttons
346 # Nested Right Angles (looks kinda crappy)
347 #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
348 # Nested Right Angles (looks nice)
349 #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
350 # 4 Horizontal bars (sticky)
351 #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
352 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
353 # Expanding Windows (iconify -- looks NICE)
354 #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
359 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
361 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
363 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
365 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
366 # Horizontal Line with arrowheads on left and right ( <-> )
367 #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
368 # Vertical Line with arrowheads on top and bottom
369 #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
370 # Diagonal Line with arrowheads on top and bottom ( / )
371 #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
372 # Diagonal Line with arrowheads on top and bottom ( \ )
373 #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
376 #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
379 ############################################################################
382 # First, the root window. Button 1 brings up the Main Menu. B2 is the
383 # window operations list, and B3 is the winlist module
384 # Button Context Modifi Function
385 Mouse 1 R A Menu RootMenu Nop
386 Mouse 2 R A Menu Window-Ops Nop
387 Mouse 3 R A WindowList
389 # Now, title bar buttons
390 # Left button is the Window-Ops2 menu
391 # Button Context Modifi Function
392 Mouse 0 1 A Menu Window-Ops2 Close
395 # Right buttonsare iconify/maximize, rightmost is close
397 Mouse 0 4 A Maximize toggle
400 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
401 # de-iconify, and on Top does a move-or-raise
402 # Button Context Modifi Function
403 Mouse 1 F A Resize-or-Raise
404 Mouse 1 S A Move-or-Raise
405 Mouse 1 I A Move-or-Iconify
406 #Mouse 1 T A Move-or-Raise
409 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
410 # Button Context Modifi Function
412 Mouse 2 FST A Menu Window-Ops2 Nop
414 # Button 3 does a raise-lower on anything
415 Mouse 3 TSIF A RaiseLower
417 ############################################################################
421 # press arrow + control + meta anywhere, and scroll by 1 page
422 Key Left A CM Scroll -100 +0
423 Key Right A CM Scroll +100 +0
424 Key Up A CM Scroll +0 -100
425 Key Down A CM Scroll +0 +100
427 # press arrow + meta key, and scroll by 1/10 of a page
428 Key Left A M Scroll -10 +0
429 Key Right A M Scroll +10 +0
430 Key Up A M Scroll +0 -10
431 Key Down A M Scroll +0 +10
433 # press shift arrow + control anywhere, and move the pointer by 1% of a page
434 Key Left A SC CursorMove -1 +0
435 Key Right A SC CursorMove +1 +0
436 Key Up A SC CursorMove +0 -1
437 Key Down A SC CursorMove +0 +1
439 # press shift arrow + meta key, and move the pointer by 1/10 of a page
440 Key Left A SM CursorMove -10 +0
441 Key Right A SM CursorMove +10 +0
442 Key Up A SM CursorMove +0 -10
443 Key Down A SM CursorMove +0 +10
445 # Switch window, mswindows style :)
446 Key Tab A M Next [*] focus
447 Key Escape A M Prev [*] focus
454 Key 5 A CM GotoPage 0 0
455 Key 6 A CM GotoPage 1 0
456 Key 7 A CM GotoPage 0 1
457 Key 8 A CM GotoPage 1 1
459 #############################################################################
462 AddToFunc "InitFunction"
463 + I Module FvwmBacker
464 + I Module FvwmButtons
465 + I Module FvwmCommandS
466 + I Module FvwmPager 0 2
468 AddToFunc "RestartFunction"
469 + I Module FvwmBacker
470 + I Module FvwmButtons
471 + I Module FvwmCommandS
472 + I Module FvwmPager 0 2
473 + I Next [!iconic CurrentScreen xterm] Focus
475 AddToFunc "StartStandardSession"
476 + I GotoDeskAndPage 0 0 0
479 + I GotoDeskAndPage 0 0 1
480 + I TERM_UTF8 -geometry 38x30+0-0
482 + I GotoDeskAndPage 0 1 0
483 + I TERM_KOI8 -e su -
486 + I Wait "Volume Control"
488 + I Wait "*Mozilla Firefox"
489 + I GotoDeskAndPage 1 0 1
492 + I GotoDeskAndPage 2 0 1
493 + I TERM_KOI8 -geometry TERM_GEOM_BIG
497 + I TERM_UTF8 -iconic -name term-im-remote
499 + I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
501 + I GotoDeskAndPage 1 1 0
502 + I Schedule 1000 GotoDeskAndPage 0 1 0
505 ############################################################################
509 AddToFunc Center I Move 50-50w 50-50w
510 + I WarpToWindow 74p 18p
512 AddToFunc Iconify-and-Raise I Iconify
515 AddToFunc Maximize-Func C Maximize toggle
518 AddToFunc Move-or-Iconify I Raise
522 AddToFunc Move-or-Raise I Raise
526 AddToFunc Move-or-Raise2 M Raise
530 AddToFunc Resize-or-Raise I Raise
534 AddToFunc Resize-or-Raise2 M Raise
538 AddToFunc Shadify D WindowShade
542 AddToFunc warp-or-run I Next [$0 CirculateHit] Iconify -1
543 + I Next [$0 CirculateHit] Focus
546 AddToFunc MailFunction I Next [$0] Iconify -1
548 + I None [$0] Exec exec $0 $1
550 AddToFunc PrintFunction I Raise
551 + I Exec exec xdpr -id $w
553 ##############################################################################
554 # User-defined functions
557 DestroyFunc PaVuControl
558 AddToFunc PaVuControl I GotoDeskAndPage 0 1 1
559 + I Exec exec pavucontrol
563 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 -
564 changequote([`], ['])
566 #DestroyFunc Audacious
567 #AddToFunc Audacious I GotoDeskAndPage 0 1 1
568 #+ I Exec LC_CTYPE=ru_RU.UTF-8 exec audacious
571 AddToFunc DeadBeef I GotoDeskAndPage 0 1 1
572 + I Exec exec deadbeef
575 AddToFunc SMPlayer I GotoDeskAndPage 0 1 1
576 + I Exec exec smplay -no-close-at-end
578 DestroyFunc Term-Phdru
579 AddToFunc Term-Phdru I GotoDeskAndPage 1 0 1
580 + I REMOTE_HOST_KOI8(phdru.name, phdru.name)
582 DestroyFunc Term-Phdru-Big
583 AddToFunc Term-Phdru-Big I GotoDeskAndPage 1 0 1
584 + I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
587 AddToFunc FireFox I GotoDeskAndPage 1 0 0
588 + I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
591 AddToFunc Gajim I GotoDeskAndPage 1 1 0
595 AddToFunc Pidgin I GotoDeskAndPage 1 1 0
598 DestroyFunc Raise-All
599 AddToFunc Raise-All I All (!"FvwmButtons|System|*clock") Raise
601 DestroyFunc UrgencyFunc
602 AddToFunc UrgencyFunc
604 + I ThisWindow ("*Downloads") Break
607 + I WarpToWindow 5p 5p
609 ##############################################################################
613 # This defines the most common window operations
614 AddToMenu Window-Ops "Window Ops" Title
616 + "Move" Move-or-Raise2
617 + "Resize" Resize-or-Raise2
620 + "(De)Iconify" Iconify
622 + "(Un)Maximize" maximize_func
628 + "Refresh Screen" Refresh
630 # A trimmed down version of "Window Ops", good for binding to decorations
631 DestroyMenu "Window-Ops2"
632 AddToMenu Window-Ops2 "Center" Center
633 + "Move" Move-or-Raise
636 + "Refresh" RefreshWindow
642 + "Resize" Resize-or-Raise
643 + "Shade" WindowShade
644 + "Raise/Lower" RaiseLower
646 + "ScrollBar" Module FvwmScroll 2 2
647 + "Print" PrintFunction
649 AddToMenu Terminals "Terminals" Title
650 + "Grey term (koi8)" TERM_KOI8
651 + "Grey term (utf8)" TERM_UTF8
652 + "Grey term (koi8,btrt)" TERM_KOI8_BOTRT
653 + "Grey term (utf8,btrt)" TERM_UTF8_BOTRT
654 + "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
656 + "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
657 + "White/black term (utf8)" TERM_UTF8 -fg white -bg black
659 AddToMenu TermColors "Term Colors" Title
660 + "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
661 + "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
663 + "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
664 + "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
666 + "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
667 + "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
668 + "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
670 + "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
671 + "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
672 + "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
674 + "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
675 + "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
676 + "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
677 + "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
679 + "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
680 + "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
681 + "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
682 + "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
684 AddToMenu Systems "Systems" Title
685 + REMOTE_HOST_KOI8_MENU(phdru.name, phdru)
686 + REMOTE_HOST_UTF8_MENU(phdru.name, phdru)
687 + REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU)
689 AddToMenu FvwmCommands "Fvwm Commands" Title
691 + "Raise all" Raise-All
692 #+ "Restart Fvwm2" Restart fvwm2
693 #+ "Start Fvwm" Restart fvwm
694 + "Fvwm Setup" Popup FvwmSetup
695 + "Fvwm Modules" Popup FvwmModules
699 AddToMenu FvwmSetup "Fvwm Setup" Title
700 + "Start standard session" StartStandardSession
701 + "Change Scrolling" Popup FvwmScroll
703 AddToMenu FvwmScroll "Change Scroll Behavior" Title
704 + "OFF" EdgeScroll 0 0
705 + "ON" EdgeScroll 100 100
706 + "Horizontal Only" EdgeScroll 100 0
707 + "Vertical Only" EdgeScroll 0 100
708 + "Partial" EdgeScroll 50 50
710 AddToMenu FvwmModules "Fvwm Modules" Title
711 + "Animate" Module FvwmAnimate
712 + "Auto" Module FvwmAuto
713 + "Backer" Module FvwmBacker
714 + "Banner" Module FvwmBanner
715 + "Buttons" Module FvwmButtons
716 + "Cascade" Module FvwmCascade
717 + "CommandS" Module FvwmCommandS
718 + "Console" Module FvwmConsole
719 + "ConsoleC" Module FvwmConsoleC -e FvwmConsoleC.pl
720 + "Cpp" Module FvwmCpp
721 + "Debug" Module FvwmDebug
722 + "DragWell" Module FvwmDragWell
723 + "Event" Module FvwmEvent
724 + "Form" Module FvwmForm
725 + "Gtk" Module FvwmGtk
726 + "IconBox" Module FvwmIconBox
727 + "IconMan" Module FvwmIconMan
728 + "Ident" Module FvwmIdent
730 + "Pager" Module FvwmPager 0 2
731 + "Rearrange" Module FvwmRearrange
732 + "Save" Module FvwmSave
733 + "SaveDesk" Module FvwmSaveDesk
734 + "Script" Module FvwmScript
735 + "Scroll" Module FvwmScroll
736 + "TaskBar" Module FvwmTaskBar
737 + "Theme" Module FvwmTheme
738 + "Tile" Module FvwmTile
739 + "Wharf" Module FvwmWharf
740 + "WinList" Module FvwmWinList
742 # This is the root menu
743 AddToMenu RootMenu "Root Menu" Title
744 + "Terminals" Popup Terminals
745 #+ "Color term" Popup TermColors
746 + "Systems" Popup Systems
748 + "Browsers" Popup Browsers
749 + "Utilities" Popup Utilities
751 #+ "Lock Screen" Popup XlockMenu
752 + "XScreenSaver" Popup XScreenSaverMenu
753 #+ "Tv-tuner" Popup Tv-tuner
755 + "XSetBg" Popup XSetBgMenu
756 + "Fvwm Commands" Popup FvwmCommands
758 # This menu will fire up some often used programs
759 DestroyMenu Utilities
760 AddToMenu Utilities "Choose one:" Title
761 + "FBReader" Exec exec fbreader
762 + "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim
763 + "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec gvim
764 + "MyRuLb (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec "$HOME"/admin/prog/myrulib/myrulib
765 + "MyRuLb (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec "$HOME"/admin/prog/myrulib/myrulib
766 #+ "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
767 #+ "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc
769 + "pavucontrol" PaVuControl
770 #+ "audacious" Audacious
771 + "DeadBeef" DeadBeef
776 + "xload" Exec exec xload -geometry =136x136+0+0
777 + "Top" TERM_KOI8 -T Top -n Top -e top
779 + "Refresh Screen" Refresh
780 + "xrefresh" Exec exec xrefresh
782 + "xcalc" Exec exec xcalc
783 + "xclipboard" Exec exec xclipboard
784 + "xcutsel" Exec exec xcutsel
785 #+ "xman" Exec exec xman -notopbox -geometry +150+102
786 #+ "emacs" Exec emacs -geometry 81x35+150+34
787 #+ "xv" Function warp-or-run xv "Exec exec xv -ncols 240 -geometry +0+0"
790 AddToMenu Browsers "Choose one:" Title
792 + "Chromium" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium
793 + "Opera" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera
795 # A wide variety of screenlocking options...
796 #AddToMenu XlockMenu "Choose one:" Title
797 #+ "Hop" Exec exec xlock -mode hop
798 #+ "Image" Exec exec xlock -mode image
799 #+ "Life" Exec exec xlock -mode life
800 #+ "Flame" Exec exec xlock -mode flame
801 #+ "Pyro" Exec exec xlock -mode pyro
802 #+ "Qix" Exec exec xlock -mode qix
803 #+ "Rotor" Exec exec xlock -mode rotor
804 #+ "Swarm" Exec exec xlock -mode swarm
806 #+ "Random" Exec exec xlock -mode random
807 #+ "Blank" Exec exec xlock -mode blank
809 AddToMenu XScreenSaverMenu "Choose mode:" Title
810 + "Blank Screen Now" Exec exec xscreensaver-command -activate
811 + "Lock Screen Now" Exec exec xscreensaver-command -lock
812 + "Screen Saver Demo" Exec exec xscreensaver-command -demo
813 + "Screen Saver Preferences" Exec exec xscreensaver-command -prefs
814 + "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
816 + "Launch Screen Saver" Exec exec xscreensaver
817 + "Kill Screen Saver" Exec exec xscreensaver-command -exit
819 AddToMenu XSetBgMenu "XSetBg" Title
820 + "Change wallpaper" Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-force
821 + "Start" Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-http-start
822 + "Stop" Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-http-stop
823 + "Restart" Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-http-restart
826 + "Xli" Exec fn="`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
827 + "Xli (scaled)" Exec fn="`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
828 + "Open in browser" Exec exec webbrowserX -n "`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r`"
829 + "Filename" Exec exec "$HOME"/admin/prog/xsetbg/print-filename.py -e koi8-r
830 + "XFilename" Exec "$HOME"/admin/prog/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
831 + "XFilename (wrapped)" Exec "$HOME"/admin/prog/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
833 + "Xli (prev.)" Exec fn="`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
834 + "Xli (prev., scaled)" Exec fn="`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
835 + "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/admin/prog/xsetbg/print-filename.py -e koi8-r -o`"
836 changequote([`], ['])
837 + "Filename (prev.)" Exec exec "$HOME"/admin/prog/xsetbg/print-filename.py -e koi8-r -o
838 + "XFilename (prev.)" Exec "$HOME"/admin/prog/xsetbg/print-filename.py -o | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
839 + "XFilename (prev., wrapped)" Exec "$HOME"/admin/prog/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
841 ############################################################################
844 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
845 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
846 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
847 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-http-change
849 ############################################################################
853 *FvwmButtons: Fore Black
854 *FvwmButtons: Back rgb:90/80/90
857 *FvwmButtonsFont BUTTONS_FONT
858 *FvwmButtons: Font BUTTONS_FONT
860 # Geometry-- really likes to pick its own size, but giving a position is OK
861 *FvwmButtons: Geometry -1+1
863 # Layout: specify rows or columns, not both
864 *FvwmButtons: Rows 2 #, Columns 5
866 # Transparent background
867 #*FvwmButtons: Pixmap none
869 #*FvwmButtons: Pixmap fvwm.xpm
872 # Define the buttons to use.....
873 #*FvwmButtons: Move arrows2.xpm Move
874 #*FvwmButtons: Kill skull.xpm Destroy
875 #*FvwmButtons: Quit nuke.xpm Popup "Quit-Verify"
877 #*FvwmButtons: (de)Iconify eyenew.xpm Iconify
878 #*FvwmButtons: Restart eye2.xpm Restart
879 #*FvwmButtons: Xcalc rcalc.xpm Exec "Calculator" exec xcalc
880 #*FvwmButtons: junk 3dx.xpm Swallow "xload" xload -bg \#908090
881 #*FvwmButtons: xmter x.xpm Swallow "xmter" xmter
882 #*FvwmButtons: "" clock.xpm Swallow "xclock" xclock -bg \#908090 -padding 0
883 #*FvwmButtons: "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0
885 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
886 #*FvwmButtons: news page.xpm TERM_KOI8 -title "Tin" -fn 10x20 -fg white -cr white -bg black -e tin
887 #*FvwmButtons: Minicom mini-connect.xpm TERM_KOI8 -title "Minicom" -fg white -cr white -bg black -e minicom
888 #*FvwmButtons: Real bell.xpm Exec cd /opt/audio && exec realplay
889 #*FvwmButtons: Kill rbomb.xpm Destroy
893 *FvwmButtons: (Title Term, Icon rterm2.xpm, Action TERM_KOI8)
894 *FvwmButtons: (Title UTF-8, Icon rterm2.xpm, Action TERM_UTF8)
895 *FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action Term-Phdru)
897 *FvwmButtons: (Title Wallpaper, Icon find1.xpm, Action Exec $HOME/admin/prog/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
898 *FvwmButtons: (Title "-1", Icon find1.xpm, Action Exec $HOME/admin/prog/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
899 *FvwmButtons: (Title Next, Icon Jrecycle.xpm, Action Exec exec "$HOME"/admin/prog/xsetbg/xsetbg-http-force)
900 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action PaVuControl)
901 #*FvwmButtons: (Title Id3Info, Icon bell.xpm, Action Id3Info)
902 #*FvwmButtons: (Title Audacious, Icon bell.xpm, Action Audacious)
903 *FvwmButtons: (Title DeadBeef, Icon bell.xpm, Action DeadBeef)
904 #*FvwmButtons: (Title SMPlayer, Icon bell.xpm, Action SMPlayer)
905 #*FvwmButtons: (Title XLock, Icon Jxlock.xpm, Action Exec exec xscreensaver-command -lock)
907 ############################################################################
910 # FvwmForm alias - rlogin to host via term
912 #*Rlogin: WarpPointer
913 #*Rlogin: Font *helvetica*m*r*n*14*
914 #*Rlogin: ButtonFont *helvetica*m*o*n*14*
915 #*Rlogin: InputFont *cour*m*r*n*14*
917 #*Rlogin: Back Light Gray
918 #*Rlogin: ItemFore Wheat
919 #*Rlogin: ItemBack Gray50
921 #*Rlogin: Line center
922 #*Rlogin: Text "Login to Remote Host"
923 #*Rlogin: Line center
924 #*Rlogin: Text "Host:"
925 #*Rlogin: Input HostName 20 ""
926 #*Rlogin: Line center
927 #*Rlogin: Selection UserSel single
928 #*Rlogin: Choice Default Default on "same user"
929 #*Rlogin: Choice Custom Custom off "user:"
930 #*Rlogin: Input UserName 10 ""
931 #*Rlogin: Line expand
932 #*Rlogin: Button quit "Login" ^M
933 #*Rlogin: Command TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
934 #*Rlogin: Button restart "Clear"
935 #*Rlogin: Command Beep
936 #*Rlogin: Button quit "Cancel"
937 #*Rlogin: Command Nop
939 ## FvwmForm alias - query exit ala mwm
941 #*QuitVerify: GrabServer
942 #*QuitVerify: WarpPointer
943 #*QuitVerify: Font *helvetica*m*r*n*14*
944 ##*QuitVerify: ButtonFont *helvetica*m*o*n*14*
945 #*QuitVerify: ButtonFont 7x13bold
946 #*QuitVerify: Fore Black
947 #*QuitVerify: Back Light Gray
948 #*QuitVerify: ItemFore Wheat
949 #*QuitVerify: ItemBack Gray50
951 #*QuitVerify: Line center
952 #*QuitVerify: Text "Do you really want to exit FVWM?"
953 #*QuitVerify: Line expand
954 #*QuitVerify: Button quit " Exit "
955 #*QuitVerify: Command Quit
956 #*QuitVerify: Button quit "Cancel"
957 #*QuitVerify: Command Nop
960 ## MyTalk & MyFvwmTalk from Dave Goldberg
961 ## MyTalk Form - dissappears after use
963 #*MyTalk: WarpPointer
964 #*MyTalk: Font *helvetica*m*r*n*14*
965 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
966 #*MyTalk: InputFont *cour*m*r*n*14*
969 #*MyTalk: ItemFore Blue
970 #*MyTalk: ItemBack Gray
971 #*MyTalk: Line center
972 #*MyTalk: Text "Fvwm Function"
973 #*MyTalk: Input Func 40 ""
974 #*MyTalk: Line expand
975 #*MyTalk: Button quit "Run" ^M
976 #*MyTalk: Command $(Func)
977 #*MyTalk: Button restart "Clear" ^R
978 #*MyTalk: Button quit "Cancel" ^C
979 #*MyTalk: Command Nop
981 ## MyFvwmTalk Form - sticks around
983 #*MyFvwmTalk: WarpPointer
984 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
985 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
986 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
987 #*MyFvwmTalk: Fore Red
988 #*MyFvwmTalk: Back Gray
989 #*MyFvwmTalk: ItemFore Blue
990 #*MyFvwmTalk: ItemBack Gray
991 #*MyFvwmTalk: Line center
992 #*MyFvwmTalk: Text "Fvwm Function"
993 #*MyFvwmTalk: Input Func 40 ""
994 #*MyFvwmTalk: Line expand
995 #*MyFvwmTalk: Button restart "Run" ^M
996 #*MyFvwmTalk: Command $(Func)
997 #*MyFvwmTalk: Button restart "Clear" ^R
998 #*MyFvwmTalk: Command Nop
999 #*MyFvwmTalk: Button restart "Iconify" ^Z
1000 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
1001 #*MyFvwmTalk: Button quit "Quit" ^C
1002 #*MyFvwmTalk: Command Nop
1004 ############################################################################
1007 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
1008 *FvwmIconBox: IconBack #cfcfcf
1009 *FvwmIconBox: IconHiFore black
1010 *FvwmIconBox: IconHiBack LightSkyBlue
1011 *FvwmIconBox: Back #5f9ea0
1012 #*FvwmIconBox: Fore blue
1013 *FvwmIconBox: Geometry 5x1+0+0
1014 *FvwmIconBox: MaxIconSize 64x38
1015 *FvwmIconBox: Font ICON_BOX_FONT
1016 *FvwmIconBox: SortIcons IconName
1017 *FvwmIconBox: Padding 4
1018 *FvwmIconBox: Lines 10
1019 *FvwmIconBox: SBWidth 11
1020 *FvwmIconBox: Placement Left Top
1021 *FvwmIconBox: Pixmap fvwm.xpm
1022 #*FvwmIconBox: HideSC Horizontal
1023 *FvwmIconBox: SetWMIconSize
1024 *FvwmIconBox: HilightFocusWin
1025 #*FvwmIconBox: Resolution Desk
1026 *FvwmIconBox: Mouse 1 Click RaiseLower
1027 *FvwmIconBox: Mouse 1 DoubleClick Iconify
1028 *FvwmIconBox: Mouse 2 Click Iconify -1, Focus
1029 *FvwmIconBox: Mouse 3 Click Module FvwmIdent
1030 *FvwmIconBox: Key r RaiseLower
1031 *FvwmIconBox: Key space Iconify
1032 *FvwmIconBox: Key d Close
1033 *FvwmIconBox: Key n Next
1034 *FvwmIconBox: Key p Prev
1035 *FvwmIconBox: Key h Left
1036 *FvwmIconBox: Key j Down
1037 *FvwmIconBox: Key k Up
1038 *FvwmIconBox: Key l Right
1040 ############################################################################
1043 # Give us colors and a fonts
1044 *FvwmIdent: Back MidnightBlue
1045 *FvwmIdent: Fore Yellow
1046 *FvwmIdent: Font IDENT_FONT
1048 ############################################################################
1051 *FvwmPager: Back #908090
1052 *FvwmPager: Fore #484048
1053 *FvwmPager: Font TITLE_FONT
1054 *FvwmPager: Hilight #cab3ca
1055 *FvwmPager: Geometry PAGER_GEOM
1056 *FvwmPager: Label 0 System
1057 *FvwmPager: Label 1 Net
1058 *FvwmPager: Label 2 Work
1059 *FvwmPager: SmallFont PAGER_FONT
1061 *FvwmPager: Balloons All
1062 *FvwmPager: BalloonBack #efe3b5
1063 *FvwmPager: BalloonFore Black
1064 *FvwmPager: BalloonFont ICON_FONT
1065 *FvwmPager: BalloonYOffset +2
1066 *FvwmPager: BalloonBorderWidth 1
1067 *FvwmPager: BalloonBorderColor Black
1069 ############################################################################
1072 *FvwmScroll: Back grey40
1073 *FvwmScroll: Fore green
1075 ############################################################################
1078 *FvwmWinList: Back #908090
1079 *FvwmWinList: Fore Black
1080 *FvwmWinList: Font WIN_LIST_FONT
1081 *FvwmWinList: Action Click1 Iconify -1, Focus
1082 *FvwmWinList: Action Click2 Iconify
1083 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1084 *FvwmWinList: UseSkipList
1085 *FvwmWinList: Geometry +10-10