https://bugs.kde.org/show_bug.cgi?id=475255
--- Comment #13 from Jakob Petsovits <jpe...@petsovits.com> --- (In reply to Daniel Gibson from comment #11) > Can someone tell me where I can find the source code for this? > Searching for "battery" on https://invent.kde.org/ didn't give me any > results. Invent's search functionality is not particularly useful in many cases. lxr.kde.org does a better job in general, in particular for cross-repository searches. You'll mainly want to look in two places: The PowerDevil action that implements power profile switching: https://invent.kde.org/plasma/powerdevil/-/blob/v6.0.2/daemon/actions/bundled/powerprofile.cpp Also look at: - the associated .h file - the corresponding .xml files for the D-Bus interfaces that it's using to communicate with power-profiles-daemon - org.kde.Solid.PowerManagement.Actions.PowerProfile.xml which uses the PowerProfile class to expose its own D-Bus service The Power and Battery applet: https://invent.kde.org/plasma/plasma-workspace/-/blob/v6.0.2/applets/batterymonitor/package/contents/ui/main.qml Also look at: - PopupDialog.qml and PowerProfileItem.qml in the same directory, which are child items of main.qml - The associated dataengine that exposes PowerDevil's D-Bus service to the applet: https://invent.kde.org/plasma/plasma-workspace/-/blob/v6.0.2/dataengines/powermanagement/powermanagementengine.cpp -- You are receiving this mail because: You are watching all bug changes.