Add command-on-exit.py to examples

This example shows how to run a command when i3 exits