How can I produce notification like these for custom events, e.g: AC plug in or out?
p.s. I’m aware of this, but I wanna replicate the aforementioned look.
thank you
How can I produce notification like these for custom events, e.g: AC plug in or out?
p.s. I’m aware of this, but I wanna replicate the aforementioned look.
thank you
There are already notifications for these events, their sounds are already enabled, you just need to enable their visual popups:
well, I’m currently using that, but that shows a regular notification.
I don’t know if this will work on your laptop, but:
Then add the following command to “When entering this power state”
qdbus org.freedesktop.Notifications /org/kde/osdService org.kde.osdService.showText battery "AC Connected"
Then add the following command to “When exiting this power state”
qdbus org.freedesktop.Notifications /org/kde/osdService org.kde.osdService.showText battery "AC Disconnected"
Finally click apply.
NB: You can change that “battery” icon to another one by picking name from icon selector
It worked like a charm!
thank you.
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.