You are not logged in.

#1 2013-03-07 12:55:07

nictki
Member
Registered: 2008-12-06
Posts: 20

Battmon

Hy,
I wrote small battery monitoring program in python2 for my xmonad.

Basic features:
- very light (for really basic functionality you need only `python2` installed)
- works in background
- configurable
- no tray icon
- pop-up notifications
- options can be given through the command line

Any questions and suggestions are welcome.

Link

Last edited by nictki (2013-03-07 12:57:23)

Offline

#2 2013-03-07 13:38:41

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,137

Re: Battmon

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.


Sakura:-
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

Offline

#3 2013-03-07 16:10:55

nictki
Member
Registered: 2008-12-06
Posts: 20

Re: Battmon

thx, fixed

Offline

#4 2013-10-23 14:28:25

nictki
Member
Registered: 2008-12-06
Posts: 20

Re: Battmon

Hy,

if someone has interest, there is new version
what's new?
- bugfixes, bugfixes
- more options
- and more... wink

link

Last edited by nictki (2013-10-23 14:30:57)

Offline

#5 2013-10-23 16:06:42

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: Battmon

That's the best Changelog I've ever seen big_smile


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

Offline

#6 2013-10-27 17:28:26

nictki
Member
Registered: 2008-12-06
Posts: 20

Re: Battmon

Hy,

and here is another version bump

Last edited by nictki (2013-10-27 17:39:15)

Offline

#7 2013-10-30 13:58:53

s3vv4
Member
Registered: 2011-08-03
Posts: 13

Re: Battmon

What does it do? Stdout output or does it display a graphical widget?

Offline

#8 2013-10-30 14:16:37

nictki
Member
Registered: 2008-12-06
Posts: 20

Re: Battmon

Hy,

this is just simple battery monitor wink

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...

Offline

Board footer

Powered by FluxBB