####################################################################### # # # Menu: # # @pi - Program icons # @m - Menus # @f - Style des fenêtres # @irf - Init and restart functions # @mb - Mouse bindings # -@rc - Raccourcis clavier # @fo - Fonctions # @b - Bouttons # @p - Pager # @ba - Backer # @bt - Barre des taches # # # colorsets : 11 12 13 14 7 8 10 60 61 62 63 # ####################################################################### imagePath /usr/X11R6/include/X11/pixmaps/:/home/peyo/.fvwm/icons/:\ /usr/share/pixmaps/:/usr/share/icons: DeskTopSize 2x2 EdgeScroll 100 100 EdgeResistance 250 100 #Style "*" UseStyle default-style Style "*" WindowShadeSteps 30 Style "*" BackingStoreOff, SaveUnderOff Style "*" SmartPlacement Style "*" RandomPlacement Style "*" NoPPosition #Style "*" IconBox 50 -200 -1 -60 #Style "*" SloppyFocus Style "*" GrabFocusTransient Style "*" StickyIcon Style "*" Icon unknown1.xpm, MiniIcon mini.x.xpm #Style "*" ResizeOpaque Style "*" Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10" Style "Fvwm*" NoTitle Style "Fvwm*" WindowListSkip Style "Fvwm*" CirculateSkip Style "FvwmButtons" Sticky, HandleWidth 0, StaysOnTop Style "FvwmIconMan" Sticky Style "FvwmPager" Sticky, StaysOnTop, Handles, HandleWidth 5 Style "FvwmTaskBar" NoTitle, BorderWidth 1, HandleWidth 1, Sticky, StaysOnTop ################################################################ # # # @pi - Section: Program icons # # Style pour certaines icones # ################# Style "Emacs" Icon emacs.png, MiniIcon emacs.png Style "gnome-terminal" Icon terminal.png, MiniIcon terminal.png Style "xterm" Icon terminal.png, MiniIcon terminal.png Style "Mozilla*" Icon mozilla.xpm, MiniIcon mozilla.mini.xpm, \ StartsOnDesk 1, SkipMapping Style "evolution*" Icon evolution.xpm, MiniIcon mini.evolution.xpm, \ StartsOnDesk 5, SkipMapping ################################################################ # # # @m - Section: Menus # # ################# Colorset 11 fg black, bg #c6c3c6, RootTransparent, Tint #efebef 75 MenuStyle * MenuColorset 11 DestroyMenu /Debian AddToMenu /Debian #Read /etc/X11/fvwm/main-menu-pre.hook Quiet Read main-menu-pre.hook Quiet # Read the auto-generated menus Read /etc/X11/fvwm/menudefs.hook Quiet #AddToMenu "/Debian" "*debian.xpm*" Title Top # Add in user additions #Read /etc/X11/fvwm/main-menu.hook Quiet #Read main-menu.hook Quiet DestroyMenu "Radio-Launcher" AddToMenu "Radio-Launcher" "Radio Launcher" Title + "France Inter" Exec xmms http://ogg.tv-radio.fr:1441/encoderfinter.ogg & + "France Info" Exec xmms http://ogg.tv-radio.fr:1441/encoderfinfo.ogg & + "France Culture" Exec xmms http://ogg.tv-radio.fr:1441/encoderfculture.ogg & + "France Musique" Exec xmms http://ogg.tv-radio.fr:1441/encoderfmusiques.ogg & + "FIP" Exec xmms http://ogg.tv-radio.fr:1441/encoderfip.ogg & + "Hector" Exec xmms http://ogg.tv-radio.fr:1441/encoderhector.ogg & + "Le Mouv" Exec xmms http://ogg.tv-radio.fr:1441/encoderlemouv.ogg & + "CityRadio Paris" Exec xmms http://ogg.tv-radio.fr:1441/encodercityradio.ogg & DestroyMenu "Quit-Verify" AddToMenu "Quit-Verify" "Quitter ?" Title + "Oui, quitter la session" Quit + "" Nop + "Non, ne pas quitter" Nop DestroyMenu Utilities AddToMenu Utilities "-=[ solea ]=-" Title + "Radio Launcher" Popup Radio-Launcher + "" Nop + "Terminal Gnome" Exec exec gnome-terminal + Emacs Exec exec emacs + Calculette Exec exec xcalc + "" Nop + "Rafraîchir l'écran" Refresh + "Relancer Fvwm" Restart + "Quitter la session" Popup Quit-Verify DestroyMenu MenuFvwmWindowOps AddToMenu MenuFvwmWindowOps + "Resize" Pick Resize + "Iconify " Pick Iconify + "Thumbnail " Pick Thumbnail + "Maxmimise" Pick Maximize + "Shade" Pick WindowShade Toggle + "" Nop + "Stick" Pick Stick + "Scroll" Pick Module FvwmScroll + "Refresh" Pick RefreshWindow + "" Nop + "Identify" Pick Module FvwmIdent + "Zoom" Pick Exec exec xmag -source \ $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2 + "" Nop + Close Pick Close + "Destroy" Pick Destroy ################################################################ # # # @f - Section: Style des fenêtres # # ################# Colorset 13 fg #f6f6f6, bg black, IconAlpha 100 Colorset 14 fg white, bg black, fgsh black, IconAlpha 100 #Style * Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10" Style * Font "xft:Aquafont:size=10", BorderWidth 1, HandleWidth 1 Style * Colorset 13, HilightColorset 14, MWMFunctions, MWMDecor, HintOverride Style * DecorateTransient, NoPPosition, IconBox 20 20 100 -15, IconGrid 3 3, IconFill right bottom Style * SloppyFocus, MouseFocusClickRaises, TileCascadePlacement, WindowShadeSteps 20 Style * GrabFocusOff, NoIconTitle, !AllowMaximizeFixedSize, FPReleaseFocus, IndexedIconName # Style des fenêtres iconifiées Colorset 12 fg white, bg black, fgsh black, RootTransparent Style * IconTitle, IconTitleColorset 12, HilightIconTitleColorset 12, \ IconTitleRelief 0 Style * IconFont "xft:Aquafont:size=10 minspacing=True", IndexedIconName, \ IconBackgroundPadding 2, Style * IconBackgroundRelief 0, IconBackGroundColorset 12 # This is another nice Placement Policy, which tries to avoid # obscuring existing windows, you can set penalties on certain # window types so some are less likely to be obscured than # others. Check the manpage for even more Placement Policies. Style * MinOverlapPercentPlacement Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50 BorderStyle Active Solid black -- NoInset HiddenHandles BorderStyle Inactive Solid black -- NoInset HiddenHandles ##### # My Vectors look like this # # +----------------------------------------------------------+ # | . _ # X | # +----------------------------------------------------------+ # | 1 6 4 2 | # | | # | # # When the Buttons are ActiveDown (Pressed), they move 5% to the right # and 5% down, which gives the impression of being pressed. I've also used # a vector to seperate the buttons out on active windows. # # Active Window TitleBar has a Vertical Gradient of White (at the top) to # Black at the bottom where the buttons are, and a gradient of Blue to black over # the title, using 16 shades (one for each pixel, so looks like a nice, smooth transition). # # Inactive uses a tinted transparent colorset, with white text and buttons. ################## Colorset 7 fg black, bg white, NoShape, RootTransparent Buffer, Tint #405a8b 60 Colorset 8 fg black, bg white, NoShape, RootTransparent Buffer, Tint #f6f6f6 20 DestroyDecor DefaultDecor AddToDecor DefaultDecor + TitleStyle LeftJustified Height 16 + TitleStyle InActive ( Colorset 8 -- Flat ) Active ( Colorset 7 -- Flat ) + ButtonStyle All InActive ( Colorset 8 -- Flat ) + ButtonStyle All Active ( Colorset 7 -- Flat ) #( VGradient 15 1 #45abc9 90 #000000 -- Flat ) + AddButtonStyle 4 ActiveUp Vector 9 30x30@2 30x60@2 60x60@2 60x30@2 \ 30x30@2 30x35@2 60x35@2 0x99@4 0x0@2 -- Flat + AddButtonStyle 4 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 \ 30x30@3 30x35@3 60x35@3 -- Flat + AddButtonStyle 4 ActiveDown Vector 10 35x35@2 35x65@2 65x65@2 65x35@2 \ 35x35@2 35x40@2 65x40@2 0x99@4 0x0@2 99x0@2 -- Flat + AddButtonStyle 1 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat + AddButtonStyle 1 ActiveUp Vector 6 44x44@2 44x45@2 45x45@2 44x44@2 99x99@4 \ 99x0@2 -- Flat + AddButtonStyle 1 ActiveDown Vector 8 49x49@2 49x50@2 50x50@2 49x49@2 99x90@4 \ 99x0@2 99x0@2 0x0@2-- Flat + AddButtonStyle 6 ActiveUp Vector 7 30x60@2 60x60@2 60x50@2 30x50@2 30x60@2 0x99@4 \ 0x0@2 -- Flat + AddButtonStyle 6 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat + AddButtonStyle 6 ActiveDown Vector 8 35x65@2 65x65@2 65x60@2 35x60@2 35x65@2 0x99@4 \ 0x0@2 99x0@2 -- Flat + AddButtonStyle 2 ActiveUp Vector 6 30x30@2 60x60@2 60x30@4 30x60@2 0x99@4 \ 0x0@2 -- Flat + AddButtonStyle 2 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat + AddButtonStyle 2 ActiveDown Vector 7 35x35@2 65x65@2 65x35@4 35x65@2 0x99@4 \ 0x0@2 99x0@2 -- Flat + ButtonStyle 1 - MwmDecorMenu + ButtonStyle 6 - MwmDecorMin + ButtonStyle 4 - MwmDecorMax Style * UseDecor DefaultDecor ####################################################################### # # @irf - Section: Init and restart functions # ###################################### DestroyFunc InitFunction AddToFunc InitFunction #+ "I" Exec exec setup-background Read init.hook Quiet Read init-restart.hook Quiet DestroyFunc RestartFunction AddToFunc RestartFunction Read restart.hook Quiet Read init-restart.hook Quiet ####################################################################### # # @mb - Section: Mouse Bindings # ###################################### # Syntax Reminder: # Mouse Button Context Modifiers Function Mouse 1 R A Menu Utilities Mouse 2 R A Menu /debian Mouse 3 R A WindowList Mouse 0 1 A Menu MenuFvwmWindowOps Nop Mouse 0 2 A DestroyOnHold Mouse 0 6 A Thumbnail Mouse 0 4 A Maximize 1135p 1000p Mouse 4 T A WheelToggleShade True Mouse 5 T A WheelToggleShade False Mouse 1 FS A Resize-or-Raise Mouse 1 T A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 2 I A Iconify Mouse 3 TSIF A RaiseLower Mouse 3 W M Menu Window-Ops Nop Mouse 2 W C Resize-or-Raise Mouse 1 W M Move-or-Raise Key Tab A M WindowList ####################################################################### # # @fo - Section: Fonctions # ###################################### ##### # Name: DestroyOnHold # Bound: Titlebar Button 2 (X) # Purpose: When clicked, Raise the window Immediately. # If the button is pressed and released, Close the Window. If it is pressed # and held, Destroy it, and issue a Beep to confirm. # # There is a 100ms delay before issuing `Close` so I have a chance to see the # animation when the button changes from ActiveDown to ActiveUp :). # ################# DestroyFunc DestroyOnHold AddToFunc DestroyOnHold I Raise + C Schedule 100 Close + H Destroy + H Beep ##### # Name: Thumbnail # Purpose: Iconify a window with a reduced screenshot of the application # Window, looks really cool. # # Uses FvwmEvent to remove the Icon when deiconified, you will want # to remove this if you use WindowStyle elsewhere. # # Thumbnailing example: [6]http://dev.gentoo.org/~taviso/step2.png # ################## DestroyFunc Thumbnail AddToFunc Thumbnail + I Raise + I PipeRead "xwd -silent -id $[w.id] | convert -scale 120x120 -frame 1x1 \ -mattecolor black -quality 0 xwd:- png:$[HOME]/.fvwm/icon.tmp.$[w.id].png \ && echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png, StaysOnBottom \ || echo Nop" + I Iconify DestroyFunc DeThumbnail AddToFunc DeThumbnail + I DestroyWindowStyle + I Exec exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].png # FIXME: This will destroy all Windowstyle settings. *FvwmEvent: deiconify DeThumbnail ##### # Miscellaneous Functions ################# AddToFunc Move-or-Raise I Raise + M Move + D WindowShade Toggle 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 ####################################################################### # # @b - Section: Bouttons # ###################################### Colorset 10 fg black, bg #c6c3c6, RootTransparent, Tint #efebef 45 DestroyModuleConfig FvwmButtons: * *FvwmButtons: Geometry +1140+0 *FvwmButtons: Columns 23 *FvwmButtons: Rows 80 *FvwmButtons: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10" *FvwmButtons: Colorset 10 *FvwmButtons: Frame 1 *FvwmButtons: Padding 2 0 *FvwmButtons: (Size 1x200, Back #dedbde, Frame 1, Action (Mouse 1) `Nop`) *FvwmButtons: (Title (Side) " Terminal", Left, Back #dedbde, Icon terminal.png, \ Size 22x2, Action (Mouse 1) `Exec exec gnome-terminal`) *FvwmButtons: (Title (Side) " Emacs", Left, Back #dedbde, Icon emacs.png, \ Size 22x2, Action (Mouse 1) `Exec exec emacs`) *FvwmButtons: (Title (Side) " Calculatrice", Left, Back #dedbde, Icon calc.png, \ Size 22x2, Action (Mouse 1) `Exec exec xcalc`) *FvwmButtons: (Title (Side) " Dselect", Left, Back #dedbde, Icon Box-DEB.png, \ Size 22x2, Action (Mouse 1) `Exec exec gnome-terminal -e "sudo dselect"`) *FvwmButtons: (Title (Side) " File Manager", Left, Back #dedbde, Icon filemanager.png, \ Size 22x2, Action (Mouse 1) `Exec exec rox`) *FvwmButtons: (Title (Side) " The Gimp", Left, Back #dedbde, Icon gimp.png, \ Size 22x2, Action (Mouse 1) `Exec exec gimp`) *FvwmButtons: (Size 22x1, Frame 0, Back #c6c3c6, Action (Mouse 1) `Nop`) *FvwmButtons: (Title (Side) " Mozilla", Left, Back #dedbde, Icon mozilla.png, \ Size 22x2, Action (Mouse 1) `Exec exec mozilla`) *FvwmButtons: (Title (Side) " Mail", Left, Back #dedbde, Icon evolution-1.4.png, \ Size 11x2, Action (Mouse 1) `Exec exec evolution`) *FvwmButtons: (Title (Side) " IRC", Left, Back #dedbde, Icon xchat.png, \ Size 11x2, Action (Mouse 1) `Exec exec xchat`) *FvwmButtons: (Title (Side) " Nicotine", Left, Back #dedbde, Icon nicotine.png \ Size 22x2, Action (Mouse 1) `Exec exec nicotine`) *FvwmButtons: (Size 22x1, Frame 0, Back #c6c3c6, Action (Mouse 1) `Nop`) *FvwmButtons: (Title (Side) " Xine", Left, Back #dedbde, Icon xine.png, \ Size 22x2, Action (Mouse 1) `Exec exec xine`) *FvwmButtons: (Title (Side) " Rhythmbox", Left, Back #dedbde, Icon rhythmbox.png, \ Size 22x2, Action (Mouse 1) `Exec exec rhythmbox`) *FvwmButtons: (Title (Side) "Xmms", Left, Back #dedbde, Icon xmms.png, \ Size 10x2, Action (Mouse 1) `Exec exec xmms`) *FvwmButtons: (Title (Side) "Mixer", Left, Back #dedbde, Icon volume.png, \ Size 12x2, Action (Mouse 1) `Exec exec gnome-alsamixer`) *FvwmButtons: (Title (Side) "Grip", Left, Back #dedbde, Icon grip.png, \ Size 10x2, Action (Mouse 1) `Exec exec grip`) *FvwmButtons: (Title (Side) "CDBurn", Left, Back #dedbde, Icon xcdroast.png, \ Size 12x2, Action (Mouse 1) `Exec exec xcdroast`) *FvwmButtons: (Size 22x1, Frame 0, Back #c6c3c6, Action (Mouse 1) `Nop`) *FvwmButtons: (Title (Side) " gtksw #1", Left, Back #dedbde, Icon gtksw2.png, \ Size 15x2, Action (Mouse 1) `Exec exec gtk-theme-switch`) *FvwmButtons: (Title (Side) " #2", Left, Back #dedbde, \ Size 7x2, Action (Mouse 1) `Exec exec gtk-theme-switch2`) *FvwmButtons: (Title (Side) " Restart fvwm", Left, Back #dedbde, Icon restart.png, \ Size 22x2, Action (Mouse 1) `Restart`) *FvwmButtons: (Title (Side) " Edit fvwm", Left, Back #dedbde, Icon edit.png, \ Size 22x2, Action (Mouse 1) `Exec exec emacs /home/peyo/.fvwm2rc`) *FvwmButtons: (Title (Side) " Quit Fvwm", Left, Back #dedbde, Icon stop.png, \ Size 22x2, Action (Mouse 1) `Module FvwmScript FvwmScript-Quit`) *FvwmButtons: (Size 22x1, Frame 0, Back #c6c3c6, Action (Mouse 1) `Nop`) *FvwmButtons: (Size 11x5, Swallow wmclockmon, 'Exec exec wmclockmon -bw -lc rgb:5d/dd/ff') *FvwmButtons: (Size 11x5, Swallow wmifs, 'Exec exec wmifs') #*FvwmButtons: (Size 8x4, Swallow asmix, 'Exec exec asmix') *FvwmButtons: (Size 11x5, Swallow wmmixer, 'Exec exec wmmixer') *FvwmButtons: (Size 11x5, Swallow wmsetimon, 'Exec exec wmsetimon') *FvwmButtons: (Size 22x1, Frame 0, Back #c6c3c6, Action (Mouse 1) `Nop`) *FvwmButtons: (Size 22x50, Swallow "FvwmPager" "FvwmPager 0 5") Module FvwmButtons ##################################################################### # # @p - Section: Pager # #################################### #### Pager Colorset Colorset 60 fg white, bg black, RootTransparent Buffer, Tint black 20 Colorset 61 fg white, bg black, Noshape, RootTransparent Buffer, Tint #efebef 40 Colorset 62 fg white, bg black, RootTransparent Buffer, Tint #466696 50 Colorset 63 fg white, bg black, Noshape, RootTransparent Buffer, Tint #101f36 50 *FvwmPager: Colorset * 10 *FvwmPager: HilightColorset * 11 *FvwmPager: WindowColorsets 63 62 *FvwmPager: BalloonColorset * 63 *FvwmPager: UseSkipList *FvwmPager: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10" *FvwmPager: SmallFont "xft:Bitstream Vera Sans Mono:style=Roman:size=10" #*FvwmPager: Geometry 10x50 #*FvwmPager: DeskTopScale 32 *FvwmPager: MiniIcons *FvwmPager: Balloons *FvwmPager: Label 0 "général" *FvwmPager: Label 1 "web" *FvwmPager: Label 2 "stuff" *FvwmPager: Label 3 "solea" *FvwmPager: Label 4 "peyo" *FvwmPager: Label 5 "mail" *FvwmPager: Columns 1 #*FvwmPager: ShapeLabels #*FvwmPager: Window3DBorders # Module FvwmPager 0 5 ##################################################################### # # @ba - Section: Backer # #################################### #### # Définiton des paramètres du fond d'écran pour les bureaux # Esetroot (cf. enlightenment) est requis pour les transparences #### *FvwmBacker: Command Exec Esetroot -scale=1280x1024 \ Images/Wallpapers/textur_drap1.jpg Module FvwmBacker ##################################################################### # # @bt - Section: Barre des tâches # #################################### Colorset 70 fg black, bg #c6c3c6, RootTransparent, Tint #efebef 65 *FvwmTaskBar: DeskOnly *FvwmTaskBar: Colorset 70 *FvwmTaskBar: UseSkipList *FvwmTaskBar: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10" *FvwmTaskBar: SelFont "xft:Bitstream Vera Sans Mono:style=Bold:size=10" *FvwmTaskBar: Geometry +0-0 #*FvwmTaskBar: StartMenu /debian #*FvwmTaskBar: StartName Start #*FvwmTaskBar: StartIcon xine.png *FvwmTaskBar: NoDefaultStartButton Module FvwmTaskBar