# ---------------------------------------------------------------------------
#  FvwmPager
# ---------------------------------------------------------------------------
Style FvwmPager* WindowListSkip, Sticky, NoTitle, NoHandles, BorderWidth 2

AddToFunc AFuncWindowThemesOverride
+ I Style FvwmPager* NoTitle, NoHandles, BorderWidth 2

DestroyModuleConfig FvwmPager*

PipeRead 'c=`expr "(" "(" "(" 64 "*" $[vp.height] "*" $[FVWM_NUMBER_PAGE_ROWS] ")" / "(" $[vp.width] "*" $[FVWM_NUMBER_PAGE_COLUMS] ")" ")" + 22 ")"`; \
	a=`expr "(" $[FVWM_NUMBER_OF_DESK] "*" ${c} ")"`; \
	echo "*FvwmPager-Desker: Geometry 64x${a}-0+0"'

#*FvwmPager-Desker: Geometry 64x253-0+0
#*FvwmPager-Desker: DeskTopScale 16
*FvwmPager-Desker: Columns 1
#*FvwmPager-Desker: Rows 1
*FvwmPager-Desker: Colorset * 14
*FvwmPager-Desker: HilightColorset * 15
*FvwmPager-Desker: BalloonColorset * 16
*FvwmPager-Desker: WindowColorsets 1 2
*FvwmPager-Desker: Balloons            All
*FvwmPager-Desker: BalloonYOffset      +1
*FvwmPager-Desker: UseSkipList
*FvwmPager-Desker: Font "xft:sans:pixelsize=10"
*FvwmPager-Desker: SmallFont "xft:sans:pixelsize=7;5x7"
*FvwmPager-Desker: Window3DBorders
AFuncSetFont-ModulePagerLabel FvwmPager-Desker Font 10
AFuncSetFont-ModuleSmall FvwmPager-Desker SmallFont
AFuncSetFont-ModuleTips FvwmPager-Desker BalloonFont

*FvwmPager-Swallowed: Geometry +5000+5000
*FvwmPager-Swallowed: DeskTopScale 22
#*FvwmPager-Swallowed: Columns 2
*FvwmPager-Swallowed: Rows 2
*FvwmPager-Swallowed: Colorset * 14
*FvwmPager-Swallowed: HilightColorset * 15
*FvwmPager-Swallowed: BalloonColorset * 16
*FvwmPager-Swallowed: WindowColorsets 1 2
*FvwmPager-Swallowed: Balloons            All
*FvwmPager-Swallowed: BalloonYOffset      +1
*FvwmPager-Swallowed: UseSkipList
*FvwmPager-Swallowed: Window3DBorders
*FvwmPager-Swallowed: Font None
# AFuncSetFont-ModulePagerLabel FvwmPager-Swallowed Font 10
AFuncSetFont-ModuleSmall FvwmPager-Swallowed SmallFont
AFuncSetFont-ModuleTips FvwmPager-Swallowed BalloonFont

*FvwmPager-Swallowed-Single: Geometry +5000+5000
*FvwmPager-Swallowed-Single: DeskTopScale 22
#*FvwmPager-Swallowed-Single: Columns 2
#*FvwmPager-Swallowed-Single: Rows 2
*FvwmPager-Swallowed-Single: Colorset * 14
*FvwmPager-Swallowed-Single: HilightColorset * 15
*FvwmPager-Swallowed-Single: BalloonColorset * 16
*FvwmPager-Swallowed-Single: WindowColorsets 1 2
*FvwmPager-Swallowed-Single: Balloons            All
*FvwmPager-Swallowed-Single: BalloonYOffset      +1
*FvwmPager-Swallowed-Single: UseSkipList
*FvwmPager-Swallowed-Single: Window3DBorders
*FvwmPager-Swallowed-Single: Font None
# AFuncSetFont-ModulePagerLabel FvwmPager-Swallowed-Single Font 10
AFuncSetFont-ModuleSmall FvwmPager-Swallowed-Single SmallFont
AFuncSetFont-ModuleTips FvwmPager-Swallowed-Single BalloonFont

AFuncWmIconsConfigPager

# ---------------------------------------------------------------------------
# TaskBar
# ---------------------------------------------------------------------------
DestroyModuleConfig FvwmTaskBar: *

Style FvwmTaskBar WindowListSkip, Sticky, NoTitle, NoHandles, \
	BorderWidth 0, NeverFocus

AddToFunc AFuncWindowThemesOverride
+ I Style FvwmTaskBar  NoTitle, NoHandles, BorderWidth 0, NoHandles

# defined in the option
*FvwmTaskBar: Geometry +0-0
*FvwmTaskBar: Rows 2

*FvwmTaskBar: Colorset 17
*FvwmTaskBar: FocusColorset 17
*FvwmTaskBar: IconColorset 19
*FvwmTaskBar: TipsColorset 16

*FvwmTaskBar: Action Click1 AFuncDeiconifyFocusAndRaise
*FvwmTaskBar: Action Click2 Iconify
*FvwmTaskBar: Action Click3 Popup AMenuWinOps Mouse c -102m
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: AutoStick

#*FvwmTaskBar: StartName Start
# menu is defined in the option taskbarpos/
*FvwmTaskBar: StartMenu AMenuRoot Mouse -100p -100m
#*FvwmTaskBar: StartMenu MenuFvwmStartMenu Root +0p o100-32p
#*FvwmTaskBar: StartMenu MenuFvwmStartMenu Root +1p o100-27p

#*FvwmTaskBar: StartIcon 16x16/linux.xpm
*FvwmTaskBar: StartButtonRightMargin 4

*FvwmTaskBar: MailBox None

*FvwmTaskBar: ShowTips
*FvwmTaskBar: ShowTransients

AFuncSetFont-ModuleWindowList FvwmTaskBar Font
AFuncSetFont-ModuleSelectedWindowList FvwmTaskBar SelFont
AFuncSetFont-ModuleTips FvwmTaskBar StatusFont

*FvwmTaskBar: Button Icon 16x16/terminal.xpm, \
	Action (Mouse 1) FuncFvwmTerminal, \
	Action (Mouse 2) FuncFvwm2Terminal, \
	Action (Mouse 3) FuncFvwm3Terminal
*FvwmTaskBar: Button Icon 16x16/editor.xpm, \
        Action (Mouse 1) FuncFvwmEditor, \
        Action (Mouse 2) FuncFvwm2Editor, \
        Action (Mouse 3) FuncFvwm3Editor
*FvwmTaskBar: Button Icon 16x16/programs.xpm, \
	Action (Mouse 1) FuncFvwmPreferred, \
	Action (Mouse 2) FuncFvwm2Preferred, \
	Action (Mouse 3) FuncFvwm3Preferred)
*FvwmTaskBar: Button Icon 16x16/www.xpm, \
	Action (Mouse 1) FuncFvwmWWW, \
	Action (Mouse 2) FuncFvwm2WWW, \
	Action (Mouse 3) FuncFvwm3WWW
*FvwmTaskBar: Button Icon 16x16/viewer.xpm, \
	Action(Mouse 1) FuncFvwmDocView, \
	Action(Mouse 2) FuncFvwm2DocView, \
	Action(Mouse 3) FuncFvwm3DocView)
*FvwmTaskBar: Button Icon 16x16/graphics.xpm, \
	Action(Mouse 1) 'FuncFvwmImage', \
	Action(Mouse 2) 'FuncFvwm3Image', \
	Action(Mouse 3) 'FuncFvwm3Image',)
*FvwmTaskBar: Button Icon 16x16/multimedia.xpm, \
	Action(Mouse 1) 'FuncFvwmMultimedia', \
	Action(Mouse 2) 'FuncFvwm2Multimedia', \
	Action(Mouse 3) 'FuncFvwm3Multimedia',)
*FvwmTaskBar: Button Icon 16x16/game.xpm, \
	Action(Mouse 1) 'FuncFvwmGame', \
	Action(Mouse 2) 'FuncFvwm2Game', \
	Action(Mouse 3) 'FuncFvwm3Game',)

# ---------------------------------------------------------------------------
# our panel one large an other small
# ---------------------------------------------------------------------------

Style FvwmButtons-Panel WindowListSkip, Sticky, NoTitle, NoHandles, \
	BorderWidth 0, NeverFocus, 

AddToFunc AFuncWindowThemesOverride
+ I Style FvwmButtons-Panel NoTitle, NoHandles, BorderWidth 0

DestroyModuleConfig FvwmButtons-Panel: *

*FvwmButtons-Panel: Geometry $[vp.width]x66+0-0
*FvwmButtons-Panel: Rows 1
*FvwmButtons-Panel: Columns $[vp.width]
*FvwmButtons-Panel: Colorset 10
*FvwmButtons-Panel: ActiveColorset 26
*FvwmButtons-Panel: PressColorset 27
AFuncSetFont-ModuleButtonLabel FvwmButtons-Panel Font 12

*FvwmButtons-Panel: (66x1, Frame 1, Title load, Swallow(NoHints) "xload" \
	`Exec exec xload -geometry +5000+5000 -bg white -fg  black \
	-hl grey -update 5 -nolabel`)
*FvwmButtons-Panel: (66x1, Frame 1, Swallow(NoHints) "xclock" \
	`Exec exec xclock -geometry +5000+5000 -bg white -fg  black`)
*FvwmButtons-Panel: (66x1, Frame 1, Swallow(NoHints) "xeyes" \
	`Exec exec xeyes -geometry +5000+5000`)

# or comment the 7 previous lines and put your 3 prefered applets
#*FvwmButtons-Panel: (66x1, Frame 1, Size 64 64, Colorset 12, \
#	Swallow "wmCalClock" 'Exec exec wmCalClock -24')
#*FvwmButtons-Panel: (66x1, Frame 1, Size 64 64, Colorset 12, \
#	Swallow "asmon" 'Exec exec asmon')
#*FvwmButtons-Panel: (66x1, Frame 1, Size 64 64, Colorset 12, \
#	Swallow "apm" 'Exec exec wmacpi')

*FvwmButtons-Panel: (22x1, \
	Container(Frame 1, Padding 0 0, Columns 1, Rows 3), \
	Frame 0, Padding 0 0)
*FvwmButtons-Panel: (1x1, Icon 16x16/quit.xpm, Action 'FvwmForm FvwmForm-QuitVerify')
*FvwmButtons-Panel: (1x1, Icon 16x16/restart.xpm, Action 'Restart')
*FvwmButtons-Panel: (1x1, Icon 16x16/lock.xpm, Action 'Exec xlock')
*FvwmButtons-Panel: (End)

*FvwmButtons-Panel: (66x1, \
	Container(Frame 1, Padding 0 0, Columns 3, Rows 3), \
	Frame 0, Padding 0 0)
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/terminal.xpm, \
	Action(Mouse 1) 'FuncFvwmTerminal', \
	Action(Mouse 2) 'FuncFvwm2Terminal', \
	Action(Mouse 3) 'FuncFvwm3Terminal')
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/editor.xpm, \
	Action(Mouse 1) 'FuncFvwmEditor', \
	Action(Mouse 2) 'FuncFvwm2Editor', \
	Action(Mouse 3) 'FuncFvwm3Editor')
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/programs.xpm, \
	Action(Mouse 1) 'FuncFvwmPreferred', \
	Action(Mouse 2) 'FuncFvwm2Preferred', \
	Action(Mouse 3) 'FuncFvwm3Preferred')

*FvwmButtons-Panel: (1x1, Icon 16x16/www.xpm, \
	Action(Mouse 1) 'FuncFvwmWWW', \
	Action(Mouse 2) 'FuncFvwm2WWW', \
	Action(Mouse 3) 'FuncFvwm3WWW')
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/viewer.xpm, \
	Action(Mouse 1) 'FuncFvwmDocView', \
	Action(Mouse 2) 'FuncFvwm2DocView', \
	Action(Mouse 3) 'FuncFvwm3DocView')
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/graphics.xpm, \
	Action(Mouse 1) 'FuncFvwmImage', \
	Action(Mouse 2) 'FuncFvwm2Image', \
	Action(Mouse 3) 'FuncFvwm3Image',)

*FvwmButtons-Panel: (1x1,\
	Icon 16x16/multimedia.xpm, \
	Action(Mouse 1) 'FuncFvwmMultimedia', \
	Action(Mouse 2) 'FuncFvwm2Multimedia', \
	Action(Mouse 3) 'FuncFvwm3Multimedia',)
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/game.xpm, \
	Action(Mouse 1) 'FuncFvwmGame', \
	Action(Mouse 2) 'FuncFvwm2Game', \
	Action(Mouse 3) 'FuncFvwm3Game',)
*FvwmButtons-Panel: (1x1,\
	Icon 16x16/window-destroy.xpm, \
	Action(Mouse 1) 'Delete', \
	Action(Mouse 2) 'Close', \
	Action(Mouse 3) 'Destroy')
*FvwmButtons-Panel: (End)

PipeRead 'd=`expr "(" $[FVWM_NUMBER_OF_DESK] / 2 ")"`; \
	c=`expr "(" 33 "*" $[desk.pagesx] "*" $[vp.width] "*" ${d} ")"`; \
	b=`expr "(" ${c} / $[vp.height] ")"`; \
	a=`expr "(" $[vp.width] - 286 - ${b} ")"`; \
	echo "*FvwmButtons-Panel: (${a}x1, Frame 0, Swallow \\"FvwmIconMan\\" \\"FvwmIconMan\\")"; \
	echo "*FvwmButtons-Panel: (${b}x1, Frame 1, Swallow \\"FvwmPager-Swallowed\\" \\"FvwmPager FvwmPager-Swallowed 0 $[FVWM_LAST_DESK]\\")"'

# --------------------------------------
# FvwmButtons-PanelSmall

Style FvwmButtons-PanelSmall WindowListSkip, Sticky, NoTitle, NoHandles, \
	BorderWidth 0, NeverFocus, 

AddToFunc AFuncWindowThemesOverride
+ I Style FvwmButtons-PanelSmall NoTitle, !Borders

DestroyModuleConfig FvwmButtons-PanelSmall: *

# center the panel
#PipeRead 'a=`expr "(" $[vp.width] / 2 - 400 ")"`; echo "*FvwmButtons-PanelSmall: Geometry 800x44+${a}-0"'

*FvwmButtons-PanelSmall: Geometry $[vp.width]x44+0-0
*FvwmButtons-PanelSmall: Rows 1
*FvwmButtons-PanelSmall: Columns $[vp.width]
*FvwmButtons-PanelSmall: Colorset 10
*FvwmButtons-PanelSmall: ActiveColorset 26
*FvwmButtons-PanelSmall: PressColorset 27
AFuncSetFont-ModuleButtonLabel FvwmButtons-PanelSmall Font 12

*FvwmButtons-PanelSmall: (44x1, Frame 1, \
	Swallow(NoHints) "xload" \
	`Exec exec xload \
	-geometry +5000+5000 -bg white -fg  black \
	-hl grey -update 5 -nolabel`)
*FvwmButtons-PanelSmall: (44x1, Frame 1, \
	Swallow(NoHints) "xclock" \
	`Exec exec xclock \
	-geometry +5000+5000 -bg white -fg  black`)

*FvwmButtons-PanelSmall: (22x1, \
	Container(Frame 1, Padding 0 0, Columns 1, Rows 2), \
	Frame 0, Padding 0 0)
*FvwmButtons-PanelSmall: (1x1, Icon 16x16/quit.xpm, \
	Action 'FvwmForm FvwmForm-QuitVerify')
*FvwmButtons-PanelSmall: (1x1, Icon 16x16/restart.xpm, Action 'Restart')
*FvwmButtons-PanelSmall: (End)

PipeRead 'a=`expr "(" $[FVWM_NUMBER_OF_DESK] / 2 ")"`; \
	b=`expr "(" 22 "*" ${a} ")"`; \
	echo "*FvwmButtons-PanelSmall: (${b}x1, Container(Frame 0, Padding 0 0, Columns ${a}, Rows 2), Frame 0, Padding 0 0)"; \
	i=0; while test 1 == `expr "(" ${i} "<" $[FVWM_NUMBER_OF_DESK] ")"`; \
	  do echo "*FvwmButtons-PanelSmall: (1x1,Frame 1, Title $i, Action(Mouse1) GotoDesk 0 $i, Action(Mouse2) FvwmPager -transient FvwmPager-Desker 0 $[FVWM_LAST_DESK], Action(Mouse3) FvwmPager -transient FvwmPager-Desker 0 $[FVWM_LAST_DESK])"; \
	  let i=${i}+1; \
	done'
#*FvwmButtons-PanelSmall: (44x1, \
#	Container(Frame 0, Padding 0 0, Columns 2, Rows 2), \
#	Frame 0, Padding 0 0)
#*FvwmButtons-PanelSmall: (1x1,Frame 0, Title "0", \
#	Action(Mouse1) GotoDesk 0 0, \
#	Action(Mouse2) FvwmPager -transient FvwmPager-Single *, \
#	Action(Mouse3) FvwmPager -transient FvwmPager-Desker 0 $[FVWM_LAST_DESK])
#*FvwmButtons-PanelSmall: (1x1,Frame 0, Title "1", Action GotoDesk 0 1)
#*FvwmButtons-PanelSmall: (1x1,Frame 0, Title "2", Action GotoDesk 0 2)
#*FvwmButtons-PanelSmall: (1x1,Frame 0, Title "3", Action GotoDesk 0 3)
*FvwmButtons-PanelSmall: (End)

*FvwmButtons-PanelSmall: (88x1, Frame 0, \
	Container(Frame 1, Padding 0 0, Columns 3, Rows 2), \
	Padding 0 0)
*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/terminal.xpm,\
	Action(Mouse 1) 'FuncFvwmTerminal', \
	Action(Mouse 2) 'FuncFvwm2Terminal', \
	Action(Mouse 3) 'FuncFvwm3Terminal')
*FvwmButtons-PanelSmall: (1x1, \
	Icon 16x16/editor.xpm, \
	Action(Mouse 1) 'FuncFvwmEditor', \
	Action(Mouse 2) 'FuncFvwm2Editor', \
	Action(Mouse 3) 'FuncFvwm3Editor')
*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/programs.xpm, \
	Action(Mouse 1) 'FuncFvwmPreferred', \
	Action(Mouse 2) 'FuncFvwm2Preferred', \
	Action(Mouse 3) 'FuncFvwm3Preferred')
*FvwmButtons-PanelSmall: (1x1, Icon 16x16/www.xpm, \
	Action(Mouse 1) 'FuncFvwmWWW', \
	Action(Mouse 2) 'FuncFvwm2WWW', \
	Action(Mouse 3) 'FuncFvwm3WWW')

*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/viewer.xpm, \
	Action(Mouse 1) 'FuncFvwmDocView', \
	Action(Mouse 2) 'FuncFvwm2DocView', \
	Action(Mouse 3) 'FuncFvwm3DocView')
*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/graphics.xpm, \
	Action(Mouse 1) 'FuncFvwmImage', \
	Action(Mouse 2) 'FuncFvwm3Image', \
	Action(Mouse 3) 'FuncFvwm3Image',)
*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/multimedia.xpm, \
	Action(Mouse 1) 'FuncFvwmMultimedia', \
	Action(Mouse 2) 'FuncFvwm2Multimedia', \
	Action(Mouse 3) 'FuncFvwm3Multimedia',)
*FvwmButtons-PanelSmall: (1x1,\
	Icon 16x16/game.xpm, \
	Action(Mouse 1) 'FuncFvwmGame', \
	Action(Mouse 2) 'FuncFvwm2Game', \
	Action(Mouse 3) 'FuncFvwm3Game',)

*FvwmButtons-PanelSmall: (End)

#PipeRead 'd=`expr "(" $[FVWM_NUMBER_OF_DESK] / 2 ")"`; \
#	e=`expr "(" 22 "*" ${d} ")"`; \
#	c=`expr "(" 44 "*" $[desk.pagesx] "*" $[vp.width] ")"`; \
#	b=`expr "(" ${c} / $[vp.height] ")"`; \
#	a=`expr "(" $[vp.width] - 198 - ${b} - ${e} ")"`; \
#	echo "*FvwmButtons-PanelSmall: (${a}x1, Frame 0, Swallow \\"FvwmIconMan\\" \\"FvwmIconMan\\")"; \
#	echo "*FvwmButtons-PanelSmall: (${b}x1, Frame 0, Swallow \\"FvwmPager-Swallowed-Single\\" \\"FvwmPager FvwmPager-Swallowed-Single *\\")"'

# No additional pager as the desktop size is 1
PipeRead 'd=`expr "(" $[FVWM_NUMBER_OF_DESK] / 2 ")"`; \
	e=`expr "(" 22 "*" ${d} ")"`; \
	a=`expr "(" $[vp.width] - 198 - ${e} ")"`; \
	echo "*FvwmButtons-PanelSmall: (${a}x1, Frame 0, Swallow \\"FvwmIconMan\\" \\"FvwmIconMan\\")"'

# --------------------------------------
# an IconMan for our panel

Style FvwmIconMan WindowListSkip, Sticky, NoTitle, NoHandles, BorderWidth 5, \
	NeverFocus

AddToFunc AFuncWindowThemesOverride
+ I Style FvwmIconMan NoTitle, NoHandles, BorderWidth 5

DestroyModuleConfig FvwmIconMan: *

*FvwmIconMan: NumManagers 1

# menu configurable 
#*FvwmIconMan: Resolution global

*FvwmIconMan: PlainButton  up
*FvwmIconMan: SelectButton down
*FvwmIconMan: FocusButton  up
*FvwmIconMan: FocusAndSelectButton down
*FvwmIconMan: IconButton up

#*FvwmIconMan: PlainButton  flat
#*FvwmIconMan: SelectButton down
#*FvwmIconMan: FocusButton  flat
#*FvwmIconMan: FocusAndSelectButton down
#*FvwmIconMan: IconButton flat

*FvwmIconMan: ReliefThickness 1

*FvwmIconMan: Colorset		10
*FvwmIconMan: IconColorset	19
*FvwmIconMan: PlainColorset	17
*FvwmIconMan: SelectColorset	17
*FvwmIconMan: FocusColorset	18
*FvwmIconMan: FocusAndSelectColorset 18
*FvwmIconMan: TipsColorset	16

*FvwmIconMan: UseWinList true

AFuncWmIconsConfigIconMan

*FvwmIconMan: Shape false

*FvwmIconMan: FollowFocus true
*FvwmIconMan: Sort none
*FvwmIconMan: Format %i

*FvwmIconMan: Tips needed
*FvwmIconMan: TipsDelays 1000 700
*FvwmIconMan: TipsOffsets 2 2

*FvwmIconMan: ManagerGeometry 5x1
*FvwmIconMan: ButtonGeometry 116x22
#*FvwmIconMan: MaxButtonWidth 232
*FvwmIconMan: MaxButtonWidthByColumns 3

AFuncSetFont-ModuleWindowListLabel FvwmIconMan Font 11
AFuncSetFont-ModuleTips   FvwmIconMan TipsFont

# action
*FvwmIconMan: Action  Mouse 1    A sendcommand AFuncDeiconifyFocusAndRaise
*FvwmIconMan: Action  Mouse 2    A sendcommand Iconify
*FvwmIconMan: Action  Mouse 3    A sendcommand AFuncAmetistaIconify
*FvwmIconMan: Action  Mouse 3    S sendcommand "Menu AMenuWinOps"
*FvwmIconMan: Action  Mouse 3    C sendcommand "Menu AMenuWinOpsMoveToDesk"


# ------------------------------------------------------------------------------
# Config Functions 
# ------------------------------------------------------------------------------

#------------------------------
# For the StartFunction and the switching function

# Panel Small (and used for Small and Pager)
DestroyFunc AFuncStartPanelSmall
AddToFunc   AFuncStartPanelSmall
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-PanelSmall
+ I KillModule FvwmPager FvwmPager-Desker
+ I KillModule FvwmTaskBar
+ I EwmhBaseStruts 0 0 0 44
+ I FvwmButtons FvwmButtons-PanelSmall

DestroyFunc AFuncStartFuncStartPanelSmall
AddToFunc   AFuncStartFuncStartPanelSmall
+ I AFuncStartPanelSmall
#+ I Wait FvwmButtons
#+ I Wait FvwmIconMan

# Panel Large
DestroyFunc AFuncStartPanelLarge
AddToFunc   AFuncStartPanelLarge
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-PanelSmall
+ I KillModule FvwmPager FvwmPager-Desker
+ I KillModule FvwmTaskBar
+ I EwmhBaseStruts 0 0 0 66
+ I FvwmButtons FvwmButtons-Panel

DestroyFunc AFuncStartFuncStartPanelLarge
AddToFunc   AFuncStartFuncStartPanelLarge
+ I  AFuncStartPanelLarge
#+ I Wait FvwmButtons
#+ I Wait FvwmIconMan
#+ I Wait FvwmPager*

# TaskBar
DestroyFunc AFuncStartTaskBar
AddToFunc   AFuncStartTaskBar
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-PanelSmall
+ I KillModule FvwmPager FvwmPager-Desker
+ I KillModule FvwmTaskBar
+ I EwmhBaseStruts 0 0 0 54
+ I FvwmTaskBar
+ I FvwmPager FvwmPager-Desker 0 $[FVWM_LAST_DESK]

DestroyFunc AFuncStartFuncStartTaskBar
AddToFunc   AFuncStartFuncStartTaskBar
+ I AFuncStartTaskBar 
#+ I Wait FvwmTaskBar
#+ I Wait FvwmPager*

# No panel (good for gnome and kde)
DestroyFunc AFuncStartPanelNone
AddToFunc   AFuncStartPanelNone
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-PanelSmall
+ I KillModule FvwmPager FvwmPager-Desker
+ I KillModule FvwmTaskBar
+ I EwmhBaseStruts 0 0 0 0

DestroyFunc AFuncStartFuncStartPanelNone
AddToFunc   AFuncStartFuncStartPanelNone
+ I  AFuncStartPanelNone

#---------------------------------------
# Config stuff

# a hack for startup
DestroyFunc AFuncConfigMenuCurrentWindowListResolution
AddToFunc   AFuncConfigMenuCurrentWindowListResolution

DestroyFunc AFuncModuleConfigUpdateMenu
AddToFunc   AFuncModuleConfigUpdateMenu
+ I DestroyMenu AMenuConfigPanel
+ I AddToMenu   AMenuConfigPanel "Panel Config" Title
+ I + "Small Panel" AFuncModuleConfigPanelAndSwitch Small
+ I + "Small Panel and Pager" AFuncModuleConfigPanelSmallAndPagerAndSwitch
+ I + "Large Panel" AFuncModuleConfigPanelAndSwitch Large
+ I + "TaskBar and Pager" AFuncModuleConfigTaskBarAndSwitch
+ I + "No Panel"    AFuncModuleConfigPanelAndSwitch None
+ I AFuncConfigMenuModuleCurrentPanel
+ I + "Global Window List" AFuncModuleConfigWindowListResolution Global AutoStick AFuncTaskBarResSwitcher
+ I + "Desk Window List" AFuncModuleConfigWindowListResolution Desk DeskOnly AFuncTaskBarResSwitcher
+ I AFuncConfigMenuCurrentWindowListResolution

# For Small and Large
DestroyFunc AFuncModuleConfigPanel
AddToFunc   AFuncModuleConfigPanel
+ I DestroyFunc AFuncStartFuncStartPanel
+ I AddToFunc AFuncStartFuncStartPanel I AFuncStartFuncStartPanel$0
#
+ I DestroyFunc AFuncConfigMenuModuleCurrentPanel
+ I AddToFunc   AFuncConfigMenuModuleCurrentPanel
+ I + I + "Current Panel: $0" Title
#
+ I AFuncModuleConfigUpdateMenu
#
+ I DestroyFunc AFuncTaskBarResSwitcher
+ I AddToFunc   AFuncTaskBarResSwitcher
#
+ I AFuncTaskBarResSwitcher
+ I DestroyFunc AFuncSaveConfigModulePanel
+ I AddToFunc   AFuncSaveConfigModulePanel
+ I + I Exec echo "AFuncModuleConfigPanel $0" >> $[FVWM_USERDIR]/.aconfig
+ I AFuncSaveConfig

# For Small and Pager
DestroyFunc AFuncModuleConfigPanelSmallAndPager
AddToFunc   AFuncModuleConfigPanelSmallAndPager
+ I DestroyFunc AFuncStartFuncStartPanel
+ I AddToFunc AFuncStartFuncStartPanel I AFuncStartFuncStartPanelSmall
+ I + I FvwmPager FvwmPager-Desker 0 $[FVWM_LAST_DESK]
#
+ I DestroyFunc AFuncConfigMenuModuleCurrentPanel
+ I AddToFunc   AFuncConfigMenuModuleCurrentPanel
+ I + I + "Current Panel: Small and Pager" Title
#
+ I AFuncModuleConfigUpdateMenu
#
+ I DestroyFunc AFuncTaskBarResSwitcher
+ I AddToFunc   AFuncTaskBarResSwitcher
#
+ I DestroyFunc AFuncSaveConfigModulePanel
+ I AddToFunc   AFuncSaveConfigModulePanel
+ I + I Exec echo "AFuncModuleConfigPanelSmallAndPager" >> $[FVWM_USERDIR]/.aconfig
+ I AFuncSaveConfig

# For TaskBar
DestroyFunc AFuncModuleConfigTaskBar
AddToFunc   AFuncModuleConfigTaskBar
+ I DestroyFunc AFuncStartFuncStartPanel
+ I AddToFunc AFuncStartFuncStartPanel I AFuncStartFuncStartTaskBar
#
+ I DestroyFunc AFuncConfigMenuModuleCurrentPanel
+ I AddToFunc   AFuncConfigMenuModuleCurrentPanel
+ I + I + "Current Panel: TaskBar and Pager" Title
#
+ I AFuncModuleConfigUpdateMenu
#
+ I DestroyFunc AFuncTaskBarResSwitcher
+ I AddToFunc   AFuncTaskBarResSwitcher I AFuncRestartModule FvwmTaskBar
#
+ I DestroyFunc AFuncSaveConfigModulePanel
+ I AddToFunc   AFuncSaveConfigModulePanel
+ I + I Exec echo "AFuncModuleConfigTaskBar" >> $[FVWM_USERDIR]/.aconfig
+ I AFuncSaveConfig

# --------------------------------------
# switchers

DestroyFunc AFuncModuleConfigPanelandSwitch
AddToFunc   AFuncModuleConfigPanelandSwitch
+ I AFuncModuleConfigPanel $0
+ I AFuncStartPanel$0

DestroyFunc AFuncModuleConfigPanelSmallAndPagerAndSwitch
AddToFunc   AFuncModuleConfigPanelSmallAndPagerAndSwitch
+ I AFuncModuleConfigPanelSmallAndPager
+ I AFuncStartPanelSmall
+ I KillModule FvwmPager FvwmPager-Desker
+ I FvwmPager FvwmPager-Desker 0 $[FVWM_LAST_DESK]

DestroyFunc AFuncModuleConfigTaskBarAndSwitch
AddToFunc   AFuncModuleConfigTaskBarAndSwitch
+ I AFuncModuleConfigTaskBar
+ I AFuncStartTaskBar

# Resolution

DestroyFunc AFuncModuleConfigWindowListResolution
AddToFunc   AFuncModuleConfigWindowListResolution
+ I *FvwmIconMan: Resolution $0
+ I DestroyModuleConfig FvwmTaskBar: DeskOnly
+ I *FvwmTaskBar: $1
+ I $2
#
+ I DestroyFunc AFuncConfigMenuCurrentWindowListResolution
+ I AddToFunc   AFuncConfigMenuCurrentWindowListResolution
+ I + I + "Current Resolution: $0" Title
#
+ I AFuncModuleConfigUpdateMenu
#
+ I DestroyFunc AFuncSaveConfigWindowListResolution
+ I AddToFunc   AFuncSaveConfigWindowListResolution
+ I + I Exec echo "AFuncModuleConfigWindowListResolution $0 $1 Nop" >> $[FVWM_USERDIR]/.aconfig
+ I AFuncSaveConfig
