# k58.uk default .fvwmrc with copypasta and some deletions ModulePath /usr/X11R6/lib/X11/fvwm PixmapPath /usr/X11R6/include/X11/pixmaps IconPath /usr/X11R6/include/X11/bitmaps # KPB: Set a default font that is big enough to read on the laptop # KPB: and zap all other font definitions DefaultFont -adobe-helvetica-bold-r-*-*-18-*-*-*-*-*-*-* # KPB: Double click delay? ClickTime 300 # KPB: Currently focussed window... HilightColor gold mediumseagreen # KPB: Just one effing screen already! DeskTopSize 1x1 # KPB: Change the window decoration colours as we point at windows ColormapFocus FollowsMouse # KPB: default Styles: Window appearance - I'm working on flatter look Style "*" BorderWidth 7, HandleWidth 7 # KPB: Setting below for unfocussed windows Style "*" Icon unknown1.xpm, Color silver/sienna Style "*" MWMFunctions, MWMDecor, HintOverride Style "*" DecorateTransient, NoPPosition Style "*" IconBox 0 -10 -280 -1 Style "*" FocusFollowsMouse Style "*" RandomPlacement, SmartPlacement # some simple default key bindings: KPB I want to rationalise these Key Next A SCM Next [*] Focus Key Prior A SCM Prev [*] Focus # some simple default mouse bindings: KPB This controls mouse # 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 ######################## Menus ################### AddToMenu RootMenu "Root Menu" Title + "XTerm%mini.xterm.xpm%" Exec exec xterm #+ "Rxvt" Exec exec rxvt + "" Nop #+ "Remote Logins" Popup Remote-Logins + "" Nop + "Programs" Popup Programs + "Utilities" Popup Utilities + "Volume" Popup Volume + "" Nop + "Refresh Screen" Refresh + "Recapture Screen" Recapture + "(Re)Start" Popup Quit-Verify + "" Nop + "Exit" Module FvwmForm QuitVerify AddToMenu Programs "Programs" Title + "Firefox" Exec exec firefox + "Terminal" Exec exec xterm + "Thunar" Exec exec thunar + "Leafpad" Exec exec leafpad + "Writer" Exec exec swriter + "Calc" Exec exec scalc + "Impress" Exec exec simpress + "GIMP" Exec exec gimp + "Inkscape" Exec exec inkscape + "Audacious" Exec exec audacious + "Audacity" Exec exec audacity AddToMenu Utilities "Utilities" Title + "Top" Exec exec xterm -T Top -n Top -e top + "Calculator" Exec exec xcalc + "XLock%mini.xlock.xpm%" Exec exec xlock + "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults # KPB: Might want to add shutdown and reboot here AddToMenu Quit-Verify + "Restart Fvwm%mini.refresh.xpm%" Restart fvwm + "" Nop + "No, Don't Quit" Nop AddToMenu Volume "Volume" Title + "+5%%" Exec exec sndioctl output.level=+0.05 + "-5%%" Exec exec sndioctl output.level=-0.05 + "+1%%" Exec exec sndioctl output.level=+0.01 + "-1%%" Exec exec sndioctl output.level=-0.01 ######################## Sample Functions ########################## AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower # KPB: this one allows a proper toggled maximise AddToFunc Maximize-Func "M" Maximize + "C" Maximize 100 100 + "D" Maximize 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 AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture #KPB: This combines changing focus and raising for alt-tab #KPB: See end of the keyboard shortcut section below AddToFunc SelectWindow + I Focus + I Raise + I WarpToWindow 50 8p ############################################################################ # Now some keyboard shortcuts. # KPB: alt-tabbing kpb Look for AddToFunc SelectWindow above Key Tab A M Next (CurrentDesk !Iconic) SelectWindow # KPB: alt-shift-tabbing to reverse Key Tab A SM Prev (CurrentDesk !Iconic) SelectWindow ############################################################################ # KPB: definitions for the confirmation dialogue # KPB: I want these for shutdown/reboot items as well # FvwmForm alias - query exit ala mwm *QuitVerifyGrabServer *QuitVerifyWarpPointer #*QuitVerifyFont *helvetica*m*r*n*14* #*QuitVerifyButtonFont *helvetica*m*o*n*14* #*QuitVerifyButtonFont 7x13bold *QuitVerifyFore Black *QuitVerifyBack Light Gray *QuitVerifyItemFore Wheat *QuitVerifyItemBack Gray50 # begin items *QuitVerifyLine center *QuitVerifyText "Do you really want to exit FVWM?" *QuitVerifyLine expand *QuitVerifyButton quit " Tata" *QuitVerifyCommand Quit *QuitVerifyButton quit "Bye" *QuitVerifyCommand Nop