SUPERCILEX / gnome-clipboard-history

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.
https://extensions.gnome.org/extension/4839/clipboard-history/
MIT License
471 stars 46 forks source link

Disable notifications in Message Tray for system's "Do not Disturb" mode and extensions "Private" mode #134

Closed xalt7x closed 1 year ago

xalt7x commented 1 year ago

Problem description

I like switching clipboard items with "Previous..." and "Next entry" hotkeys. Notifications during switch help to identify entries. They stay on a Message Tray for some time, then disappear. In "Do not disturb" mode during switch user can't see notification of a current entry. And that's probably a reason why the record on a Message Tray never disappear. Situation gets even more confusing with extensions which bring notification alerts and counters (e.g. "Notification Counter", "Always Indicator" , "Notification Alert", "Rocketbar"). User often gets increased number, indicator or alert which doesn't help to track important notifications.

Potential solutions/workarounds

Disable notifications in "Do not disturb" mode. I guess it would be nice to disable them for the "Private mode" as well.

Additional context

I've seen that GNOME currently has transient notifications notify-send --transient "Hello" but they behave similarly (never disappear in "Do not disturb" mode)

SUPERCILEX commented 1 year ago

I'd welcome a PR for both your solutions.