Difference between revisions of "KThinkBat"
(new version with tp_smapi support) |
|||
| Line 1: | Line 1: | ||
==Description== | ==Description== | ||
| − | [https://lepetitfou.dyndns.org | + | [https://lepetitfou.dyndns.org/KThinkBat KThinkBat] is a laptop battery monitor for the KDE-Kicker. It is inspired by the Windows Application "Battery Maximizer" which is included with ThinkPads. |
| − | Homepage: https://lepetitfou.dyndns.org | + | On ThinkPads it uses the SMAPI BIOS through the tp_smapi driver. |
| + | |||
| + | Homepage: https://lepetitfou.dyndns.org/KThinkBat | ||
Author: Tobias Roeser | Author: Tobias Roeser | ||
| − | Latest Version: 0.1. | + | Latest Version: 0.1.5_alpha2 |
==Screenshot== | ==Screenshot== | ||
Revision as of 11:31, 12 January 2006
Description
KThinkBat is a laptop battery monitor for the KDE-Kicker. It is inspired by the Windows Application "Battery Maximizer" which is included with ThinkPads.
On ThinkPads it uses the SMAPI BIOS through the tp_smapi driver.
Homepage: https://lepetitfou.dyndns.org/KThinkBat
Author: Tobias Roeser
Latest Version: 0.1.5_alpha2
Screenshot
Offline Mode: You see how much power left and how much is consumed at the moment.
Online Mode: You see the loading-power.
Installation
KThinkBat uses the autotools. For a standard installation use
./configure make su -c 'make install'
Gentoo
You can use the the ebuild from this portage overlay, category/package: app-laptop/kthinkbat.
Patches
Here's a small patch that changes the color of the current power consumtion text to white ( for dark background). Furthermore it changes the battery gauge's size (looks nicer if you place the kicker vertical).
diff -ur kthinkbat.orig/src/kthinkbat.cpp kthinkbat/src/kthinkbat.cpp
--- kthinkbat.orig/src/kthinkbat.cpp 2005-12-15 22:54:28.000000000 +0100
+++ kthinkbat/src/kthinkbat.cpp 2005-12-15 23:32:10.000000000 +0100
@@ -101,7 +101,7 @@
void KThinkBat::paintEvent(QPaintEvent* event)
{
// Werte fr Gauge und Rand
- QSize gaugeFill(40, 18);
+ QSize gaugeFill(40, 14);
QSize gHalfDot(4, 4);
QSize offset(4, 4);
@@ -135,9 +135,10 @@
painter.drawPolyline(border);
// Prozent-Anzeige
- painter.drawText( offset.width() + 12, offset.height() + gaugeFill.height() - 5, QString().number(batValue));
+ painter.drawText( offset.width() + 14, offset.height() + gaugeFill.height() - 2, QString().number(batValue));
// aktueller Verbrauch in W
+ painter.setPen ( "white" );
painter.drawText( offset.width(), offset.height() + gaugeFill.height() + 12, QString().number((mWH + 500)/1000) + " " + unity );
painter.end();