I wrote small battery monitoring program in python2 for my xmonad.
- very light (for really basic functionality you need only `python2` installed)
- works in background
- no tray icon
- pop-up notifications
- options can be given through the command line
Any questions and suggestions are welcome.
Last edited by nictki (2013-03-07 12:57:23)
I recommend that you replace "#!/usr/bin/env python" with something less ambiguous.
For example, on Arch "/usr/bin/env python" will get you a python3 shell, on Scientific Linux, it gets you a python2 shell. If you want python2 (which it it looks like you do), then either use "#!/usr/bin/env python2" or, if you need a specific version of python2, something like "#!/usr/bin/env python2.7".
Thanks though, I might use your script on my netbook.
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD
if someone has interest, there is new version
- bugfixes, bugfixes
- more options
- and more...
Last edited by nictki (2013-10-23 14:30:57)
That's the best Changelog I've ever seen
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
and here is another version bump
Last edited by nictki (2013-10-27 17:39:15)
What does it do? Stdout output or does it display a graphical widget?
this is just simple battery monitor
it's run in background and monitor your battery,
sends notifications like popup's, sound if you like, when battery/ac state was changed,
(btw it's play nice with dunst)
can shutdown, hibernate your computer when battery has minimal level...