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.1 Release
Name Modified Size InfoDownloads / Week
Parent folder
SimpleBatteryApplet_2.1.tar.gz 2011-11-12 1.8 MB
README 2011-11-11 2.5 kB
Totals: 2 Items   1.8 MB 0
Version 2.1
BatterySteteNotifier was replaced by BatteryAppletAgent
Several bugs were fixed.

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) Configuration
	In folder you can find "images" directory, where battery's 
	state images are. Move them somwhere you'd like or create
	your own, with names like "87.png" and "87_ch.png" for 
	charging battery. The numbers in the name can be any from
	0 to 100.
	Also in the same folder you can find "Settings.h" file. Where
	you should declare path to images and command to execute when
	the charge is extremly low.	
3) Compilation of main programm
	Type "qmake" press return key
	Type "make" press return key
4) Congratulation!
	You can run applet via the binary BatteryApplet in the same 
	folder (SimpleBatteryApplet/BatteryAppletSource)

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.

Source: README, updated 2011-11-11