# .fvwm2rc

DeskTopSize 1x1
EdgeResistance 20 20
MenuStyle * fvwm, Foreground black, Background grey80, Greyed grey40
MenuStyle * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*

# default Styles:
#Style * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*
Style * Font -shinonome-*-bold-r-*-*-12-*-*-*-*-*-*
Style * IconFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
Style * HilightFore white, HilightBack rgb:2/7/3, BackColor rgb:4/4/4
Style * BorderWidth 4, HandleWidth 4
Style * DecorateTransient, NoPPosition, CascadePlacement
Style * IconBox 0 -10 -1 -1
Style * SloppyFocus, GrabFocus
TitleStyle LeftJustified Height 16

# Styles for various common programs:
Style *clock NoTitle, BorderWidth 0, NoHandles, Sticky, WindowListSkip, StaysOnBottom, NeverFocus
Style gecko UsePPosition, PositionPlacement -0 -0
Style Mozilla UsePPosition, PositionPlacement -0 -0
Style Skkinput UsePPosition, NoTitle, WindowListSkip, StaysOnTop
Style xconsole WindowListSkip

# some simple default key bindings:
Key N A SM Next [*] Focus
Key P A SM Prev [*] Focus
Key 0 A M Iconify
Key 1 A M Maximize 100 100
Key Return A M RaiseLower
Key Tab A M WindowList Root c c CurrentAtEnd
Key Pause A A Exec exec mpc toggle

# for the root window:
Mouse 1 R A WindowList
Mouse 2 R A Menu MenuFvwmWindowOps Nop
Mouse 3 RT A Menu MenuFvwmRoot Nop
#Mouse 4 A A Nop
#Mouse 5 A A Nop

# for the title bar buttons:
Mouse 1 1 A Menu MenuFvwmWindowOps Close
Mouse 1 2 A Maximize 100 100
Mouse 1 4 A Iconify

# for other parts of the window/borders/icons:
Mouse 1 FS A FuncFvwmResizeOrRaise
Mouse 1 T A FuncFvwmMoveOrRaise
Mouse 1 I A Iconify
Mouse 1 FSTW M FuncFvwmMoveOrRaise
Mouse 2 FST A Menu MenuFvwmWindowOps Nop
Mouse 3 SIF A RaiseLower

DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot
+ "=Fvwm2=" Title
+ "XTerm" Exec exec xterm
+ "" Nop
+ "Restart" Restart

DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+ "Move" Move
+ "Resize" Resize
+ "Raise" Raise
+ "Lower" Lower
+ "(De)iconify" Iconify
+ "(Un)maximize" Maximize
+ "" Nop
+ "Close" Close

DestroyFunc FuncFvwmMoveOrRaise
AddToFunc FuncFvwmMoveOrRaise
+ I Raise
+ M Move
+ D Lower

DestroyFunc FuncFvwmResizeOrRaise
AddToFunc FuncFvwmResizeOrRaise
+ I Raise
+ M Resize
+ D Lower
