Giter Site home page Giter Site logo

battery's Introduction

battery - Draw battery unicode art written by Go

sc_battery
MIT License

battery unicode art on your tmux sessions or the terminal.

Status

(2019-11-03)
Supported to display patched fonts.
Very Thanks TsutomuNakamura!!

Let's run battery -i after installed patched fonts. See more details.

(2018-05-01)
Supported to show elapsed time.
Very Thanks delphinus!!

Let's run battery -e

elapsed time

(2016-10-24)
linux supported.
Thanks mattn!!

(2016-10-21)
windows supported.

(2016-10-20)
Now, this command can use mac user only.
However, I hope to support windows and linux, bsd in future.
So, plz help me (´;ω;`)

Installation

go get -u github.com/Code-Hex/battery/cmd/battery

Usage

For tmux user, please write #(battery -t) in your .tmux.conf
Please refer to this

Support patched fonts

You can display the status of battery with patched fonts. Installing the font, Inconsolata Nerd Font Complete.otf for example, you can do it like below.

  • For mac
cd ~/Library/Fonts/
wget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf
  • For Linux
cd ~/.local/share/fonts
wget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf
  • For Windows
* Open your browser then fill this url
  https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf
* Double click the file that you downloaded and the window will be opened
* Click the install button

Your environment might require to reboot the OS. If so, reboot your OS. Then open your terminal and set your preferences to use it.

Then for tmux user, please write #(battery -t -i) in your .tmux.conf.

patched_font_100 patched_font_50 patched_font_10

Contributor 🎊

Author

codehex

battery's People

Contributors

babarot avatar code-hex avatar mattn avatar tsutomunakamura avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.