ErikReider/SwayNotificationCenter

Differentiate between "new" and "read" notifications

開放

#214 建立於 2023年2月16日

 (8 則留言) (6 個反應) (0 位負責人)Vala (98 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (2,535 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南