Skip to content
Clone of BatteryMon, a simple GNOME applet to monitor battery status. This adds i18n support, a distutils based build infrastructure, etc. The homepage of the original software is at http://code.google.com/p/batterymon/
Python Shell
Find file
#4 Compare This branch is 29 commits ahead of sayamindu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
icons
icons_src
po
.gitignore
MANIFEST.in
README.md
__init__.py
batterymon
batterymon.rc
batterymon.spec
preferences.py
settings.py
setup.py

README.md

batterymon-clone

Summary

batterymon-clone is a simple battery monitor tray icon for Linux.

  • Written in Python
  • Should work on any desktop environment
  • Very little dependencies: just Python and PyGTK
  • Optional support for notify-python, for notifications using libnotify

The current implementation reads battery information from /sys/class/power_supply/, and updates the state by polling every few seconds.

Changelog summary:

  • Version 1.4.0 reads information from /sys/class/power_supply/, which has been added in Linux kernel 2.6.23. However, it uses power_now instead of current_now, and thus only works on 2.6.30 and newer.

  • Version 1.3.0 reads information from /proc/acpi/ interface (which has been removed from Linux kernel 2.6.39). The old DBus+HAL code was replaced by polling the battery state every few seconds.

  • Older versions used DBus and HAL instead of polling the state every few seconds. However, support for HAL has been deprecated and removed from most distros.

History

batterymon-clone is a fork of batterymon

batterymon was originally written in mid-2009 by Matthew Horsell and Tomas Kramar, and was available at Google Code.

It was later forked in 2010 as batterymon-clone by sayamindu on GitHub.

After a long time without commits, denilsonsa forked and updated it in mid-2011.

Each one of the authors contributed a little in order to make batterymon a better software for their own needs. You can also contribute! Feel free to fork this code and improve it!

Future improvements

Here is a list of things you can do to help moving batterymon forward:

You do not need to ask for permission to fix them. Just fork this repository and start coding!

Something went wrong with that request. Please try again.