Subject: Sample fvwm2rc: animated menu + autohide

From: Jui-Hsuan Joshua Feng <[email-masked]>
Date: Wed, 11 Feb 1998 23:30:15 -0600

Hi,

Hope this useful to understand the syntax of animated menu/panel
and autohide

-- 
Jui-Hsuan Joshua Feng                         (O)608/262-3640 
Electrical & Computer Engr, University of Wisconsin - Madison    
http://www.cae.wisc.edu/~fengj           [email-masked]
# be sure to customize these paths for your installation:
ModulePath /usr/lib/X11/fvwm2
PixmapPath /usr/include/X11/pixmaps
IconPath   /usr/include/X11/bitmaps

Style "Fvwm*"       NoTitle, Sticky, BorderWidth 2, WindowListSkip
Style "Fvwm*"       CirculateSkipIcon, CirculateSkip

AddToDecor Button-decor
+ HilightColor white steelblue

Style "FvwmButtons" UseDecor Button-decor, WindowListSkip, StaysOnTop
Style "FvwmButtons" NoHandles, BorderWidth 3, FvwmBorder
Style "FvwmButtons" Icon toolbox.xpm

Style "FvwmButtonsPanel" UseDecor Button-decor, Title, NoHandles, BorderWidth 0
Style "FvwmButtonsPanel" NoButton 2, NoButton 4

# When move the windows, the value 'XORed' to the edge -1 = "ffffff"
XORvalue -1

##################### FvwmButtons button-bar ##################################
*FvwmButtonsAutoHide 1
*FvwmButtonsBack bisque2
#*FvwmButtonsBack LightSteelBlue3
#*FvwmButtonsBack Grey
*FvwmButtonsGeometry +0-0
*FvwmButtonsRows 1

*FvwmButtons(2x1 Frame 0 Padding 0 0 Container(Rows 4 Frame -2 Padding 0 0))

  *FvwmButtons(10x1 Frame 0 Padding 0 0 Container(Rows 1 Frame -2 Padding 0 0))
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini.resize.xpm, Action 'Move')
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini-bomb.xpm, Action Close) 
    *FvwmButtons(2x1 Frame 1 Title EXIT, Action 'Module FvwmForm QuitVerify')
    *FvwmButtons(2x1 Nosize Frame 1 Icon mini-mail.xpm, Action 'MailFunction xmh "-font fixed"')
    *FvwmButtons(2x1 Nosize Frame 1 Panel 'Applications')
    *FvwmButtons(2x1 Nosize Frame 1 Panel 'Utilities')
  *FvwmButtons(End)

  *FvwmButtons(2x3 Frame 0 Padding 3 Swallow(Respawn, UseOld) XClock \
               'Exec /usr/bin/X11/xclock -bg bisque3 -padding 1 -geometry +5+5')

  *FvwmButtons(2x3 Frame 0 Padding 0 Icon CDE/graphics_pix.xpm)
  #*FvwmButtons(2x3 Frame 0 Padding 3 Swallow(Respawn, NoHints) xload \
  #             'Exec /usr/bin/X11/xload -scale 3 -nolabel -fg Black -bg DarkGrey')

  *FvwmButtons(2x3 Frame 0 Padding 3 Swallow(Respawn, UseOld) xbiff \
             'Exec xbiff -fg Black -geometry +50+10 -bg LightCyan3')

  *FvwmButtons(2x3 Frame 0 Padding 3 Icon apps_pix.xpm)

  *FvwmButtons(2x3 Frame 0 Padding 0 0 Container(Columns 2 Frame -2 Padding 0 0))
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini.xterm.xpm, Action 'Exec rxvt -bg Black -fg White -sb -ls')
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini-term.xpm, Action 'Exec /usr/bin/X11/crxvt -font vga8x15 -fnb5 et15 -ls &')
    *FvwmButtons(2x1 Nosize Frame 1 Icon mini-lock.xpm, Action 'Exec xlock -bg Black -fg White')
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini-zoom.xpm, Action 'Exec xmag') 
    *FvwmButtons(1x1 Nosize Frame 1 Icon mini-calc.xpm, Action 'Exec xcalc')
  *FvwmButtons(End)

*FvwmButtons(End)

*FvwmButtons(Frame 1 Padding 0 Swallow(Respawn, UseOld, Kill, NoHints) \
             FvwmPager 'Module FvwmPager 0 1')

####### PANEL 
*FvwmButtonsPanel Applications
*FvwmButtonsBack bisque2
#*FvwmButtonsBack Grey
*FvwmButtonsGeometry -16-3
*FvwmButtonsColumns 1

*FvwmButtons(1x2 Frame 1 Title(Left Side) Acrobat Icon acrobat.xpm, Action 'Exec /usr/local/lib/Acrobat3/bin/acroread')
*FvwmButtons(1x1 Frame 1 Title(Left Side) GV Icon mini-gv.xpm, Action 'Exec gv -letter')
*FvwmButtons(1x3 Frame 1 Title(Left Side) Gimp Icon gimp.xpm, Action 'Exec /usr/local/bin/gimp')
*FvwmButtons(1x1 Frame 1 Title(Left Side) Netscape Icon mini.netscape.xpm, Action  'Exec /usr/local/bin/netscape &')
*FvwmButtons(1x2 Frame 1 Title(Left Side) Scilab Icon scilab.xpm, Action 'Exec /usr/bin/scilab')
*FvwmButtons(1x1 Frame 1 Title(Left Side) VRweb, Action 'Exec /usr/local/bin/vrweb -helpDir /usr/local/lib/vrweb/help')
*FvwmButtons(1x2 Frame 1 Title(Left Side) XV Icon xv.xpm, Action 'Exec xv')
*FvwmButtons(1x1 Frame 1 Title(Left Side) Xpaint Icon mini.xpaint.xpm, Action 'Exec xpaint')

####### PANEL 
*FvwmButtonsPanel Utilities
*FvwmButtonsBack bisque2
#*FvwmButtonsBack Grey
*FvwmButtonsGeometry -16-3
*FvwmButtonsColumns 1

*FvwmButtons(1x1 Frame 1 Title(Left Side) Workman, Action 'Exec /usr/bin/X11/workman')
*FvwmButtons(1x1 Frame 1 Title(Left Side) Vim, Icon mini-edit.xpm, Action 'Exec /usr/bin/gvim') 
*FvwmButtons(1x2 Frame 1 Title(Left Side) Monitor, Icon CDE/monitor.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Books, Icon CDE/books_pix.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Files, Icon CDE/files_pix.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Edit, Icon CDE/edit_pix.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Application, Icon apps_pix.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Printer, Icon CDE/printer_pix.xpm)
*FvwmButtons(1x2 Frame 1 Title(Left Side) Recycle, Icon CDE/trash_pix.xpm)