### vim:ft=fvwm:fdm=marker
###
### .fvwm/fvwmbuttons
###
### FvwmButtons Setup
###
### Frank Terbeck <ft@bewatermyfriend.org>
### Last-Modified: Fri Apr 30 22:19:04 2010
###
### <http://ft.bewatermyfriend.org/comp/fvwm.html>
###

###------------------------------------------------------------------###
### Dock:                                                            ###
###   This FvwmButtons instance emulates the WindowMaker Dock        ###
###   It is displayed on the left side of the screen                 ###
###------------------------------------------------------------------###

    DestroyModuleConfig Dock: *

    *Dock:  Geometry +0+0
    *Dock:  Colorset    10
    *Dock:  Columns     1
    *Dock:  Frame       0
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmbinclock,     'Exec exec wmbinclock -m horizontal -s on -i cyan -o gray -d blue'  )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmmon,          'Exec exec wmmon -l'                                                )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmmon,          'Exec exec wmmon -s -l'                                             )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmtop,          'Exec exec wmtop'                                                   )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmnd,           'Exec exec wmnd -b -I eth0,wlan0,ppp0,lo -i eth0'                   )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmwave,         'Exec exec wmwave'                                                  )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmbiff,         'Exec exec wmbiff -hi green'                                        )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmspaceweather, 'Exec exec wmspaceweather'                                          )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmfsm,          'Exec exec wmfsm'                                                   )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmbattery,      'Exec exec wmbattery', Kill                                         )
    *Dock:  ( 1x1,  Size 64 64,   Swallow wmmixer,        'Exec exec wmmixer -s -l darkcyan -L red'                           )

###------------------------------------------------------------------###
### DeskSwitch:                                                      ###
###   Another Window Maker inspired Feature                          ###
###   with this little window I can display a Desktopname            ###
###   and switch the Desktop by mouseclick                           ###
###------------------------------------------------------------------###

    DestroyModuleConfig DeskSwitch: *

    *DeskSwitch:  Geometry  +0-0
    *DeskSwitch:  Columns      1
    *DeskSwitch:  Rows         3
    *DeskSwitch:  Colorset     10
    *DeskSwitch:  Frame        0
    *DeskSwitch:  Padding    1 1
    *DeskSwitch:  Font -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
### the title is a little f*cked; upon initial start everthing is fine;
### but when restarting from another desk than '0' the title is wrong.
### the first desktop switch fixes it, though. so i don't care
    *DeskSwitch:  (2x1, Id desk, Title "$[desk.name0]")
    *DeskSwitch:  (1x1, Size 30 1, Title "<-  ", Action(Mouse 1) PrevDesktop)
    *DeskSwitch:  (1x1, Size 30 1, Title "  ->", Action(Mouse 1) NextDesktop)