# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. # It should be customized before install. See other sample .fvwm2rc files # for hints, as well as pointers from the various links on the official # fvwm web page (see the FAQ). # be sure to customize these paths for your installation: ExecUseShell /usr/bin/sh ModulePath /usr/local/libexec/fvwm/2.2 PixmapPath $HOME/.icons:/usr/X11R6.3/include/X11/pixmaps IconPath $HOME/.icons:/usr/X11R6.3/include/X11/bitmaps EdgeResistance 250 10 EdgeScroll 100 100 ClickTime 750 # make sure these fonts exist on your system: WindowFont -adobe-helvetica-bold-r-normal-*-17-*-*-*-*-*-*-*,-jis-fixed-medium-r-normal--16-*-*-*-*-*-*-* MenuStyle Black #729fff Grey40 -adobe-times-bold-r-normal-*-14-* mwm IconFont -adobe-helvetica-bold-r-normal-*-14-*-*-*-*-*-*-*,-jis-fixed-medium-r-normal--16-*-*-*-*-*-*-* HilightColor Black LightSteelBlue DeskTopSize 2x2 ColormapFocus FollowsFocus # default Styles: Style "*" Handles, HandleWidth 8, BorderWidth 4 Style "*" Title Style "*" Button 1, Button 2, Button 4 Style "*" NakedTransient Style "*" Color Black/LightGrey Style "*" MWMBorder, MWMButtons Style "*" MWMDecor, MWMFunctions, OLDecor, NoOverride Style "*" ClickToFocus Style "*" NoLenience Style "*" SmartPlacement, ActivePlacement Style "*" UsePPosition Style "*" Icon unknown1.xpm Style "*" StickyIcon Style "*" IconBox -70 1 -1 -140 # Styles for various Fvwm modules: Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip Style "FvwmButtons" NoHandles, BorderWidth 0, Notitle, Sticky # Styles for your common terminal emulator programs: Style "KTerm" Icon xterm.xpm Style "mule" Icon gnu-animal.xpm Style "ghostview" Icon ps.xpm Style "Tgif" Icon tgificon.xpm Style "Xarchie" Icon xarchie.xbm # some simple default key bindings: Key Left A C Scroll -100 +0 Key Right A C Scloll +100 +0 Key Up A C Scloll +0 -100 Key Down A C Scloll +0 +100 Key Left A M Scroll -10 +0 Key Right A M Scloll +10 +0 Key Up A M Scloll +0 -10 Key Down A M Scloll +0 +10 Key Up A CM Desk -1 0 Key Down A CM Desk 1 0 Key Home A CM Desk 0 0 # some simple default mouse bindings: # for the root window: Mouse 1 R A Menu RootMenu Nop Mouse 2 R A Menu Window-Ops Nop Mouse 3 R A WindowList # for the title bar buttons: Mouse 0 1 A Menu Window-Ops2 Close Mouse 0 2 A Maximize-Func Mouse 0 4 A Iconify # for other parts of the window/borders/icons: Mouse 1 F A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 2 I A Iconify Mouse 2 FST A Menu Window-Ops2 Nop Mouse 3 TSIF A RaiseLower ######################## Initialization Functions ############################ AddToFunc InitFunction "I" Module FvwmButtons + "I" exec xsetroot -solid darkslategrey + "I" Module FvwmPager 0 0 AddToFunc RestartFunction "I" Module FvwmButtons + "I" exec xsetroot -solid darkslategrey + "I" Module FvwmPager 0 0 ######################## Menus ################### AddToMenu RootMenu "Root Menu" Title + "KTerm" Exec exec kterm -sb -sl 200 + "" Nop + "Remote Logins" Popup Remote-Logins + "" Nop + "Utilities" Popup Utilities + "" Nop + "Fvwm Modules" Popup Module-Popup + "Fvwm Window Options" Popup Window-Ops + "Fvwm Configurations" Popup Misc-Ops + "" Nop + "Refresh Screen" Refresh + "Recapture Screen" Recapture + "" Nop + "Exit Fvwm" Popup Quit-Verify AddToMenu Utilities "Utilities" Title + "Reset C Shell" Exec source $HOME/.cshrc + "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults AddToMenu Misc-Ops "Misc Config Options" Title + "Sloppy Focus" ChangeDefaultFocus SloppyFocus + "Click To Focus" ChangeDefaultFocus ClickToFocus + "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse + "" Nop + "Colormap Follows Mouse" ColormapFocus FollowsMouse + "Colormap Follows Focus" ColormapFocus FollowsFocus + "" Nop + "Full Paging ON" EdgeScroll 100 100 + "All Paging OFF" EdgeScroll 0 0 + "Horizontal Paging Only" EdgeScroll 100 0 + "Vertical Paging Only" EdgeScroll 0 100 + "Partial Paging" EdgeScroll 50 50 + "Full Paging && Edge Wrap" EdgeScroll 100000 100000 AddToMenu Window-Ops "Window Options" Title + "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" Maximize + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Window" RefreshWindow AddToMenu Window-Ops2 "&Move" Move + "&Resize" Resize + "R&aise" Raise + "&Lower" Lower + "(De)&Iconify" Iconify + "(Un)&Stick" Stick + "(Un)Ma&ximize" Maximize + "" Nop + "&Delete" Delete + "&Close" Close + "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 # be sure to fill these in with your correct machine names: AddToMenu Remote-Logins "Remote Hosts" Title + "toki" XON toki + "iecsrv" XON iecsrv AddToMenu Module-Popup "FvwmModules" Title + "Identify" Module FvwmIdent + "Talk" Module FvwmTalk + "" Nop + "Button-Bar" Module FvwmButtons + "Pager" Module FvwmPager 0 0 + "Pager (2 desks)" Module FvwmPager 0 1 + "WinList" Module FvwmWinList + "" Nop + "Background" Module FvwmBacker + "IconManager" Module FvwmIconMan AddToMenu Quit-Verify "Yes Quit" Quit + "" Nop + "No Quit" Nop + "" Nop + "Restart fvwm2" Restart fvwm2 ######################## Sample Functions ########################## AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower AddToFunc Maximize-Func "M" Maximize 0 100 + "C" Maximize 0 80 + "D" Maximize 100 100 AddToFunc Move-or-Iconify "I" Raise + "M" Move + "D" Iconify AddToFunc Resize-or-Raise "I" Raise + "M" Resize + "D" Lower AddToFunc Resize-or-Raise2 "M" Raise + "M" Resize + "D" Lower AddToFunc Iconify-and-Raise "I" Iconify + "I" Raise # XON machine AddToFunc XON "I" Exec xon $0 -access kterm -sb -sl 200 -name $0 -display $HOSTDISPLAY AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture ################## FvwmButtons button-bar ################################ *FvwmButtonsFore Black *FvwmButtonsBack Grey *FvwmButtonsFont -adobe-times-bold-r-normal-*-10-*-*-*-*-*-*-* *FvwmButtonsGeometry -1-1 *FvwmButtonsRows 1 *FvwmButtons(Title Kill, Icon bomb.xpm, Action 'Destroy') *FvwmButtons(Swallow xclock `Exec xclock -bg Grey -padding 0`) ########################## Window-Identifier ############################### # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPagerBack Grey *FvwmPagerFore Black *FvwmPagerFont -adobe-times-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmPagerHilight Grey40 *FvwmPagerGeometry +0-0 ##########################FvwmWinList################################## *FvwmWinListBack #908090 *FvwmWinListFore Black *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmWinListAction Click1 Iconify -1,Focus *FvwmWinListAction Click2 Iconify *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent *FvwmWinListUseSkipList *FvwmWinListGeometry +0-1 *FvwmBackerDesk 0 -solid darkslategrey *FvwmBackerDesk 1 -solid midnightblue *FvwmScrollBack grey40 *FvwmScrollFore green