You are not logged in.
Pages: 1
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.
Last edited by nictki (2013-03-07 12:57:23)
Offline
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
thx, fixed
Offline
Hy,
if someone has interest, there is new version
what's new?
- bugfixes, bugfixes
- more options
- and more...
Last edited by nictki (2013-10-23 14:30:57)
Offline
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
Offline
Offline
What does it do? Stdout output or does it display a graphical widget?
Offline
Hy,
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...
Offline
Pages: 1