Differentiate between "new" and "read" notifications
#214 opened on Feb 16, 2023
Repository metrics
- Stars
- (2,535 stars)
- PR merge metrics
- (PR metrics pending)
Description
My problem I often read my notifications and don't want to delete them yet (so I don't forget to act on them lol), but don't want them showing up in the same way as all "new" notifications. For example, I receive an email, I open swaync and see the notification, I want the notification to stick around, but when I close swaync I don't want a highlighted mark saying I still have notifications.
Describe the solution you'd like Two main steps here
- I would like there to be some sort of metadata on notifications to define when they've been "read". In my case, if I have opened swaync and close it since this notification appeared, I want that notification to be "read". Versus a notification that has been generated after the last time I toggled the notification center, it is "new". Could maybe add options to notification center to filter by read status in addition to filtering by time of notification.
- I would like
swaync-client -swbto differentiate between read and new notifications. This would allow me to set different icons on waybar. For example, right now, it only tells me I have 3 notifications, but if I've already "read" all 3 I want to display a different icon than if some of the notifications are new. The below output is an example of what I wantswaync-client -swbto output if I had two "read" notifications, and then the new output if I received an additional notification.
{"text": "2", "alt": "notification", "tooltip": "2 Notifications", "class": "notification"}
***in background, a third notification occurs***
{"text": "3", "alt": "notification-new", "tooltip": "3 Notifications (1 New)", "class": ["notification", "notification-new"]}
Describe alternatives you've considered Tried messing with waybar by itself, but the data output by swaync is too coarse to be able to do this.