Download Latest Version SimpleBatteryApplet_4.0.tar.gz.tar.gz (350.9 kB)
Email in envelope

Get an email when there's a new version of Simple Battery Applet

Home / 2.0 Release
Name Modified Size InfoDownloads / Week
Parent folder
README 2011-08-30 1.6 kB
SimpleBatteryApplet_2.0.tar.gz 2011-08-30 2.3 MB
Totals: 2 Items   2.3 MB 0
*** NEW ***
Charge level notifications are independent from libnotify.


Setup instructions...

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.
Compile it, if you want your applet to be able to change its icon in the same moment as power source changed. 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.

Anyway, after you've done what you want and compiled BatteryApplet from BatteryAppletSource folder, you can start it and enjoy.

Source: README, updated 2011-08-30