
#                   /*** fvwm2-ade:  FvwmButtons ***/

*FvwmButtonsFore TOOLSFOREGROUND
*FvwmButtonsBack BUTTONBACKGROUND
*FvwmButtonsFont BUTTONBARFONT
*FvwmButtonsGeometry \
	FVWMBUTTONSSIZE<<+>>FVWMBUTTONSXPOS<<-0>>
*FvwmButtonsRows 10

*FvwmButtons(16x10, Container(Rows 10))

   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEDNARROW, \
	        Action 'Exec "Time Machine" timetool')
   *FvwmButtons(1x4, Container(Rows 1), Frame 1)

#      The seven lines following this comment put a pretend analog clock
#      with a simple little date widget next to it in the leftmost frame
#      of the button bar.

      *FvwmButtons(1x1, Frame 0, Swallow "xclock" \
                   'Exec xclock -geometry 50x50 -padding 2 -update 1 \
                   -fg DQ_TOOLSFOREGROUND -bg DQ_BUTTONBACKGROUND \
                   -hd DQ_TOOLSSTANDOUT -hl DQ_TOOLSSTANDOUT')
      *FvwmButtons(1x1, Frame 0, Padding 4 4, Swallow "date-widgie" \
                   'Exec BASE/bin/date-widgie -bg DQ_BUTTONBACKGROUND \
                   -fg DQ_TOOLSFOREGROUND -fn BUTTONBARFONT')

#     The next line puts the xdaliclock in the leftmost frame of the
#     button bar.  If you want to use this time/date option, first make
#     sure you have the xdaliclock on your system (when xdaliclock is
#     running, the clock takes up the entire frame, but if you click on
#     the frame and hold the mouse button down the date will appear).
#     If you use this option, comment out the default setting above by
#     putting a "#" at the beginning of each of the seven lines
#     preceding these instructions, and uncomment the four lines below
#     by removing the "#" from the beginning of each line.

#      *FvwmButtons(1x1, Frame 0, Swallow "xdaliclock" \
#	            'Exec xdaliclock \
#                   -fn -adobe-helvetica-bold-r-*-*-18-*-*-*-*-*-*-* \
#                   -bg DQ_BUTTONBACKGROUND -fg DQ_TOOLSFOREGROUND')

   *FvwmButtons(End)
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu SysToolsII')
   *FvwmButtons(1x4, Frame 1, Swallow "xload" \
                'Exec xload -label "" -bg DQ_BUTTONBACKGROUND \
                -fg DQ_TOOLSFOREGROUND -hl DQ_TOOLSSTANDOUT')
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu FileManII')
   *FvwmButtons(1x4, Frame 1, Icon FILETOOLICON, \
                Action 'Exec "FILETOOLCLASS" FILETOOLEXEC')
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu DeskToolsII')
   *FvwmButtons(1x4, Frame 1, Icon DESKTOOLICON, \
                Action 'Exec "DESKTOOLCLASS" DESKTOOLEXEC')
*FvwmButtons(End)

*FvwmButtons(5x10, Padding 0 0, Container(Rows 2))
   *FvwmButtons(1x1, Frame 0, Padding 0 0, Icon FAVORITELOCKICON, \
                Action 'Exec "xlock" xlock -mode random -duration 30')
   *FvwmButtons(1x1, Frame 0, Padding 0 0, Icon FAVORITERESTARTICON, \
                Action Restart)
*FvwmButtons(End)

*FvwmButtons(eval(NUMOFDESKTOPS * 12)x10, Frame 1, Padding 1 1, \
             Swallow "FvwmPager" "FvwmPager 0 decr(NUMOFDESKTOPS)")

*FvwmButtons(5x10, Frame 0, Padding 0 0, Container(Rows 2))
   *FvwmButtons(1x1, Frame 0, Padding 0 0, Icon FAVORITEEXITICON, \
                Action 'FvwmForm QuitVerify')
   *FvwmButtons(1x1, Frame 0, Padding 0 0, Icon FAVORITEMANICON, \
                Action 'Exec "xman" bash -i -c xman')
*FvwmButtons(End)
 
*FvwmButtons(8x10, Container(Rows 10))

   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu MailII')

   *FvwmButtons(1x4, Frame 1, Icon MAILTOOLICON, \
                Action 'Exec "MAILTOOLCLASS" MAILTOOLEXEC')

#  The next three lines replace the normal contents of the mail-tool
#  button with a running xbiff, which, if working properly, displays a
#  mailbox bitmap in the frame.  If it detects additions to your mail
#  spool file, then the flag pops up.  This is a cheesy old X tool.  If
#  you want to use it, then comment out the default setting by adding a
#  "#" to each of the two lines preceding this comment, and uncomment
#  the three lines following this comment.  Note that this change will
#  screw up the GUI configuration of the button.

#   *FvwmButtons(1x4, Frame 1, Swallow "xbiff" \
#                'Exec xbiff -bg DQ_BUTTONBACKGROUND \
#                 -fg DQ_TOOLSFOREGROUND', Action 'Exec nxterm')

#  The next four lines replace the normal contents of the mail-tool
#  button with a running xmailbox, which, if working properly, displays
#  a pixmap of a closed mailbox in the frame.  If it detects additions
#  to your mail spool file, then the pixmap changes to an open mailbox
#  with mail inside.  It is possible to set the resources of the
#  xmailbox so that a double-click on it will launch a mail user agent.
#  See the xmailbox man page.  To use this alternative, comment out the
#  default setting above by adding a "#" to each of the two lines
#  preceding this block of comments.  Note that this change will screw
#  up the GUI configuration of the button.

#   define(<<DUMMY>>, patsubst(USER, <<`>>, <<>>))dnl
#   define(<<USR>>, patsubst(DUMMY, <<'>>, <<>>))dnl
#   *FvwmButtons(1x4, Frame 1, Swallow "XMailbox" \
#		'Exec xmailbox -file /var/spool/mail/USR')

*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu WWWII')
   *FvwmButtons(1x4, Frame 1, Icon WEBTOOLICON, \
                Action 'Exec "WEBTOOLCLASS" WEBTOOLEXEC')
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x2, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
	        Action 'Menu AppsII')
   *FvwmButtons(1x8, Container(Rows 2))
      *FvwmButtons(1x1, Frame 1, Title 'B1TOOLLABEL', \
                   Action 'Exec "B1TOOLCLASS" B1TOOLEXEC')
      *FvwmButtons(1x1, Frame 1, Title 'B2TOOLLABEL', \
                   Action 'Exec "B2TOOLCLASS" B2TOOLEXEC')
   *FvwmButtons(End)
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu HostsII')
   *FvwmButtons(1x4, Frame 1, Title XHOST, Icon TERMTOOLICON, \
                Action 'Exec "TERMTOOLCLASS" TERMTOOLEXEC')
*FvwmButtons(End)

*FvwmButtons(8x10, Container(Rows 10))
   *FvwmButtons(1x1, Frame 1, Padding 1 1, Icon FAVORITEUPARROW, \
                Action 'Menu FvwmII')
   *FvwmButtons(1x4, Frame 1, Icon FVWMTOOLICON, \
                Action 'FVWMTOOLTYPE FVWMTOOLACTION')
*FvwmButtons(End)
