paulgorman.org/technical

Paul Gorman’s ~/.fvwm/config

Global options

GlobalOpts SloppyFocus, MouseFocusClickRaises ColormapFocus FollowsMouse

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 * IconBox 0 -10 -280 -1 Style * FocusFollowsMouse 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” StaysOnTop

Style “Iceweasel” DontStackTransientParent Style “XTerm” Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140 Style “rxvt” Icon urxvt.xpm, SloppyFocus, IconBox -70 1 -1 -140, FPGrabFocus Style “rxvt” MWMBorder, MWMButtons Style “*lock” !Title, !Handles, Sticky, WindowListSkip, ClickToFocus Style “xclock” StaysOnTop, Sticky, WindowListSkip Style “vlc” Layer 7

#Key Tab A M WindowList Root c c CurrentDesk, CurrentAtEnd, NoCurrentDeskTitle Key Tab A M Next (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFocus Key Escape A M Prev (AcceptsFocus, CurrentDesk, !Iconic) RaiseAndFlipFocus

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

Bindings for window titles

Mouse 0 1 A WindowList Mouse 0 2 A Maximize-Func Mouse 0 4 A Iconify

Bindings 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

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

######################## Initialization Functions ############################ AddToFunc StartFunction + I Module FvwmPager 0 9

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

######################## Menus ################### AddToMenu RootMenu “Root Menu” Title + “rxvt” Exec exec rxvt + “gvim” Exec exec gvim + “xlock” Exec exec iceweasel + “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 + “Fvwm Window Ops” Popup Window-Ops + “Fvwm Modules” Popup Module-Popup + “” Nop + “Restart Fvwm” Restart + “Refresh Screen” Refresh + “Recapture Screen” Recapture + “” Nop + “Exit Fvwm” Popup Quit-Verify

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 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

######################## Sample Functions ##########################

AddToFunc MailFunction I Next (AcceptsFocus $0) Iconify -1 + I Next (AcceptsFocus $0) Focus + I None (AcceptsFocus $0) Exec $0 $1

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 12 -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

########################## Window-Identifier ###############################

Just call hoose colors and a fonts

*FvwmIdent: Back MidnightBlue *FvwmIdent: Fore Yellow FvwmIdent: Font -misc-fixed-bold-r-normal--13-------*

########################### Pager ######################################### *FvwmPager: Back LightSteelBlue *FvwmPager: Fore #484048

turn off desktop names for swallowing in above button bar example:

#*FvwmPager: Font none #FvwmPager: Font -misc-fixed-----10------- FvwmPager: Font ----r---12-------* *FvwmPager: Hilight pink *FvwmPager: Geometry 160x18-100+0 *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-fixed-bold-r-normal--13-------* *FvwmPager: BalloonYOffset +2 *FvwmPager: BalloonBorderWidth 1 *FvwmPager: BalloonBorderColor Black

##########################FvwmWinList################################## *FvwmWinList: Back #908090 *FvwmWinList: Fore pink FvwmWinList: Font -misc-fixed-bold-r-normal--13-------* *FvwmWinList: Action Click1 Iconify -1,Focus *FvwmWinList: Action Click2 Iconify *FvwmWinList: Action Click3 Module “FvwmIdent” FvwmIdent *FvwmWinList: UseSkipList *FvwmWinList: Geometry +0-1 *FvwmBacker: Desk 0 -solid steelblue *FvwmBacker: Desk 1 -solid midnightblue *FvwmScroll: Back grey40 *FvwmScroll: Fore green

########################## FvwmIconBox ##################################

Note that icons are shown in the module only if !Icon command is applied.

Style * !Icon *FvwmIconBox: IconBack #cfcfcf *FvwmIconBox: IconHiFore black *FvwmIconBox: IconHiBack LightSkyBlue *FvwmIconBox: Back #5f9ea0 #*FvwmIconBox: Fore blue *FvwmIconBox: Geometry 5x1+0+0 *FvwmIconBox: MaxIconSize 64x38 FvwmIconBox: Font -misc-fixed-bold-r-normal--13-------* *FvwmIconBox: SortIcons IconName *FvwmIconBox: Padding 4 *FvwmIconBox: Lines 10 *FvwmIconBox: SBWidth 11 *FvwmIconBox: Placement Left Top *FvwmIconBox: Pixmap fvwm.xpm *FvwmIconBox: SetWMIconSize *FvwmIconBox: HilightFocusWin #*FvwmIconBox: Resolution Desk *FvwmIconBox: Mouse 1 Click RaiseLower *FvwmIconBox: Mouse 1 DoubleClick Iconify *FvwmIconBox: Mouse 2 Click Iconify -1, Focus *FvwmIconBox: Mouse 3 Click Module FvwmIdent *FvwmIconBox: Key r RaiseLower *FvwmIconBox: Key space Iconify *FvwmIconBox: Key d Close *FvwmIconBox: Key n Next *FvwmIconBox: Key p Prev *FvwmIconBox: Key h Left *FvwmIconBox: Key j Down *FvwmIconBox: Key k Up *FvwmIconBox: Key l Right FvwmIconBox “Fvwm” -

FvwmForm alias - query exit ala mwm

*QuitVerify: GrabServer *QuitVerify: WarpPointer *QuitVerify: Font *helvetica*m*r*n14 *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