Skip to content

amishbni/bain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bain - the battery indicator

Arch Example *green: discharge, yellow: charge, red: battery percentage < 30%

How to use?

  • 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 with sudo.
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