Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.7

Description:
This is a modification of the original battery plasmoid of plasma desktop. It allows interpolation between battery states which effectivly provides a continuous bar instead of only 6 fill states.
Last changelog:

0.2:
- added 4.5 version

0.1:
- initial release


Ratings & Comments

8 Comments

Contrast

I'd really like to have access to this improvement over the default battery monitor, but it doesn't want to build on KDE 4.6.4. Here's the output from "make" (cmake completes with no errors): http://pastebin.com/M1u5RED5 Any plans on updating this to work on the current version of KDE?

Kame2

I'm very short in time for at least the next month, so I cannot port the code to 4.6/4.7. But if someone wants to do it, I can upload it here.

molecule-eye

I'm having trouble compiling this mostly (or entirely!) because I don't know what I'm doing. I've run a cmake on the extracted source folder which created a CMakeFiles folder. Am I on the right track? If anyone could offer up some help to this Kubuntu user, I'd be very grateful.

molecule-eye

Nice. On a side, I would change the name of the plasmoid since it's not clear what 'Battery NG' means. I found your plasmoid completely by accident.

bitcrazy

/home/ds/Download/battery-ng/battery.cpp:58:28: error: Plasma/Separator: Datei oder Verzeichnis nicht gefunden /home/ds/Download/battery-ng/battery.cpp: In constructor ‘Battery::Battery(QObject*, const QVariantList&)’: /home/ds/Download/battery-ng/battery.cpp:103: error: ‘ActiveStatus’ is not a member of ‘Plasma’ /home/ds/Download/battery-ng/battery.cpp:103: error: ‘setStatus’ was not declared in this scope /home/ds/Download/battery-ng/battery.cpp: In member function ‘void Battery::dataUpdated(const QString&, const QHash<QString, QVariant>&)’: /home/ds/Download/battery-ng/battery.cpp:248: error: ‘PassiveStatus’ is not a member of ‘Plasma’ /home/ds/Download/battery-ng/battery.cpp:248: error: ‘setStatus’ was not declared in this scope /home/ds/Download/battery-ng/battery.cpp:250: error: ‘NeedsAttentionStatus’ is not a member of ‘Plasma’ /home/ds/Download/battery-ng/battery.cpp:250: error: ‘setStatus’ was not declared in this scope /home/ds/Download/battery-ng/battery.cpp:252: error: ‘ActiveStatus’ is not a member of ‘Plasma’ /home/ds/Download/battery-ng/battery.cpp:252: error: ‘setStatus’ was not declared in this scope Releases for trunk don't help the average user at all. So please consider to have a version for current stable, too. Regards m0nk

Kame2

Thank you for testing. I added a version based on the source from 4.3. Hope this works.

bitcrazy

After renaming battery-oxygen.svgz to battery.svgz it compiled and installed successfully. Is there any chance to get the remaining time calculated instead of the percentage? That would be more interesting in my opinion. Regards m0nk

Kame2

The option is there, but you have to edit plasma's config. see http://websvn.kde.org/trunk/KDE/kdebase/workspace/plasma/generic/applets/battery/battery.cpp?revision=978089&view=markup More detailed: - close plasma-desktop - open ~/.kde4/share/config/plasma-desktop-appletsrc in a editor - search for plugin=battery you should see something like this: [Containments][3][Applets][9] geometry=2,689.5,35,35 immutability=1 plugin=battery zvalue=270 [Containments][3][Applets][9][Configuration] Share=false - If here is no [Configuration] Section create it - add the line showRemainingTime=true to this Section - restart plasma-desktop

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0