You haven't bothered looking at any threads. There was a thread recently where I pointed out a plugin with source, and many programs out with source check the battery level (KeyCleaner is one). Combine the two. You're supposedly a dev - do the work yourself.