#
# Format:
# *ASExec pixmappath "<path1>:<path2>:<path3>:..."
# *ASExec swallow "<window-name>" <command>
# *ASExec state "<state-label>" "<pixmap.xpm>"
# *ASExec swallow "<window-name>" [<x> <y>]
# *ASExec "<binding-label>" bind "<to-state-label>" event
# *ASExec "<binding-label>" exec <command>
# *ASExec ~state
#
# Events:
# timeout <milliseconds>     happens automatically, after a period of time
# mouse <button>             happens when <button> is pressed in the window
# enter                      happens when the cursor enters the window
# leave                      happens when the cursor leaves the window
#

*ASExec pixmappath "/usr/local/share/pixmaps:/usr/include/X11/pixmaps:."

*ASExec swallow "asclock" asclock -shape
*ASExec swallow "xclock" xclock -geometry 64x64

*ASExec state "frame0" "frame0.xpm"
*ASExec   swallow "asclock"
*ASExec   "next" bind "frame1" timeout 500
*ASExec   "to_state1" bind "state1" enter
*ASExec ~state

*ASExec state "frame1" "frame1.xpm"
*ASExec   "next" bind "frame2" timeout 500
*ASExec   "to_state1" bind "state1" enter
*ASExec ~state

*ASExec state "frame2" "frame2.xpm"
*ASExec   "next" bind "frame3" timeout 500
*ASExec   "to_state1" bind "state1" enter
*ASExec ~state

*ASExec state "frame3" "frame3.xpm"
*ASExec   "next" bind "frame4" timeout 500
*ASExec   "to_state1" bind "state1" enter
*ASExec ~state

*ASExec state "frame4" "frame4.xpm"
*ASExec   "next" bind "frame0" timeout 500
*ASExec   "to_state1" bind "state1" enter
*ASExec ~state



*ASExec state "state1" "state1.xpm"
*ASExec   swallow "xclock"
*ASExec   "to_state2" bind "state2" mouse 1
*ASExec   "to_state2" exec echo xmodmap ~/.modmap.state2
*ASExec   "to_animation" bind "frame0" leave
*ASExec ~state

*ASExec state "state2" "state2.xpm"
*ASExec   "to_state1" bind "state1" mouse 1
*ASExec   "to_state1" exec echo xmodmap ~/.modmap.state1
*ASExec   "to_self" bind "state2" timeout 1000
*ASExec   "to_self" exec echo hello, world!
*ASExec ~state
