{"id":28093665,"url":"https://github.com/ashish-kus/batfetch","last_synced_at":"2025-05-13T14:02:56.149Z","repository":{"id":175889155,"uuid":"629868169","full_name":"ashish-kus/batfetch","owner":"ashish-kus","description":"BatFetch is a command-line tool that displays detailed information about the battery of your device in a clean and organized way.","archived":false,"fork":false,"pushed_at":"2024-08-08T09:04:18.000Z","size":242,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-08T11:13:56.453Z","etag":null,"topics":["bash","battery","cli","linux","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashish-kus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-19T07:31:48.000Z","updated_at":"2024-08-08T09:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f12bac28-6742-4cca-97c8-7a052aa2a07c","html_url":"https://github.com/ashish-kus/batfetch","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.07999999999999996,"last_synced_commit":"196329fd577c167d52c2e89548d8cf73729da984"},"previous_names":["ashish-kus/batfetch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish-kus%2Fbatfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish-kus%2Fbatfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish-kus%2Fbatfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish-kus%2Fbatfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashish-kus","download_url":"https://codeload.github.com/ashish-kus/batfetch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253957997,"owners_count":21990542,"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":["bash","battery","cli","linux","terminal"],"created_at":"2025-05-13T14:01:34.061Z","updated_at":"2025-05-13T14:02:56.133Z","avatar_url":"https://github.com/ashish-kus.png","language":"Shell","readme":"\u003cdiv align=\"center\"\u003e\n\nA super tiny battery information fetch script written in BASH\n\n\u003ca href='#'\u003e\u003cimg src=\"https://img.shields.io/badge/Shell_Script-121011?logo=gnu-bash\u0026logoColor=white\"\u003e\u003c/img\u003e\u003ca/\u003e\n\u003ca href='#'\u003e\u003cimg src=\"https://img.shields.io/badge/Made%20with-Bash-1f425f.svg\"\u003e\u003c/img\u003e\u003ca/\u003e\n\u003ca href='#'\u003e\u003cimg src=https://img.shields.io/badge/Maintained%3F-yes-green.svg\u003e\u003c/img\u003e\u003ca/\u003e\n\n\u003c/div\u003e\n\n# Batfetch\n\nBatFetch is a command-line tool that displays detailed information about the battery of your device in a clean and organized way. The tool is inspired by pfetch, a popular command-line system information tool.\n\nIt provides information about the battery model, current charge level, power state, and health status. The tool also displays an ASCII art title that adds a touch of fun to the output.\n\n## Usage:\n\n#### Basic usage:\n\n```\nbatfetch\n```\n\n#### JSON Output:\n\nTo obtain detailed information in JSON format, use the -j or --json flag.\nNote that this feature requires the installation of jq on your system.\n\n```\nbatfetch -j\n# or\nbatfetch --json\n```\n\nMake sure to install jq for the JSON output functionality:\n\n```\n# On arch based systems*\nyay -S jq\n\n# On Debian-based systems\nsudo apt-get install jq\n\n# On Red Hat-based systems\nsudo yum install jq\n```\n\n![batfetch preview](./preview/preview-batfetch.png)\n\n## Installation:\n\n#### AUR:\n\n```\nyay -S batfetch\n```\n\n## For manual instalation:\n\n#### To install run\n\n```\n    git clone https://github.com/ashish-kus/batfetch\n    cd batfetch\n    sudo make install\n```\n\n#### To uninstall run\n\n```\n    git clone https://github.com/ashish-kus/batfetch\n    cd batfetch\n    sudo make uninstall\n```\n\n#### Nix os (via Flake)\n\n\n\u003e[!NOTE]\n\u003e This will run the command without installation of the tool.\n\n\n```\nnix run github:ashish-kus/batfetch\n```\n\n\u003e[!NOTE]\n\u003e Using flake to install in the system.\n\n\n```bash\n# flake input\nbatfetch = {\n  url = \"github:ashish-kus/batfetch\";\n  inputs.nixpkgs.follows = \"nixpkgs\";\n};\n\nenvironment.systemPackages = [\n  inputs.batfetch.packages.${pkgs.system}.default\n];\n```\n\n#### LICENCE\n\n\u003ccenter\u003e\n\tGNU GENERAL PUBLIC LICENCE\n\tversion 3, 29 June 2007\n\u003c/center\u003e\n\nCopyright (C) 2007 Free Software Foundation, Inc. \u003chttps://fsf.org/\u003e Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n","funding_links":[],"categories":["Hardware","\u003ca name=\"monitor\"\u003e\u003c/a\u003eSystem monitoring"],"sub_categories":["Other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashish-kus%2Fbatfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashish-kus%2Fbatfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashish-kus%2Fbatfetch/lists"}