Power management blocked icon ktorrent

My pc is running KDE 6.2.4 wayland on Manjaro.
When a program e.g. ktorrent is blocking sleep, it does not show in the tray:

Is there a way for the user to change this behavior, change the icon to the sleeping lock?

Hi! This is a good idea and conceptually possible to have built-in to the desktop environment - there are just a lot of details that would need worked through in order to implement (true with many topics, but ones where custom themes can be applied add to the complexity).

The wishlist item in KDE’s Bugtracking System has been recorded for Plasma developers to track: 345231 – Add overlay to tray icon when power management is inhibited

And if you’d like to review some earlier discussions about this topic, that occurred on KDE Discuss here: Battery and Brightness: Display Different Icon if Power Management is Disabled

As far as one-off custom things on your own device, that may be possible too, probably using some form of custom widget and D-Bus monitoring of how the sleep/screen locking (“inhibitions”) status is changing. The KDE Powerdevil daemon code that interacts with D-Bus is here, and may be of help if you’re interesting in following that path: daemon/dbus · master · Plasma / PowerDevil · GitLab

Hope that helps,

1 Like

Thanks for your response. Interesting that bug 345231 was created in 2015!

You’re welcome - and yep, there are a good number of good ideas out there that are waiting for folks who have the time and ability to put all the design and code pieces together into something that would work to ship out to users everywhere…I suppose if there were no ideas for improvement left, things would be less interesting! :slight_smile: