# 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: ModulePath /usr/X11R6/lib/X11/fvwm2 PixmapPath /usr/include/X11/pixmaps IconPath /usr/include/X11/bitmaps EdgeResistance 250 10 EdgeScroll 100 100 ClickTime 750 # make sure these fonts exist on your system: #WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* WindowFont -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 IconFont -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 ButtonStyle 1 5 25x44@1 75x44@1 75x56@0 25x56@0 25x44@1 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@1 40x50@1 20x30@0 20x20@1 ButtonStyle 4 10 25x40@0 25x75@0 75x75@1 75x40@1 20x40@0 20x20@1 80x20@1 80x80@0 20x80@0 20x30@1 ButtonStyle 6 5 80x75@0 80x80@0 20x80@0 2 HilightColor linen SteelBlue4 DeskTopSize 3x3 MenuStyle wheat Steelblue4 wheat -adobe-times-bold-r-*-*10-*-*-*-*-*-*-* mwm ColormapFocus FollowsMouse # default Styles: Style "*" Color linen/VioletRed4 Style "*" BorderWidth 0, HandleWidth 0 Style "*" Icon unknown1.xpm, Color lightgrey/dimgrey Style "*" MWMFunctions, MWMDecor, HintOverride Style "*" DecorateTransient, NoPPosition Style "*" IconBox 0 -10 -280 -1 Style "*" FocusFollowsMouse Style "*" RandomPlacement, SmartPlacement # Styles for various Fvwm modules: Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip Style "FvwmPager" StaysOnTop Style "FvwmBanner" StaysOnTop Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus # Styles for your common terminal emulator programs: Style "XTerm" Icon gnome-term-linux2.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style "Rxvt" Icon gnome-term-linux2.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style "BitchX" Icon bitch52.xpm, RandomPlacement, SloppyFocus Style "x11amp" Icon x11amp.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style "Netscape" Icon netscape.xpm, SloopyFocus, IconBox -70 1 -1 -140 Style "Gimp" Icon Gimp.xpm, SloopyFocus, IconBox -70 1 -1 -140 Style "Josy" Icon josy.xpm, RandomPlacement, SloppyFocus Style "Twix" Icon twix.xpm, RandomPlacement, SloppyFocus Style "rxvt" Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style "rxvt" Icon gnome-term-linux2.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style "xeyes" NoTitle, NoHandles, BorderWidth 0, WindowListSkip, CirculateSkip Style "xclock" NoTitle, NoHandles, BorderWidth 0, WindowListSkip, CirculateSkip # some simple default key bindings: Key Next A SCM Next [*] Focus Key Prior A SCM Prev [*] Focus # 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" Module FvwmPager 0 0 #+ "I" Module FvwmAudio + "I" exec xv -max -root ~/linlogo_peng.gif -quit AddToFunc RestartFunction "I" Module FvwmButtons #+ "I" Module FvwmPager 0 0 #+ "I" Module FvwmAudio + "I" exec xv -max -random ~/linlogo_peng.gif -quit ######################## Menus ################### AddToMenu RootMenu "Menu" Title + "Terminaux" Popup Terminaux + "Internet" Popup Internet + "Editeurs" Popup Editeurs + "Musique" Popup Musique + "Image" Popup Image + "" Nop + "Sortir" Popup Quit-Verify AddToMenu Terminaux "Terminaux" Title + "XTerm" Exec exec xterm -ls -vb -bg black -fg white -ms blue + "Rxvt" Exec exec rxvt -ls -fn 8x16 -bg black -fg white + "Aterm" Exec exec aterm -bg darkslateblue -fg white -tint AddToMenu Internet "Internet" Title + "Netscape" Exec exec netscape& + "BitchX" Exec exec solinux& + "Mail-News" Exec exec xemacs -f gnus& AddToMenu Editeurs "Editeurs" Title + "Xemacs" Exec exec xemacs + "Vim" Exec exec gvim + "GV" Exec exec gv AddToMenu Musique "Musique" Title + "x11amp" Exec exec x11amp AddToMenu Image "Image" Title + "XV" Exec exec xv + "Gimp" Exec exec gimp + "EE" Exec exec ee + "gtksee" Exec exec gtksee AddToMenu Quit-Verify "Sortir de Fvwm?" Title + "Oui" Quit + "" Nop + "Redémarrage" Restart fvwm2 + "" Nop + "Nop" Nop AddToMenu Misc-Ops "Misc Config Opts" 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 Ops" 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 + "Print" PrintFunction + "Print Reverse" PrintReverseFunction ######################## 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 PrintFunction "I" Raise + "I" Exec xdpr -id $w AddToFunc PrintReverseFunction "I" Raise + "I" Exec xdpr 1/2 -h -rv -id $w AddToFunc Iconify-and-Raise "I" Iconify + "I" Raise ########################## Window-Identifier ############################### # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPagerBack grey60 *FvwmPagerGeometry -0-0 *FvwmPagerBack lightblue *FvwmPagerFore darkred *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmPagerHilight #c0c0c0 *FvwmPagerLabel 0 Progs ##########################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 steelblue *FvwmBackerDesk 1 -solid midnightblue *FvwmScrollBack grey40 *FvwmScrollFore green # # Icon file specifications # # Mostly, you don't have to specify icon files, as FvwmIconBox now # reads icon files specified in Style commands. # *FvwmIconBox "Fvwm*" - # FvwmAudio tutut #*FvwmAudioPlayCmd /usr/local/bin/wavplay #*FvwmAudioDir /usr/local/sounds #*FvwmAudioDelay 1 #*FvwmAudio startup "houston.wav" #*FvwmAudio shutdown "dingue.wav" #*FvwmAudio iconify "with_force.wav" #*FvwmAudio deiconify "rire1.wav" #FVWMBUTTONS by solinux *FvwmButtonsFore Black *FvwmButtonsBack SteelBlue3 *FvwmButtonsFont -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 *FvwmButtonsGeometry +0-0 *FvwmButtonsRows 1 *FvwmButtons Xterm xterm-linux.xpm Exec "xterm" xterm & *FvwmButtons Netscape netscape.xpm Exec "Netscape" netscape & *FvwmButtons Arrêt on_off.xpm Quit #BORDER STYLE... borderstyle inactive tiledpixmap wood2.xpm -- HiddenHandles borderstyle Active tiledpixmap wood1.xpm -- HiddenHandles ######################## COMBINAISON DE TOUCHES ############################### # Certaines de ces combinaisons rappelle etrangement un O.S bien connu ;) Les # principales sont : # Meta-Tab : passer d'une fenetre a une autre # Meta-F4 : fermer l'application active # Meta-fleche : passer d'un ecran virtuel a un autre # Meta-F1 : faire apparaitre le menu principal # Meta-F9 : iconifier # etc... Rappelons que Meta = touche au losange # Passer d'une fenetre a une autre Key Tab A M Next [CurrentDesk !iconic] Focus Key Tab A MS Prev [CurrentDesk !iconic] Focus Key Tab A CM Next [CurrentDesk] deiconify-and-focus Key Tab A CMS Prev [CurrentDesk] deiconify-and-focus # Meta-fleche pour passer d'un ecran virtuel a un autre : Key Left A M Scroll -100 0 Key Right A M Scroll +100 +0 Key Up A M Scroll +0 -100 Key Down A M Scroll +0 +100 # Accelerateurs claviers : Key F1 A M Popup MainMenu Key F2 A M Popup Window-Ops Key F3 A M WindowList Key F4 A M Close Key F5 A M CirculateUp Key F6 A M CirculateDown Key F7 A M Move Key F8 A M Resize Key F9 A M Iconify Key F10 A M Maximize