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: 11,787
Website

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: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

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: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
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