I present you bato
Hi,
If like me you use a minimalist windows manager on a daily basis (no desktop environment) and your Linux runs on a laptop, this may interest you.
bato is a simple binary that sends desktop notifications on some battery events:
- level full
- level low
- level critical
- charging
- discharging
It works nicely with Dunst.
Configuration in Yaml.
Only one dependency: libnotify
Available in the AUR as a package.
โ
Hope it will be useful, even a little bit :)
About this post
- Posted
- Archived
- Score
- 180 ยท 98% up
- Kind
- Text
- ID
- jcdswd
24 comments
looks super duper light -- how big's the bino and RAM usage?
How does one check the memory usage in bytes? The
pscommand only shows in percentage.Binary is 536KB btw
Gnome-monitor or htop, and check ps --help.Cant give more help than that, on phone rn.
Deleted before we saved it.
This seems perfect for me. This might very possibly just replace my crude hack in my statusbar to add battery notifications
Looks nice. Does it support multiple batteries?
Sadly not.
Why yaml?
I am guessing because yaml is really easy to work with because
Very convenient for the end user to write its configuration.
Why not ?
Could you add defaults so we don't need to write a configuration file?
Nope. Why ? Kiss.
So we don't have to write a configuration file ๐
I'd say that's a very nice tradeoff ๐
I don't know about rust, but I assume that's just setting default parameters in the configuration class / object?
You should consider posting this in r/linux. I just checked it out and it looks awesome but haven't tried it yet. Gonna let you know after I do.
Good idea, done :)
This is what I've been looming for!
there is a way to install it on debian ?
You have nothing to "install".
Just pick the compiled binary in the releases section of the repository, make it executable and run it. Make sure you have libnotify installed with version >=0.7 and you should good to go :)
Deleted before we saved it.