{"id":15640782,"url":"https://github.com/code-hex/battery","last_synced_at":"2025-04-27T06:53:30.597Z","repository":{"id":50445697,"uuid":"71058340","full_name":"Code-Hex/battery","owner":"Code-Hex","description":"Display your battery status on terminal (or tmux) written by Go","archived":false,"fork":false,"pushed_at":"2022-07-29T07:25:30.000Z","size":792,"stargazers_count":73,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T06:53:23.727Z","etag":null,"topics":["ascii","battery","binary","go","golang","linux","mac","terminal","tmux","utilities","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Hex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-16T15:14:45.000Z","updated_at":"2025-04-09T15:33:10.000Z","dependencies_parsed_at":"2022-09-05T15:31:01.467Z","dependency_job_id":null,"html_url":"https://github.com/Code-Hex/battery","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fbattery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fbattery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fbattery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fbattery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/battery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251099748,"owners_count":21536155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","battery","binary","go","golang","linux","mac","terminal","tmux","utilities","windows"],"created_at":"2024-10-03T11:40:14.683Z","updated_at":"2025-04-27T06:53:30.580Z","avatar_url":"https://github.com/Code-Hex.png","language":"Go","readme":"battery - Draw battery unicode art written by Go\n=======\n![sc_battery](https://cloud.githubusercontent.com/assets/6500104/19550024/6018c768-96e2-11e6-9ae1-f66b2406b8a7.png)  \n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n  \nbattery unicode art on your tmux sessions or the terminal.  \n\n## Status\n(2022-07-29)  \nmacOS build artifacts are **cgo-less** now!!  \nuse goreleaser to release artifacts.\n\n(2019-11-03)  \nSupported to display patched fonts.  \nVery Thanks [TsutomuNakamura](https://github.com/TsutomuNakamura)!!\n\nLet's run `battery -i` after installed patched fonts. [See more details](https://github.com/Code-Hex/battery#support-patched-fonts). \n\n(2018-05-01)  \nSupported to show elapsed time.  \nVery Thanks [delphinus](https://github.com/delphinus)!!\n\nLet's run `battery -e`\n\n![elapsed time](https://user-images.githubusercontent.com/1239245/39427036-388223ce-4cbd-11e8-859a-5363cdac3452.png)\n\n(2016-10-24)  \nlinux supported.  \nThanks [mattn](https://github.com/mattn)!!  \n\n(2016-10-21)  \nwindows supported.  \n  \n(2016-10-20)  \nNow, this command can use mac user only.  \nHowever, I hope to support ~~windows~~ and ~~linux~~, bsd in future.   \nSo, plz help me (´；ω；｀)  \n\n## Installation\n\n### Mac and Linux users via Homebrew\n\n```\n$ brew update\n$ brew install Code-Hex/tap/battery\n```\n\n### Go\n\n```\n$ go install github.com/Code-Hex/battery/cmd/battery@latest\n```\n\n### Binary\n\nYou can download from [here](https://github.com/Code-Hex/battery/releases)\n\n## Usage\nFor tmux user, please write `#(battery -t)` in your `.tmux.conf`  \nPlease refer to [this](https://github.com/Code-Hex/dotfiles/blob/master/tmux/.tmux.conf#L82)\n\n### Support patched fonts\nYou can display the status of battery with patched fonts.\nInstalling the font, Inconsolata Nerd Font Complete.otf for example, you can do it like below.\n\n* For mac\n```\ncd ~/Library/Fonts/\nwget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf\n```\n\n* For Linux\n```\ncd ~/.local/share/fonts\nwget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf\n```\n\n* For Windows\n```\n* Open your browser then fill this url\n  https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Inconsolata/complete/Inconsolata%20Nerd%20Font%20Complete.otf\n* Double click the file that you downloaded and the window will be opened\n* Click the install button\n```\n\nYour environment might require to reboot the OS. If so, reboot your OS.\nThen open your terminal and set your preferences to use it.\n\nThen for tmux user, please write `#(battery -t -i)` in your `.tmux.conf`. \n\n![patched_font_100](https://user-images.githubusercontent.com/10674169/58262398-2d0ead80-7db5-11e9-816e-7df5a416aed2.png)\n![patched_font_50](https://user-images.githubusercontent.com/10674169/58262403-2f710780-7db5-11e9-8a8c-e63c2833d088.png)\n![patched_font_10](https://user-images.githubusercontent.com/10674169/58262412-31d36180-7db5-11e9-98b7-4cea9bd68d07.png)\n\n## Contributor 🎊\n- [mattn](https://github.com/mattn)\n- [yasu47b](https://github.com/yasu47b)\n- [b4b4r07](https://github.com/b4b4r07)\n- [delphinus](https://github.com/delphinus)\n- [TsutomuNakamura](https://github.com/TsutomuNakamura)\n\n## Author\n[codehex](https://twitter.com/CodeHex)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fbattery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fbattery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fbattery/lists"}