utkarsh2102 / batalert

Battery notifications/alerts for your favorite WM! πŸ’―
MIT License
8 stars 2 forks source link
battery hacktoberfest linux ruby ruby-application window-manager wm

batalert

batalert (aka Battery Alert) is a tool, written in Ruby, to notify the users when their battery is either under-charged (default: < 10%) or over-charged (default: > 90%).

notify the users when their battery is either under-charged (default: < 10%) or over-charged (default: > 90%).

Ever ran out of battery whilst in the middle of work?
Well, say no more! batalert has got you covered!
Just consider installing it and put it on cron so that you never have to worry about running out of battery in midst of your work! Isn't that...amazing? πŸš€

This is originally intended for WM users who don't get battery notifications by default, but can be used by everyone who sees its worth!

How does it work?

Batlalert upon being set up, shall notify you when to put your battery on charging and when to unplug it too. Whilst notifying so, it also numerically mentions your battery percentage at that particular moment.

Setting up batalert

Ways of installation:

Ways of setting it as a cron job:

Development

After checking out the repo, run bin/setup to install dependencies.
Then, run rake to run the tests.
You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.
To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

As always, bug reports and pull requests are heartily welcomed! πŸ’–
Batalert project is a safe and welcoming space for collaboration.

License

batalert is available as a Free Software under the MIT license.
Copyright Β© 2020 Utkarsh Gupta