fix sleep regression buf + improve xmonad example to listen for changes

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