# Paul Gorman's ~/.fvwm/config ### Global options ### GlobalOpts SloppyFocus, MouseFocusClickRaises ColormapFocus FollowsMouse ImagePath /usr/share/pixmaps:/usr/share/pixmaps/fvwm EdgeScroll 0 0 DeskTopSize 1x1 ### Styles ### Style * Font -misc-fixed-bold-r-normal-*-13-*-*-*-*-*-*-* Style * IconFont -misc-fixed-bold-r-normal-*-13-*-*-*-*-*-*-* Style * HilightFore black, HilightBack pink Style * BorderWidth 4, HandleWidth 4 Style * Icon unknown1.xpm, Color lightgrey/dimgrey Style * MWMFunctions, MWMDecor, HintOverride Style * DecorateTransient, !UsePPosition Style * FPEnterToFocus, !FPLeaveToUnfocus Style * IconBox -20 0 -1 -1 , IconFill bottom right Style * TileCascadePlacement Style * EdgeMoveResistance 200 Style * SnapAttraction 8 SameType ScreenAll Style * SnapGrid 8 Menustyle * fvwm, Font -misc-fixed-bold-r-normal-*-13-*-*-*-*-*-*-* MenuStyle * Foreground black, Background grey60, Greyed grey40 Style "Fvwm*" !Title, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip Style "FvwmPager" NeverFocus Style "Iceweasel" Icon iceweasel.xpm, DontStackTransientParent Style "*rxvt*" Icon display.xpm, MiniIcon mini.display.xpm, FPGrabFocus Style "*lock" !Title, !Handles, Sticky, WindowListSkip, ClickToFocus Style "xclock" Sticky, WindowListSkip, StaysOnTop Style "vlc" Layer 7 # Move through windows Key Tab A M Next (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFocus Key j A M Next (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFocus Key k A M Prev (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFocus Key Tab A MS Prev (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFlipFocus # Move through desktops Key h A M GotoDesk -1 Key l A M GotoDesk +1 # Raise Icons, Pager, IconManager DestroyFunc RaiseIconsAndPager AddToFunc RaiseIconsAndPager + I All (Iconic) Raise + I All ("FvwmPager") Raise + I All ("FvwmIconMan") Raise + I All ("xclock") Raise Key space A M RaiseIconsAndPager # Lower Icons, Pager, IconManager DestroyFunc LowerIconsAndPager AddToFunc LowerIconsAndPager + I All (Iconic) Lower + I All ("FvwmPager") Lower + I All ("FvwmIconMan") Lower + I All ("xclock") Lower Key space A SM LowerIconsAndPager # 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 NoGeometry, NoCurrentDeskTitle, TitleForAllDesks, NoNumInDeskTitle # Bindings for window buttons # Button numbers are odd on the left, even on the right: 13579 08642 Mouse 1 1 A WindowShade Mouse 1 4 A Iconify Mouse 1 2 A Maximize # Bindings for other parts of the window/borders: Mouse 1 F A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 2 TIF A WindowList NoGeometry, NoCurrentDeskTitle, TitleForAllDesks, NoNumInDeskTitle Mouse 3 FST A Menu Window-Ops Nop # Bindings for iconified widnows: Mouse 1 I A Iconify Mouse 3 I A Move # I still love wmii! Key p A M Exec dmenu_run -i Key Return A M Exec rxvt # Raise and Focus function DestroyFunc RaiseAndFocus AddToFunc RaiseAndFocus + I Focus + I Raise DestroyFunc RaiseAndFlipFocus AddToFunc RaiseAndFlipFocus + I FlipFocus + I Raise # Tile windows DestroyFunc ArrangeWindowsTileVerticalMatrix AddToFunc ArrangeWindowsTileVerticalMatrix + I FvwmRearrange -tile 0 0 100 100 -mn 2 -r DestroyFunc ArrangeWindowsTileHorizontalRows AddToFunc ArrangeWindowsTileHorizontalRows + I FvwmRearrange -tile 0 0 100 100 -h -r DestroyFunc ArrangeWindowsMax AddToFunc ArrangeWindowsMax + I FvwmRearrange -resize 0 0 100 98 -flatx -flaty Key F12 A M ArrangeWindowsTileVerticalMatrix Key F11 A M ArrangeWindowsTileHorizontalRows Key F10 A M ArrangeWindowsMax # Bindings for desk switching: key Tab A C GotoDesk 1 0 0 9 key 1 A M GotoDesk 0 0 key 2 A M GotoDesk 0 1 key 3 A M GotoDesk 0 2 key 4 A M GotoDesk 0 3 key 5 A M GotoDesk 0 4 key 6 A M GotoDesk 0 5 key 7 A M GotoDesk 0 6 key 8 A M GotoDesk 0 7 key 9 A M GotoDesk 0 8 key 0 A M GotoDesk 0 9 # Bindings for moving windows to other desktops: Key 1 A MS MoveToDesk 0 0 Key 2 A MS MoveToDesk 0 1 Key 3 A MS MoveToDesk 0 2 Key 4 A MS MoveToDesk 0 3 Key 5 A MS MoveToDesk 0 4 Key 6 A MS MoveToDesk 0 5 Key 7 A MS MoveToDesk 0 6 Key 8 A MS MoveToDesk 0 7 Key 9 A MS MoveToDesk 0 8 Key 0 A MS MoveToDesk 0 9 # Close window: Key c A MS Close # Desktop names: DesktopName 0 1 DesktopName 1 2 DesktopName 2 3 DesktopName 3 4 DesktopName 4 5 DesktopName 5 6 DesktopName 6 7 DesktopName 7 8 DesktopName 8 9 DesktopName 9 10 ######################## Initialization Functions ############################ AddToFunc StartFunction + I Module FvwmPager 0 9 # + I Module FvwmIconMan AddToFunc InitFunction + I exec xsetroot -solid 'Dark Sea Green' # For some SM-s (like gnome-session) there is an internal background setter. AddToFunc SessionInitFunction + I Nop ########################### Pager ######################################### *FvwmPager: Back LightSteelBlue *FvwmPager: Fore #484048 *FvwmPager: Font -misc-*-bold-*-*-*-13-*-*-*-*-*-*-* *FvwmPager: Hilight pink *FvwmPager: Geometry -250-0 *FvwmPager: DeskTopScale 60 *FvwmPager: Rows 1 *FvwmPager: Columns 10 *FvwmPager: LabelsAbove *FvwmPager: Label 0 1 *FvwmPager: Label 1 2 *FvwmPager: Label 2 3 *FvwmPager: Label 3 4 *FvwmPager: Label 4 5 *FvwmPager: Label 5 6 *FvwmPager: Label 6 7 *FvwmPager: Label 7 8 *FvwmPager: Label 8 9 *FvwmPager: Label 9 10 *FvwmPager: SmallFont 5x8 *FvwmPager: Balloons All *FvwmPager: BalloonBack black *FvwmPager: BalloonFore pink *FvwmPager: BalloonFont -misc-*-bold-*-*-*-13-*-*-*-*-*-*-* *FvwmPager: BalloonYOffset +2 *FvwmPager: BalloonBorderWidth 1 *FvwmPager: BalloonBorderColor Black ########################## FvwmIconMan ################################## *FvwmIconMan: DrawIcons true *FvwmIconMan: ReliefThickness 0 *FvwmIconMan: Action Mouse 1 N sendcommand RaiseAndFocus *FvwmIconMan: Action Mouse 2 N sendcommand Iconify *FvwmIconMan: Font -misc-fixed-bold-r-normal-*-13-*-*-*-*-*-*-* *FvwmIconMan: ManagerGeometry 1x0+0+0 ######################## Menus ################### AddToMenu RootMenu "Root Menu" Title + "Restart Fvwm" Restart + "Refresh Screen" Refresh + "Recapture Screen" Recapture + "" Nop + "FvwmTalk" FvwmTalk + "" Nop + "rxvt" Exec exec rxvt + "gvim" Exec exec gvim + "xlock" Exec exec xlock + "Firefox" Exec exec iceweasel Test (f /etc/X11/fvwm/menudefs.hook) + "Debian Menu" Popup /Debian Test (f /etc/X11/fvwm/menudefs.hook) + "Re-read System Menu" Read "/etc/X11/fvwm/menudefs.hook" Test (f /etc/X11/fvwm/menudefs.hook) + "Update My Debian Menu" PipeRead 'update-menus && echo "Read $./menudefs.hook"' + "" Nop + "Exit Fvwm" Popup Quit-Verify AddToMenu Window-Ops "Window Ops" Title + "Close" Close + "Stay On Top" Layer 0 6 + "End On Top" Layer 0 4 + "" Nop + "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" Maximize + "" Nop + "Close" Close + "Delete" Delete + "Destroy" Destroy + "" Nop + "Refresh Window" RefreshWindow AddToMenu Module-Popup "FvwmModules" Title + "Identify" Module FvwmIdent + "Talk" Module FvwmTalk + "" Nop + "Button-Bar" Module FvwmButtons + "Pager" Module FvwmPager 0 9 + "Pager (10 desks)" Module FvwmPager 0 9 + "WinList" Module FvwmWinList + "" Nop + "Banner" Module FvwmBanner + "ScrollBar" Module FvwmScroll 50 50 + "Background" Module FvwmBacker + "AutoRaise" Module FvwmAuto 200 Raise Nop + "Stop AutoRaise" KillModule FvwmAuto + "" Nop + "IconBox" Module FvwmIconBox + "IconMan" Module FvwmIconMan + "" Nop + "Form - QuitVerify" Module FvwmForm QuitVerify AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "Yes, Really Quit" Quit + "" Nop + "Restart Fvwm" Restart + "" Nop + "Start dummy" Restart xterm + "" Nop + "No, Don't Quit" Nop # FvwmForm alias - query exit ala mwm *QuitVerify: GrabServer *QuitVerify: WarpPointer *QuitVerify: Font *helvetica*m*r*n*14* *QuitVerify: ButtonFont 7x13bold *QuitVerify: Fore Black *QuitVerify: Back Light Gray *QuitVerify: ItemFore Wheat *QuitVerify: ItemBack Gray50 # begin items *QuitVerify: Line center *QuitVerify: Text "Do you really want to exit fvwm?" *QuitVerify: Line expand *QuitVerify: Button quit " Exit " *QuitVerify: Command Quit *QuitVerify: Button quit "Cancel" *QuitVerify: Command Nop ######################## Sample Functions ########################## AddToFunc Move-or-Raise I Raise + M Move + D Lower AddToFunc Resize-or-Raise I Raise + M Resize + D Lower AddToFunc Iconify-and-Raise I Iconify + I Raise