# # antirez's .fvwm2rc # ### Paths ImagePath /usr/local/share/icons:/usr/share/icons:/usr/share/pixmaps:/usr/include/X11/pixmaps ### DeskTop configuration DeskTopSize 4x4 EdgeScroll 100 100 EdgeResistance 250 100 ### Styles, colors, fonts, and related things # Put the defaults in a separate decor so decor users can ignore them DestroyDecor default-decor AddToDecor default-decor #+ HilightColor white steelblue + Style default-decor HilightFore white + Style default-decor HilightBack white #+ WindowFont -adobe-helvetica-bold-r-*-*-12-* + Style default-decor Font -adobe-helvetica-bold-r-*-*-12-* # We have four buttons in the default style: on the left, we can pull # down a menu of window options; on the right, we can close, maximise # and iconify. + ButtonStyle Reset + ButtonStyle 2 Vector 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 \ 60x50@0 80x70@0 80x80@0 70x80@0 50x60@0 30x80@0 \ 20x80@0 20x70@1 40x50@1 20x30@0 20x20@1 + ButtonStyle 4 Vector 5 25x75@0 75x75@0 75x25@0 25x25@1 25x75@1 + ButtonStyle 6 Vector 4 50x75@1 25x25@1 75x25@1 50x75@0 # # The following sets the window decorations: the window title, borders, # and the handles in the corners. # # make the default decor the default: Style "default-style" UseDecor default-decor, Color Black/DarkGrey, SloppyFocus, MouseFocusClickRaises # # Style # Style "*" UseStyle default-style # I have commented out the RandomPlacement and the SmartPlacement styles, # replacing them by ActivePlacement (which should be the default anyway). # Also, NoPPostion completes this, although this may occasionally cause # problems. (Please let me know if this be the case!) # I think it can be annoying for windows to suddenly appear without the # user having an initial choice of where they do so. This is, of course, # completely changeable within the user's post.hook. Style "*" BorderWidth 6 Style "*" HandleWidth 6 Style "*" MWMFunctions Style "*" MWMBorder Style "*" MWMDecor Style "*" DecorateTransient Style "*" SmartPlacement Style "*" RandomPlacement Style "*" ActivePlacement Style "*" NoPPosition Style "*" IconBox 0 0 50 -1 Style "Fvwm*" NoTitle Style "Fvwm*" WindowListSkip Style "Fvwm*" CirculateSkip Style "FvwmButtons" Sticky Style "FvwmIconMan" Sticky #Style "FvwmPager" Sticky, StaysOnTop, Handles, HandleWidth 5 Style "FvwmPager" Sticky, NoHandles, HandleWidth 2, BorderWidth 2 Style "xclock" NoTitle, Sticky, NoHandles, HandleWidth 2, BorderWidth 2 Style "FvwmIdent" Title Style "FvwmIdent" WindowListHit Style "FvwmIdent" CirculateHit #Style "xmem" BorderWidth 0, NoTitle, NoHandles, Sticky, StaysOnTop Style "xmem" BorderWidth 0, NoTitle, NoHandles, Sticky Style "SandUhr" BorderWidth 0, NoTitle, NoHandles, Sticky Style "xpostit" BorderWidth 0, NoTitle, NoHandles, Sticky, StaysOnBottom Style "PostItNote*" BorderWidth 0, NoTitle, NoHandles, Sticky, StaysOnBottom Style "xadsen" BorderWidth 0, NoTitle, NoHandles, Sticky # Add icons to some common programs Style "Emacs" Icon gnu-animal.xpm, MiniIcon mini.emacs.xpm Style "MPlayer" HandleWidth 1, BorderWidth 0, NoTitle Style "xterm" HandleWidth 1, BorderWidth 0, NoTitle, Icon xterm-linux.xpm, MiniIcon mini.xterm.xpm Style "Ghostview" Icon gv.xpm Style "Gnuplot" Icon graphs.xpm Style "Xcalc" Icon xcalc.xpm, MiniIcon mini-calc.xpm Style "Xbiff" Icon mail1.xpm, MiniIcon mini-mail.xpm Style "Xman" Icon xman.xpm, MiniIcon mini-manual.xpm Style "Xmag" Icon mag_glass.xpm, MiniIcon mini.xmag.xpm Style "Mosaic" Icon Mosaic.xpm Style "*Netscape*" HandleWidth 1, BorderWidth 0, Notitle, Icon nscape.xpm, MiniIcon mini-nscape.xpm Style "ickle" BorderWidth 0, NoHandles, NoTitle, Sticky Style "licq" BorderWidth 0, NoHandles, NoTitle, Sticky Style "Xpaint" Icon xpaint.xpm, MiniIcon mini.xpaint.xpm Style "Manual Page" Icon xman.xpm, MiniIcon mini-manual.xpm Style "Xedit" Icon textedit.xpm, MiniIcon mini-edit.xpm Style "*" Icon default.xbm ### Init and Restart functions DestroyFunc InitFunction AddToFunc InitFunction + "I" Exec exec setup-background + "I" Module FvwmPager * + "I" Exec exec xsetroot -solid gray30 DestroyFunc RestartFunction AddToFunc RestartFunction + "I" Module FvwmPager * + "I" Exec exec xsetroot -solid gray30 ### Menus MenuStyle "*" mwm, Foreground grey, Background rgb:14/14/48, Greyed white, \ Font -adobe-helvetica-0-*-*-12-*, BorderWidth 1, Hilight3DThin, \ TitleUnderlines1 DestroyMenu /Debian AddToMenu /Debian + "Xterm" Exec exec xterm -fn 9x15 -bg black -fg gray80 -geometry 80x48+150+10 -ls -cr red -vb + "Xterm-white" Exec exec xterm -fn 9x15 -bg white -fg black -geometry 80x48+150+10 -ls -cr red + "Xchat" Exec exec xchat + "firefox" Exec exec /home/antirez/firefox2/firefox + "gaim" Exec exec gaim + "Konqueror" Exec exec konqueror + "amule" Exec exec amule + "gimp" Exec exec gimp + "inkscape" Exec exec inkscape + "" Nop # Tack a quit entry on to the end; this version uses a pop-up menu to ask # the user to confirm, MWM-style (?). The second line may be changed as # indicated to use a popup form instead. (The QuitVerify form is defined # in system.warnings, read in later.) AddToMenu /Debian + "Exit Fvwm" Popup Quit-Verify # or: # + "Exit Fvwm" Module FvwmForm QuitVerify # # The Window-Ops menu is for manipulating windows. It is invoked either # from the main menu, or directly from the root window. # DestroyMenu Window-Ops AddToMenu Window-Ops "Alt-F1: Window Ops" Title + "Alt-F2: Main Menu" Popup /Debian + "Alt-F3: Lower" Lower + "Alt-F4: Window List" WindowList + "Alt-F5: Previous" Prev + "Alt-F6: Next" Next + "Alt-F7: Move" Move + "Alt-F8: Resize" Resize + "Alt-F9: (De)Iconify" Iconify + "Alt-F10: (Un)Maximize to screen" Maximize 100 100 + "Alt-F11: Raise" Raise + "Alt-F12: (Un)Stick" Stick + " (Un)Maximize vertical" Maximize 0 100 + " (Un)Maximize horizontal" Maximize 100 0 + " (Un)Shade" WindowShade + "" Nop + " ScrollBar" Module FvwmScroll 2 2 + "" Nop + " Destroy" Destroy + " Close" Close # # The Quit-Verify menu checks that the user really wants to exit. # DestroyMenu Quit-Verify AddToMenu Quit-Verify "Quit FVWM" Title + "restart" Restart fvwm2 + "quit" Quit # # Section: Mouse bindings # # This section defines the mouse bindings, that is, all the things that # can be done with the mouse. # # # Each button gives a different menu from the background (root window). # Mouse 1 R A Menu /Debian Mouse 2 R A Menu Window-Ops Mouse 3 R A WindowList # # Moving and resizing, depending on which part of the window # you grab (T=title bar, S=side/top/bottom, F=corner). # Mouse 0 T A move-and-raise-or-raiselower #This caused problems with emacs selection (Bug #17668). #Mouse 0 W M move-and-raise-or-raiselower Mouse 0 W M - Mouse 0 F A resize-or-raiselower Mouse 0 S A resize-or-raiselower # # Move or de-iconify an icon. # Mouse 0 I A move-or-winmenu-or-deiconify # # Buttons on the title bar (1,3,5,7,9 are on the left, 0,8,6,4,2 on # the right side of the title bar). Note that the bindings here # make more sense if the ButtonStyle's defined earlier are retained. # Mouse 0 1 A Popup Window-Ops Mouse 0 2 A Close Mouse 1 4 A Maximize 0 100 Mouse 2 4 A Maximize 100 100 Mouse 3 4 A Maximize 100 0 Mouse 0 6 A Iconify # # Section: Key bindings # # This section binds some actions to keys. The bindings have been inspired # by MWM, Windows, and nightmares. Everything that these key bindings do, # can be done without them. Therefore they should not be too much of a # burden on new users, but it definitely _can_ be confusing to press a # key by accident and have it do something completely unexpected. # Key R A M Restart fvwm2 Mouse 1 W M Move Mouse 3 W M Close Key Escape A M Exec exec xterm -bg Black -fg White -font fixed +l -ls -sb -sl 8000 -vb -geometry 160x20 & Key 1 A M Desk 0 0 Key 2 A M Desk 0 1 Key Tab A M Next [CurrentPage !iconic] focus-and-raise Key Tab A MS Prev [CurrentPage !iconic] focus-and-raise Key Tab A CM Next [CurrentPage] deiconify-and-focus Key Tab A CMS Prev [CurrentPage] deiconify-and-focus Key Left A M Scroll -100 +0 Key Up A M Scroll +0 -100 Key Right A M Scroll +100 +0 Key Down A M Scroll +0 +100 Key F1 A M Popup Window-Ops Key F2 A M Popup /Debian Key F3 A M Lower Key F4 A M WindowList Key F5 A M Prev Key F6 A M Next Key F7 A M Move Key F8 A M Resize Key F9 A M Iconify Key F10 A M Maximize 100 100 Key F11 A M Raise Key F12 A M Stick # # Section: Functions # # This section defines various functions. Not all of these are used by # the default bindings, but they can be useful for a user who wants to # customize things. # # # The following functions operate on a window or menu. The # names are systematic: foo means "do foo"; foo-or-bar means # "do foo, if mouse is moving, bar if click"; and foo-or-bar-or-baz # adds "baz, if double-clicked". # DestroyFunc move-or-winmenu-or-deiconify AddToFunc move-or-winmenu-or-deiconify + "M" Move + "C" Popup Window-Ops + "D" Iconify DestroyFunc deiconify-and-focus AddToFunc deiconify-and-focus + "I" Iconify -1 + "I" Focus DestroyFunc deiconify-and-raise AddToFunc deiconify-and-raise + "I" Iconify -1 + "I" Raise DestroyFunc focus-and-raise AddToFunc focus-and-raise + "I" Focus + "I" Raise DestroyFunc move-or-raiselower AddToFunc move-or-raiselower + "M" Move + "C" RaiseLower DestroyFunc move-and-raise-or-raiselower AddToFunc move-and-raise-or-raiselower + "M" Move + "M" Raise + "C" RaiseLower DestroyFunc move-or-raiselower-or-maximize-vertical AddToFunc move-or-raiselower-or-maximize-vertical + "M" Move + "C" RaiseLower + "D" Maximize 0 100 DestroyFunc resize-or-raiselower AddToFunc resize-or-raiselower + "M" Resize + "C" RaiseLower # # Configure a FvwmButtons module for the modules menu, but make sure # user can easily override it with their own - so name it DebianFvwmButtons. # To use this config, you need to invoke it as: # "Module FvwmButtons DebianFvwmButtons" # *DebianFvwmButtonsFore White *DebianFvwmButtonsBack DarkSlateGrey *DebianFvwmButtonsGeometry 430x100-0-0 *DebianFvwmButtonsRows 1 *DebianFvwmButtons(Title Help, Icon xman.xpm, Action 'Exec exec xman &') *DebianFvwmButtons(Title xterm, Icon xterm.xpm, Action 'Exec exec xterm &') *DebianFvwmButtons(Title emacs, Icon gnu-animal.xpm, Action 'Exec exec emacs &') *DebianFvwmButtons(2x1, Swallow(UseOld,NoKill) "FvwmPager") # # Configure the FvwmPager module # *FvwmPagerLabelsAbove *FvwmPagerBalloons *FvwmPagerBalloonFore black *FvwmPagerBalloonBack yellow *FvwmPagerBack SlateGrey *FvwmPagerFore Black *FvwmPagerHilight SlateBlue4 *FvwmPagerGeometry -0-0 *FvwmPagerSmallFont -*-times-medium-r-*-*-*-80-*-*-*-*-*-* *FvwmPagerDeskTopScale 54 *FvwmPagerLabel 0 clients *FvwmPagerLabel 1 devel *FvwmPagerLabel 2 rest