# FVWM-Crystal Button Setup
# Written by Maciej Delmanowski <harnir@post.pl>
# Maintained and updated by Dominique Michel <dominique_libre@users.sourceforge,net>
#
# This is the default FVWM-Crystal window button setup. Hold the mouse buttons
# to see the popup menu of a certain button.


# First button - close, iconify, destroy
Mouse 1 1 $[Mod]	Window-Button-Function Button1 /Window-Menu-Close Close
Mouse 2 1 $[Mod]	Window-Button-Function Button1 /Window-Menu-Close FvwmIdent
Mouse 2 1 $[Mod1]	Window-Button-Function Button1 /Window-Menu-Close Destroy
Mouse 3 1 $[Mod]	Window-Button-Function Button1 /Window-Menu-Close Window-Iconify
Style * Button 1

# Second button - close, iconify, destroy
Mouse 1 2 $[Mod]	Window-Button-Function Button2 /Window-Menu-Close Close
Mouse 2 2 $[Mod]	Window-Button-Function Button2 /Window-Menu-Close FvwmIdent
Mouse 2 2 $[Mod1]	Window-Button-Function Button2 /Window-Menu-Close Destroy
Mouse 3 2 $[Mod]	Window-Button-Function Button2 /Window-Menu-Close Window-Iconify
Style * Button 2

# MiniIcon as the third button
Mouse 1 3       $[Mod] Window-Raise-MoveRaise
Mouse 2 3       $[Mod] Window-Shade-Resize
Mouse 3 3       $[Mod] Window-Lower-Move
Style * Button 3

# 4th button - various ways to maximize a window
Mouse 1 4 $[Mod0]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize Maximize
Mouse 2 4 $[Mod0]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize V100
Mouse 3 4 $[Mod0]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize H100
Mouse 1 4 $[Mod1]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize VHgrow
Mouse 2 4 $[Mod1]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize Vgrow
Mouse 3 4 $[Mod1]	Window-Button-Function Button4 /Window-Menu-Maximize Window-Resize Hgrow
Style * Button 4

Style * NoButton 5

# 6th button - additional window commands
Mouse 1 6 $[Mod0]	Window-Button-Function Button6 /Window-Menu-Layer Window-Resize Minimize
Mouse 1 6 $[Mod1]	Window-Button-Function Button6 /Window-Menu-Layer Stick
Mouse 2 6 $[Mod0]	Window-Button-Function Button6 /Window-Menu-Layer Layer 0 5
Mouse 2 6 $[Mod1]	Window-Button-Function Button6 /Window-Menu-Layer Layer 0 3
Mouse 3 6 $[Mod0]	Window-Button-Function Button6 /Window-Menu-Layer Layer 0 4
Style * Button 6

Style * NoButton 7

# 8th button - move a window between pages
Mouse 1 8 $[Mod0]	Window-Button-Function Button8 /Window-Menu-Page Window-MoveToPage-Backward
Mouse 2 8 $[Mod0]	Window-Button-Function Button8 /Window-Menu-Page MoveToPage-Focus prev
Mouse 3 8 $[Mod0]	Window-Button-Function Button8 /Window-Menu-Page Window-MoveToPage-Forward
Mouse 1 8 $[Mod1]	Window-Button-Function Button8 /Window-Menu-Page Window-WarpToPage-Backward
Mouse 2 8 $[Mod1]	Window-Button-Function Button8 /Window-Menu-Page WarpToPage prev
Mouse 3 8 $[Mod1]	Window-Button-Function Button8 /Window-Menu-Page Window-WarpToPage-Forward
Style * Button 8

Style * NoButton 9

Style * NoButton 0

# NumLock support
Read $./Buttons-fvwm-crystal_NumLock

# vim:ft=fvwm
