###
#  This file includes fvwm1 configuration for using with wm-icons.
#  Optimized for the default fvwm-1.24r configuration.
#  Installing this file doesn't break your existing .fvwmrc, just extends it.
#  You probably need to edit it if you have non-default configuration.
#
#  Instructions:
#    1) Install wm-icons (configure & make install)
#    2) Prepend this file to your .fvwmrc. The Style lines must be appended.
#       There is no a simple way to include other files in fvwm1 without
#       a preprocessing. Am I wrong?
#    3) (Re)Start fvwm
#
#  The file is not perfect, it'll be better in the next versions.
#  Send your comments to migo@homemail.com.
###


# You can change this to the real path of wm-icons.
PixmapPath $HOME/@userdir@:@icondir@:/usr/local/icons:/usr/share/icons:/usr/share/icons/mini::/usr/local/mini-icons:/usr/X11R6/lib/X11/mini-icons:/usr/X11R6/include/X11/pixmaps:/usr/include/X11/pixmaps

# fvwm1 does not support title-icons, upgrade fvwm.
# It does not support mini-icons and menu-icons too, just normal icons.


###
#  Change Icon Set submenu
###

#
# This defines the submenu for changing icon set online.
# wm-icons-config must be in your path or put full path in Exec below.
#

Popup MenuIconSets
	Title   "Change Icon Set"
{{NORM_ICON_SET_ITERATOR("
	Exec    "norm	@ICON_SET@" @ADJUST@exec wm-icons-config -q -p -f norm @ICON_SET@ &
")}}
	Nop     ""
	Restart "Restart	to activate"       fvwm
EndPopup

# You can comment the following out or in.
Mouse 3 R SCM Popup MenuIconSets Nop


###
#  Window operations
###

#
# This one fully maximizes if you click (leaving room for the Gnome panel
# at the bottom), or does a full maximization if you double click, or a
# vertical maximization if you just hold the mouse button down.
#
Function FuncMaximize
	Maximize "Motion"        0 95
	Maximize "Click"       100 95
	Maximize "DoubleClick" 100 100
EndFunction

#
# This defines the most common window operations.
# Is it possible to override Popup "Window Ops"? Ok, lets define another one.
#
Popup "MenuWindowOps"
	Title           "Window Ops"
	Move            "Move"
	Resize          "Resize"
	Raise           "Raise"
	Lower           "Lower"
	Iconify         "(De)Iconify" 
	Function        "(Un)Maximize"  FuncMaximize
#	Shade           "(Un)Shade"     # unsupported, upgrade fvwm
	Stick           "(Un)Stick"
	Nop             ""
	Delete          "Delete"  # may be commented out
	Close           "Close"
	Destroy         "Destroy"
	Nop             ""
	Module          "Identify"      FvwmIdent
	Module          "Switch to..."  WindowList
	Refresh         "Refresh Screen"
        Popup           "Icon Set"      MenuIconSets
EndPopup

# You can comment the following in if not bound yet.
#Mouse 3 R A Popup "MenuWindowOps" Nop


###
#  Quit submenu
###

#
# This defines (overrides) quit menu.
#
Popup "Quit-Verify"
	Title   "Really Quit Fvwm?"
	Restart "Restart"       fvwm
	Refresh "Refresh Screen"
	Nop     ""
	Restart "Start dummy"   xterm
	Nop     ""
	Quit    "Yes, Really Quit"
	Nop     "No, Don't Quit"
EndPopup


###
#  Known applications
###

{{STYLE_ICONS}}
