Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README | 2012-01-15 | 2.8 kB |
|
SimpleBatteryApplet_3.1.tar.gz | 2012-01-15 | 482.1 kB | |
Totals: 2 Items | 484.9 kB | 0 |
Version 3.1 This is minor bug-fixing release. It contains only minor improvements. Thanks to Klaus Schneider-Zapp, it's now possible to configure the path to the battery uevent file in Settings.h . After changing the power source the notification message disappears properly. Setup instructions... Make sure you have got installed acpi package!!! Battery applet still depends on it! 1) Preparation Decompress the archive. Go into the SimpleBatteryApplet directory Go into the BatteryAppletSource directory 2) Compilation of main programm Type "qmake" press return key Type "make" press return key 3) Congratulation! You can run applet via the binary BatteryApplet in the same folder (SimpleBatteryApplet/BatteryAppletSource) 4) Configuration You can add your own battery icons(Oxygen theme can be found in the images directory). You will need to create somwhere a folder with icons named like 98.png (where 98 is percentage for this icon) and 98_ch.png where _ch means charging. You can specify the path to the folder with icons via command line. (Type BatteryApplet -h to see how.) As soon as battery applet checks battery state every 30 sec, we will maybe need something to notify it that the ac adapter is plugged in or out... So if you'd like to get information about changing immediately, you can compile BatteryAppletAgent. (It's not necessary for BatteryApplet) 1) Preparation Go into thw SimpleBatteryApplet/BatteryAppletAgent directory 2) Compilation Run "qmake" command as for BatteryApplet Run "make" 3) Setup Create two files in folder "/etc/acpi/events", for example with names "notifyAC" and "notifyBAT". The contents of the files should be: notifyAC: #----------------------------------------------------- # /etc/acpi/events/ac # Called when the user connects ac power to us # event=ac_adapter.* action=/path/to/BatteryAppletAgent ac #---------------------------------------------------------- notifyBAT: #---------------------------------------------------------- # /etc/acpi/events/battery # Called when AC power goes away and computer switchs to battery event=battery.* action=/path/to/BatteryAppletAgent battery #----------------------------------------------------------- 4) Congratulation! It should work now! So now the icon will be changed as soon as you change power source But if you don't want to create some files in /etc/acpi ... It will still work, but it's icon will be changes after 30 seconds after you've changed power source. Anyway, after you've done what you want and compiled BatteryApplet from BatteryAppletSource folder, you can start it and enjoy. Contribution: Klaus Schneider-Zapp <kschn@users.sourceforge.net> -- Structural ideas and Patches, improving the icon selection algorithm.