battery

package module
v0.0.0-...-48e3c27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2017 License: MIT Imports: 9 Imported by: 0

README ¶

battery - Draw battery unicode art written by Go

sc_battery
MIT License

battery unicode art on your tmux sessions or the terminal.

Status

(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

Contributor 🎊

mattn
yasu47b
b4b4r07

Author

codehex

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func Info ¶

func Info() (int, bool, error)

Types ¶

type Bar ¶

type Bar struct {
	ShowPercent bool
	ShowCounter bool
	Showthunder bool
	EnableColor bool
	EnableTmux  bool
	// contains filtered or unexported fields
}

func New ¶

func New(total int) *Bar

func (*Bar) Run ¶

func (bar *Bar) Run()

func (*Bar) Set ¶

func (bar *Bar) Set(set int) *Bar

func (*Bar) SetPostfix ¶

func (bar *Bar) SetPostfix(char rune) *Bar

func (*Bar) SetPrefix ¶

func (bar *Bar) SetPrefix(char rune) *Bar

func (*Bar) SetWidth ¶

func (bar *Bar) SetWidth(width int) *Bar

Directories ¶

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL