# This file gets installed in the "datadir" during fvwm
# installation.  Do not remove or change this file.
#
#  Created on 21/Mar/1999 by DanEspen (dje):
#  - FvwmDefaults file.  Contains fvwm defaults, and enough to help out
#  the new user with no configuration file.
#  This picks up from where the builtin table in fvwm.c SetRCDefaults ends.

# Set at least 2 root keys to bring up the builtin menu:
Silent Key Help R A Popup MenuFvwmRoot
Key F1 R A Popup MenuFvwmRoot

# Ctrl-Alt-Escape for aborting Wait pause and ModuleSynchronous command
Key Escape A MC EscapeFunc

# Needed by the builtin WindowList command, this should match the manpage
AddToFunc WindowListFunc
+ I Iconify off
+ I FlipFocus
+ I Raise
+ I WarpToWindow 5p 5p

# Needed by the ewmh support
AddToFunc EWMHActivateWindowFunc
+ I Iconify off
+ I Focus
+ I Raise

AddToFunc   EWMHActivateClientWindowFunc
+ I DemandsAttention On

AddToFunc   EWMHActivateLegacyWindowFunc
+ I EWMHActivateWindowFunc

# Also in the fvwm man page
AddToFunc UrgencyFunc
+ I Iconify off
+ I FlipFocus
+ I Raise
+ I WarpToWindow 5p 5p
AddToFunc UrgencyDoneFunc I Nop

# Needed by modules which use session management
# FSMExecFuncWithSessionManagment "module_sm_env" "action" "orig_sm_env"
AddToFunc FSMExecFuncWithSessionManagment
+ I Setenv SESSION_MANAGER $0
+ I $1
+ I Setenv SESSION_MANAGER $2

# Default styles
Style * LowerTransient, RaiseTransient, StackTransientParent
Style * TileCascadePlacement, Title, MouseFocus
Style * UseIconPosition, RightTitleRotatedCW, UseTitleDecorRotation
Style * EWMHPlacementUseDynamicWorkingArea, EWMHMaximizeUseDynamicWorkingArea
# Default styles for tear off menus
Style fvwm_menu NoPPosition, NeverFocus, NoLenience, \
	WindowListSkip, CirculateSkip

# Alt-Tab:
Key Tab A M WindowList Root c c NoDeskSort

# Basic Mouse controls:
Mouse 1 T   A FuncFvwmRaiseLowerX Move
Mouse 1 FS  A FuncFvwmRaiseLowerX Resize
Mouse 2 FST A FuncFvwmRaiseLowerX Move
AddToFunc FuncFvwmRaiseLowerX
+ I Raise
+ M $0
+ D Lower

# we have GotoDeskAndPage ...
DestroyFunc MoveToDeskAndPage
AddToFunc MoveToDeskAndPage
+ I MoveToDesk 0 $0
+ I MoveToPage $1 $2

