# We can have an option with two buttonbar's, one is standard
# and one with Dominik's icons

DestroyModuleConfig FvwmButtons-Bar: *
*FvwmButtons-Bar: Frame	1
*FvwmButtons-Bar: Geometry	548x57+0-0
*FvwmButtons-Bar: Rows	5
*FvwmButtons-Bar: Columns	68
*FvwmButtons-Bar: BoxSize	fixed
*FvwmButtons-Bar: Padding	1 1
*FvwmButtons-Bar: Colorset	10

*FvwmButtons-Bar: (3x2+18+1, Colorset 23, Swallow (Close) xload `Exec exec xload -g +32767+32767 -fg $$[fg.cs10] -bg $$[bg.cs10] -nolabel`)
*FvwmButtons-Bar: (3x2+18+3, Colorset 23, Swallow (Close) BarXclock `Exec exec xclock -name BarXclock -geometry 16x16+2000+2000 -padding 2 -analog -bg $$[bg.cs10] -chime`, Action (Mouse1) Beep)
# Menu Popups
*FvwmButtons-Bar: (6x1+0+0,  Padding 0, Title Root,    Action `Menu MenuFvwmRoot      rectangle $widthx$height+$left+$top@g o+0 -100m Nop`)
*FvwmButtons-Bar: (6x1+6+0,  Padding 0, Title Modules, Action `Menu MenuFvwmModules   rectangle $widthx$height+$left+$top@g o+20 -100m Nop`)
*FvwmButtons-Bar: (6x1+12+0, Padding 0, Title Window,  Action `Menu MenuFvwmWindowOps rectangle $widthx$height+$left+$top@g o+30 -100m Nop`)
*FvwmButtons-Bar: (3x1+18+0, Padding 2, Title ^,       Action `Menu MenuFvwmThemes    rectangle $widthx$height+$left+$top@g o+30 -100m Nop`, \
	Action (Mouse 2) Beep, Action (Mouse 3) `Menu MenuFvwmConfiguration      rectangle $widthx$height+$left+$top@g o+30 -100m Nop`)
#*FvwmButtons-Bar: (3x1+18+0, Padding 2, Panel(smooth, indicator 15, position Module bottom left +0 -0 mtb) FvwmButtons-ColourTable `Module FvwmButtons -transientpanel FvwmButtons-ColourTable`, Action (Mouse 2) Beep)
# first row of buttons from left to right:
*FvwmButtons-Bar: (3x2+0+1,  Icon 16x16/lock.xpm, Action (Mouse 1) FuncFvwmWmLock, Action (Mouse 2) FuncFvwm2WmLock, Action (Mouse 2) FuncFvwm3WmLock)
*FvwmButtons-Bar: (3x2+3+1,  Icon 16x16/window-resize.xpm, Action Resize)
*FvwmButtons-Bar: (3x2+6+1,  Icon 16x16/window-move.xpm, Action Move)
*FvwmButtons-Bar: (3x2+9+1,  Icon 16x16/window-raise.xpm, Action (Mouse 1) Raise, Action (Mouse 2) Lower, Action (Mouse 3) RaiseLower)
*FvwmButtons-Bar: (3x2+12+1, Icon 16x16/window-shade.xpm, Action (Mouse 1) WindowShade, Action (Mouse 2) WindowShade on, Action (Mouse 3) WindowShade off)
*FvwmButtons-Bar: (3x2+15+1, Icon 16x16/utility.xpm, Action ToggleFvwmConsole)
# second row of buttons from left to right:
*FvwmButtons-Bar: (3x2+0+3,  Icon 16x16/quit.xpm, Action FuncFvwmQuitVerify)
*FvwmButtons-Bar: (3x2+3+3,  Icon 16x16/restart.xpm, Action (Mouse 1) FuncFvwmWmRestart, Action (Mouse 2) FuncFvwm2WmRestart, Action (Mouse 3) FuncFvwm3WmRestart)
*FvwmButtons-Bar: (3x2+6+3,  Icon 16x16/window-close.xpm, Action (Mouse 1) FuncFvwmWindowClose, Action (Mouse 2) FuncFvwm2WindowClose, Action (Mouse 3) FuncFvwm3WindowClose)
*FvwmButtons-Bar: (3x2+9+3,  Icon 16x16/refresh.xpm, Action Recapture)
*FvwmButtons-Bar: (3x2+12+3, Icon 16x16/information.xpm, Action (Mouse 1) ToggleXMessages, Action (Mouse 2) ToggleStickyXMessages, Action (Mouse 3) ToggleSlipperyXMessages)
*FvwmButtons-Bar: (3x2+15+3, Icon 16x16/terminal.xpm, Action (Mouse 1) FuncFvwmTerminal, Action (Mouse 2) FuncFvwm2Terminal, Action (Mouse 3) FuncFvwm3Terminal)
# big items
*FvwmButtons-Bar: (11x5, Swallow FvwmPager-Single 'FvwmPager FvwmPager-Single * * -geometry 40x40-2000-2000')
*FvwmButtons-Bar: (14x5, Swallow FvwmIconMan 'Module FvwmIconMan')
*FvwmButtons-Bar: (22x5, Colorset 23, Swallow (Close) BarXosview FuncFvwmStartBarXosview)

# ----------------------------------------------------------------------------

DestroyFunc ToggleXMessages
AddToFunc   ToggleXMessages
+ I None ("File Viewer - *.X.err") FuncFvwmViewFile $[HOME]/.X.err
+ I Next ("File Viewer - *.X.err") Close

DestroyFunc ToggleStickyXMessages
AddToFunc   ToggleStickyXMessages
+ I Style "File Viewer - *.X.err" Sticky
+ I Function ToggleXMessages

DestroyFunc ToggleSlipperyXMessages
AddToFunc   ToggleSlipperyXMessages
+ I Style "File Viewer - *.X.err" Slippery
+ I Function ToggleXMessages

DestroyFunc ToggleFvwmConsole
AddToFunc   ToggleFvwmConsole
+ I None (FvwmConsole, CirculateHit) FuncFvwmConsole
+ I Next (FvwmConsole, CirculateHit) Close

DestroyFunc FuncFvwmStartBarXosview
AddToFunc   FuncFvwmStartBarXosview
+ I All (BarXosview) Close
+ I Exec xosview -name BarXosview -xrm 'xosview*background:$[bg.cs10]' +load \
	+mem -net -cpu -int -swap +page -battery -disk \
	-geometry 100x50+0-0 -font 5x7 \
	2>/dev/null; if [ "$?" = 127 ]; then \
	xlogo -fg $$[fg.cs10] -bg $$[bg.cs10] -g 100x50+0-0 -name BarXosview; fi
