https://bugs.kde.org/show_bug.cgi?id=500308

            Bug ID: 500308
           Summary: close notifications hotkey and/or dbus command (close
                    / clear / remove)
    Classification: Plasma
           Product: plasmashell
           Version: git-stable-Plasma/6.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: Notifications
          Assignee: plasma-b...@kde.org
          Reporter: kolafl...@kolahilft.de
                CC: k...@privat.broulik.de
  Target Milestone: 1.0

Please add a hotkey and / or a dbus command to clear (remove) all current
notifications.

---

I don't seem to be the only one missing that. People have even come up with a
Plasma-5 workaround.

# get the highest current notification id and close all notifications up to
that id

# tested Plasma-5.27
for i in $(seq $(notify-send -p " " -t 1) -1 0); do qdbus org.kde.plasmashell
/org/freedesktop/Notifications org.freedesktop.Notifications.CloseNotification
$i; done

https://discuss.kde.org/t/how-does-clear-all-notifications-button-work/3286/3
https://www.reddit.com/r/kde/comments/8cpuxx/comment/ju7hc4v/
https://www.reddit.com/r/kde/comments/8cpuxx/comment/ju7hc4v/
https://forum.pine64.org/showthread.php?tid=11713

---

Workaround problems:

Unfortunately the workaround doesn't work for Dolphin copy-notifications.

Plasma-6:
"notify-send" misses "-p" option. So the workaround becomes even worse and only
work up to a fixed id.

# tested Plasma-6.3
for i in {0..1000}; do qdbus org.kde.plasmashell /org/freedesktop/Notifications
org.freedesktop.Notifications.CloseNotification $i; done

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to