Fvwm2rc, 20130814

Posted without comment for future reference:

[code]

For the Debian menu

Read /etc/X11/fvwm/menudefs.hook Quiet

Virtual desktops

DesktopSize 3x3
DesktopName 0 DeskOne
DesktopName 1 DeskTwo
DesktopName 2 DeskThree
EdgeScroll 0 0

Global style options

OpaqueMoveSize unlimited
Style * ResizeOpaque
Style * NoIcon
Style * SloppyFocus, MouseFocusClickRaises
CursorStyle MENU left_ptr
CursorStyle TITLE left_ptr
CursorStyle DEFAULT left_ptr
DefaultColors White Black
DefaultFont “xft:Sans:bold:size=8:antialias=True”

Colorsets

Colorset 3 fg Gray, bg Black # Main
Colorset 4 fg White, bg Black # Highlight
Colorset 5 fg Darkgray, bg Black # Inactive
Colorset 6 fg Gray, bg Gray # Window borders

Window styles

Style “" Font “xft:Sans:Bold:size=9:antialias=True”
Style "
” Colorset 3
Style “" HilightColorset 4
Style "
” BorderColorset 6
Style “" HilightBorderColorset 6
TitleStyle – Flat
BorderStyle Simple – NoInset Flat
Style "
” BorderWidth 1, HandleWidth 1
ButtonStyle 2 SGradient 12 Black Red – Flat
ButtonStyle 4 SGradient 12 Black Green – Flat
ButtonStyle 6 SGradient 12 Black Yellow – Flat

Menu styles

MenuStyle * MenuColorset 3
MenuStyle * ActiveFore White
MenuStyle * BorderWidth 1
MenuStyle * Font “xft:Sans:Bold:size=9:antialias=True”
MenuStyle * Hilight3DOff
MenuStyle * TrianglesSolid

Startup Functions

DestroyFunc StartFunction
AddToFunc StartFunction

  • I Exec sh ~/.fehbg # Restore the wallpaper with feh
  • I Module FvwmPager 0 2
  • I Module FvwmTaskBar

Misc Functions

DestroyFunc RaiseOrMove
AddToFunc RaiseOrMove

  • I Raise
  • M Move

DestroyFunc RaiseOrResize
AddToFunc RaiseOrResize

  • I Raise
  • M Resize

Key Bindings

Keys for running stuff

Key p A 4 Exec dmenu_run -i
Key l A 4 Exec slock
Key Return A 4 Exec x-terminal-emulator

Win+Tab -> window list, for convenience

Key Tab A 4 WindowList root c c NoDeskSotre, SelectOnRelease Super_L

Keys for manipulating windows

Key q A 4 Close
Key m A 4 Maximize 95 95
Key i A 4 Iconify
Key b A 4 Lower
Key r A 4 Raise

Keys for switching desktops

Key Left A 4 Scroll -100 0
Key Right A 4 Scroll +100 0
Key Up A 4 Scroll 0 -100
Key Down A 4 Scroll 0 +100

Mouse bindings

Mouse 1 2 A Close
Mouse 1 4 A Maximize 95 95
Mouse 1 6 A Iconify
Mouse 3 I A Lower
Mouse 1 ST A RaiseOrMove
Mouse 1 F A RaiseOrResize
Mouse 3 STF A Lower
Mouse 3 R A WindowList
Mouse 1 R A Menu RootMenu

Winkey mouse bindings

Mouse 1 W 4 RaiseOrMove
Mouse 3 W 4 RaiseOrResize

FvwmPager

Style FvwmPager Sticky, !Title, !Handles, WindowListSkip,
FixedSize, FixedPosition
*FvwmPager: Geometry 300x100-0+0
*FvwmPager: Rows 1
*FvwmPager: Columns 3
*FvwmPager: Font “xft:Sans:bold:size=8:antialias=True”
*FvwmPager: Fore Darkgray
*FvwmPager: Back Black
*FvwmPager: Hilight White
*FvwmPager: WindowColors Black Gray Black Gray

FvwmTaskBar

Style “FvwmTaskBar” NoTitle, !Handles, !Borders, Sticky, WindowListSkip,
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
*FvwmTaskBar: Geometry +0-0
*FvwmTaskBar: Rows 1
*FvwmTaskbar: Font “xft:Sans:bold:size=8:antialias=True”
*FvwmTaskBar: SelFont “xft:Sans:bold:size=8:antialias=True”
*FvwmTaskBar: StatusFont “xft:Sans:bold:size=8:antialias=True”
*FvwmTaskBar: Colorset 5
*FvwmTaskBar: IconColorset 5
*FvwmTaskBar: FocusColorset 4
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: UseIconNames
*FvwmTaskBar: StartName FVWM
*FvwmTaskBar: StartMenu RootMenu

Menus

To prevent accidental quitting!

DestroyMenu QuitMenu
AddToMenu QuitMenu “Really quit?” Title

  • “Restart” Restart
  • “Quit” Quit

The main menu

DestroyMenu RootMenu
AddToMenu RootMenu “Fvwm” Title

  • “Terminal” Exec x-terminal-emulator
  • “Browser” Exec x-www-browser
  • “Debian” Popup /Debian
  • “” Nop
  • “Fvwm” Popup QuitMenu[/code]