knopwob/dunst — Issue #10: support middleware
Author: scottjad
Created: 2012-02-24 01:57:57+00:00
State: open

If incoming notifications were a map it would be cool if they passed through a series of middleware functions that could return a possibly changed map. With C not sure how this would work, perhaps the middleware would have to be added at compile time.

Here are a few examples of things that could be middleware:
- Change critical level messages from some app or containing some text to normal level
- Increase duration on notifications from some app
- Change sticky notifications (-t 0?) from some app to non-sticky
- Set colors for notifications from some app
- Determine if user is active and optionally set notification to be sticky
- Rewrite the text of a notification from some app to be more succinct/better formatted.