this post was submitted on 20 Dec 2023
8 points (100.0% liked)

KDE

5362 readers
109 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS
 

I'm working on a project to create an LED ring that lights up based on my active notifications in KDE Plasma. I'm wondering if there's a way to access the current list of active notifications without having to dive into the KDE source code.

Is there an existing API or method for grabbing this info? Any tips would be greatly appreciated!

top 4 comments
sorted by: hot top controversial new old
[–] jsh@sh.itjust.works 2 points 11 months ago (1 children)

I have no clue how helpful this is because I was just looking stuff up, but the Arch wiki has an article on notifications that could help point you in the right direction if you haven't looked at it already.

https://wiki.archlinux.org/title/Desktop_notifications#Notification_servers

[–] NobreHD@lemmy.kde.social 2 points 11 months ago* (last edited 11 months ago) (1 children)

Yeah, I didn't look at it before, but it also don't seem to have any useful information except:

(...) KDE Plasma use their own implementations to display notifications, and it cannot be replaced.

[–] NobreHD@lemmy.kde.social 1 points 11 months ago* (last edited 10 months ago) (1 children)

Actually, nevermind. With it, I learned that the notifications uses DBus, which you can eavesdrop and get the notifications that way. Thanks, Josh

[–] kloud@ioc.exchange 2 points 11 months ago

@NobreHD
If it helps, I made a similar thing, but for my rgb keyboard :ablobowo:
https://github.com/dgudim/keyboard_vis