عکس amishbni
Battery IndicatorShell
موضوع‌ها
۱
فورک‌ها
۴
ستاره‌ها
۷۳
تاریخ ایجاد
۱۳ اسفند ۱۳۹۸
آخرین بروزرسانی
بیشتر از ۲ سال قبل

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