ErikReider/SwayNotificationCenter

Differentiate between "new" and "read" notifications

Aberta

#214 aberto em 16 de fev. de 2023

 (8 comentários) (6 reações) (0 responsável)Vala (98 forks)auto 404
enhancementhelp wanted

Métricas do repositório

Stars
 (2.535 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

  1. 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.
  2. I would like swaync-client -swb to 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 want swaync-client -swb to 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.

Guia do colaborador