#								-*-sh-*-
# FVWM - F? Virtual Window Manager configuration file
#

# ====================================================================== Colors

# Configuration dans le fichier .fvwmColors
Read .fvwmColorsets


# =================================================================== Constants

SetEnv fvwm_icon_size 100
SetEnv fvwm_wallpaper "~/images/wall_prolo2008.jpg"


# ======================================================================== Misc

# Double click
ClickTime 250

# Maximum percentage of the screen for opaque move
OpaqueMoveSize 55

# Window border attraction
SnapAttraction 3

# Comportement des bords du bureau
EdgeScroll 100 100
EdgeResistance 100 20

# Rubber-band for moving and resizing (0 - 255)
XorValue 255
#XorPixmap resize.rainbow.xpm

# Window's title font
#WindowFont              -adobe-helvetica-bold-o-*-*-17-*-*-*-*-*-iso8859-15
WindowFont              -adobe-helvetica-bold-o-*-*-14-*-*-*-*-*-*-*

# Path for images
ImagePath /usr/X11R6/include/X11/pixmaps/:/usr/X11R6/include/X11/bitmaps/:/usr/share/foxicons/:/use/share/icons/:/usr/share/pixmaps/:/usr/lib/mozilla-firefox/icons/:/usr/share/games/xsoldier/


# ================================================================ Focus policy

ColormapFocus FollowsFocus	# Colormap follow focus
Style "*" MouseFocus		# Focus follow the mouse
Style "*" SloppyFocus		# Focus kept when mouse out of the window
Style "*" MouseFocusClickRaises	# Window raised by click

Style "*" TileCascadePlacement	# Try to open windows on free space
Style "*" CenterPlacement	# Si Smart ne trouve rien ça place quand même


# ================================================= Specific window decorations

# change the default width, set a global icon, and give borders to popups
Style "*"			HandleWidth 3, \
				DecorateTransient, \
				MinOverlapPercentPlacement, \
				Icon unknown1.xpm, \
				MiniIcon mini.x.xpm

Style "Fvwm*"			NoTitle, \
				Sticky, \
				WindowListSkip, \
				CirculateSkip, \
				HandleWidth 0

#Style "dclock"			HandleWidth 0, \
#				NoTitle, \
#				Sticky, \
#				WindowListSkip
#
#Style "oclock"			HandleWidth 0, \
#				NoTitle, \
#				Sticky, \
#				WindowListSkip, \
#				StaysOnBottom ###########################

Style "dclock"			BorderWidth 0, \
				HandleWidth 0, \
				CirculateSkip, \
				CirculateSkipIcon, \
				Layer 0, \
				NoTitle, \
				WindowListSkip, \
				Sticky

Style "oclock"			BorderWidth 0, \
				HandleWidth 0, \
				CirculateSkip, \
				CirculateSkipIcon, \
				Layer 0, \
				NoTitle, \
				WindowListSkip, \
				Sticky

Style "xeyes"			HandleWidth 0, \
				NoTitle, \
				Sticky, \
				WindowListSkip

# Mixture MPlayer %-/
Style "MPlayer"			HandleWidth 0, \
				NoTitle

Style "MPlayer - Video"		HandleWidth 4

Style "Choisir un*"		HandleWidth 4, \
				StaysOnTop, \
				Title

Style "Préférences"		HandleWidth 4, \
				StaysOnTop, \
				Title

Style "Equaliser"		HandleWidth 4, \
				StaysOnTop, \
				Title

Style "Navigateur de skins"	HandleWidth 4, \
				StaysOnTop, \
				Title

Style "Liste de lecture"	HandleWidth 4, \
				StaysOnTop, \
				Title

# Plugin de XMMS
Style "*XMMS*"			NoTitle

Style "Synaesthesia-XMMS"	HandleWidth 0, \
				NoPPosition, \
				StaysOnBottom, \
				Sticky, \
				WindowListSkip

Style "Miaow"			UsePPosition, \
				NoTitle,
				HandleWidth 0


# ====================================================================== Icones

# Configuration dans le fichier .fvwmIcon
Read .fvwmIcon


# ======================================================== Modules au démarrage

# FvwmPager
# Mini-bureau
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec Esetroot -fit $[fvwm_wallpaper]
+ I Module FvwmPager 0 0
+ I Exec dclock
+ I Exec xset b off

DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I Module FvwmPager 0 0

# FvwmAnimate
# (des)iconifications animées
# Configuration : ~/.fvwm/.FvwmAnimate
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Test (Restart) All (Iconic) Test (f $[HOME]/.fvwm/icon.tmp.$[w.id].png) WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png


DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[HOME]/.fvwm/icon.tmp.*
+ I Exec exec sync


# ===================================================================== Buttons

# File .fvwmButtons
Read .fvwmButtons


# ========================================================== Advanced functions

# File .fvwmFunctions
Read .fvwmFunctions


# ======================================================================= Menus

# File .fvwmMenu
Read .fvwmMenu


# ========================================================== Mouse and keyboard

# Ignore modifiers CapsLock, NumLock, and ScrollLock
IgnoreModifiers L25

# File .fvwmMouse
Read .fvwmMouse

# File .fvwmKeyboard
Read .fvwmKeyboard


# =================================================================== FvwmPager

# File .fvwmPager
Read .fvwmPager


# =============================================================================
