xnotify: popup a notification on your screen - Programming On Unix
Users browsing this thread: 8 Guest(s)
|
|||
(01-11-2020, 09:49 PM)phillbush Wrote: Which notification system do you use and how do you set a keybinding to pause it? The code for it is here but it might not be super useful as it is a long-running notification service rather than just the window-drawing side. It is a plugin for Qtile, which deals with the key-listening internally, so it is easy to bind methods to keys to pause and unpause notifications. For xnotify you could check for a "backlog" file before drawing windows. If it doesn't exist, notifications aren't paused, draw the window; if it exists, append the notification data to the backlog and exit. Then add a pause argument to create that file, and an unpause argument to go through it and replay the notifications that were redirected there. That might be a simple implementation :) |
|||