Skip to content

motokii/batterygraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

35 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Battery Graph

ๆ—ฅๆœฌ่ชžใƒšใƒผใ‚ธ

Record the battery log, and display the battery capacity on the graph.

Install

Install from Homebrew

brew tap motokii/batterygraph
brew install batterygraph

Install manually

Clone the repository

git clone https://github.com/motokii/batterygraph.git

Make symbolic link to batterygraph in $path

ln -s $(pwd)/batterygraph/src/batterygraph ~/.local/bin/batterygraph

Make symbolic link to complation file in $fpath

ln -s $(pwd)/batterygraph/completion/_batterygraph /usr/local/share/zsh-completions/_batterygraph

Usage

Load to launchd (logged every ten minutes)

batterygraph load

Log the current battery status

batterygraph write

View battery graph

batterygraph show

Unload from launchd (Stop logging)

batterygraph unload

View the status at launchd

batterygraph status

Uninstall

To be terminated beforehand

batterygraph unload

Delete symbolic link to batterygraph

unlink ~/.local/bin/batterygraph

Delete symbolic link to completion file

unlink /usr/local/share/zsh-completions/_batterygraph

Delete the repository

cd <the directory when clone>
rm -rf batterygraph