*green: discharge, yellow: charge, red: battery percentage < 30%
-
Make sure you have these programs installed on your machine: git, imagemagick, and feh.
-
Clone the repository into
~/.bain
git clone https://github.com/amirashabani/bain ~/.bain
- Make it executable
chmod +x ~/.bain/bain
- Copy it to
/usr/local/bin
, so that the command is recognized by your terminal. Make sure to run it withsudo
.
sudo cp ~/.bain/bain /usr/local/bin
- Run the script from your startup file (e.g.
.xinitrc
). Make sure to use&
at the end of the command as it is a blocking script.
bain arch &
- Restart your X session (log out and log back in).
pkill X