| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README | 2011-05-25 | 1.9 kB |
|
| SimpleBatteryApplet_1.0.tar.gz | 2011-05-25 | 11.7 kB | |
| Totals: 2 Items | 13.6 kB | 0 | |
BatteryApplet 1.0 Make sure you have got installed acpi package!!! Battery applet still depends on it! Decompress the archive. In folder BatteryAppletSource you can find source of the applet, written in Qt. In folder BatteryStateNotifier there are sources for the programm wich is used to notificate an applet that source of power has changed. If you want your applet to be able to change its icon in the same moment as power source changed compile it. 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/batterystatenotifier ac #---------------------------------------------------------- notifyBAT: #---------------------------------------------------------- # /etc/acpi/events/battery # Called when AC power goes away and we switch to battery event=battery.* action=/path/to/batterystatenotifier battery #----------------------------------------------------------- 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. Altough, you will need icons of batteries, so you should place them somewhere and in BatteryAppletSource folder edit the path to batteries in "Settings.h" file. Don't forget batteries names must be something like 10.png or 20.png so, another words, they should look like "percentage".png and for charging battery -- "percentage"_ch.png Anyway, after you've done what you want and compiled BatteryApplet from BatteryAppletSource folder, you can start it and enjoy. Created by tertiary (Teodor Vlasov). email: teodor.vlasov@gmail.com