pass duration to _text

this makes the function signature for `_text()` different from the other
formatting functions used in `notify()`; not sure if that's the lesser evil or
of i should just pass `duration` to every one of those functions.