add example that can be used from xmobar

Signed-off-by: Mattias Andrée <maandree@operamail.com>