{"id":13822287,"url":"https://github.com/doums/bato","last_synced_at":"2026-04-22T00:04:34.407Z","repository":{"id":46153323,"uuid":"282732673","full_name":"doums/bato","owner":"doums","description":"A program to send battery level notifications","archived":false,"fork":false,"pushed_at":"2026-04-19T23:17:22.000Z","size":975,"stargazers_count":43,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-20T01:15:40.340Z","etag":null,"topics":["battery","battery-notification","desktop-notification","notification","notify","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doums.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-26T21:01:50.000Z","updated_at":"2026-04-19T23:17:27.000Z","dependencies_parsed_at":"2023-02-09T09:00:30.469Z","dependency_job_id":null,"html_url":"https://github.com/doums/bato","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/doums/bato","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doums%2Fbato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doums%2Fbato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doums%2Fbato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doums%2Fbato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doums","download_url":"https://codeload.github.com/doums/bato/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doums%2Fbato/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32115217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["battery","battery-notification","desktop-notification","notification","notify","rust"],"created_at":"2024-08-04T08:01:52.625Z","updated_at":"2026-04-22T00:04:34.401Z","avatar_url":"https://github.com/doums.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![bato](https://img.shields.io/github/actions/workflow/status/doums/bato/test.yml?color=0D0D0D\u0026logoColor=BFBFBF\u0026labelColor=404040\u0026logo=github\u0026style=for-the-badge)](https://github.com/doums/bato/actions?query=workflow%3Atest)\n[![bato](https://img.shields.io/aur/version/bato?color=0D0D0D\u0026logoColor=BFBFBF\u0026labelColor=404040\u0026logo=arch-linux\u0026style=for-the-badge)](https://aur.archlinux.org/packages/bato/)\n\n## bato\n\nA program to send **bat**tery level n**o**tifications\n\n![bato](https://github.com/doums/bato/blob/master/img/bato.png)\n\n[features](#features) - [prerequisite](#prerequisite) - [install](#install) - [configuration](#configuration) - [usage](#usage) - [license](#license)\n\n### Features\n\nTiny configuration in toml.\n\nDesktop notification:\n\n- level full\n- level low\n- level critical\n- charging\n- discharging\n\n### Prerequisite\n\nA desktop notification server, like [Dunst](https://dunst-project.org/)\n\n### Install\n\n- latest [release](https://github.com/doums/bato/releases/latest)\n- AUR [package](https://aur.archlinux.org/packages/bato)\n\n### Configuration\n\nBy default, bato looks for the config file `~/.config/bato/bato.toml`\n(XDG_CONFIG_HOME).\\\nTo use a custom file, run with the `--config` flag.\\\nIf the config file is not found or invalid, bato prints an error and exits.\n\nAll config options are detailed [here](https://github.com/doums/bato/blob/master/bato.toml).\n\nExample:\n\n```toml\ntick_rate = 2\ncritical_level = 5\nlow_level = 20\nfull_design = true\n\n[charging]\nsummary = \"Battery\"\nbody = \"Charging\"\nicon = \"battery-good-charging\"\n\n[discharging]\nsummary = \"Battery\"\nbody = \"Discharging\"\nicon = \"battery-good\"\n\n[full]\nsummary = \"Battery\"\nbody = \"Full\"\nicon = \"battery-full\"\n\n[low]\nsummary = \"Battery\"\nbody = \"Low\"\nicon = \"battery-low\"\n\n[critical]\nsummary = \"Battery\"\nbody = \"Critical!\"\nicon = \"battery-caution\"\nurgency = \"critical\"\n```\n\n### Usage\n\nRun bato via your window manager or desktop environment autostart system\n\nExample with XMonad\n\n```haskell\nmyStartupHook = do\n    spawnOnce \"dunst\"\n    spawnOnce \"bato -lfile\"\n```\n\n\u003e [!TIP]\n\u003e By default bato logs to stdout. To log into a file\nrun with `-lfile`. Logs are located in `~/.cache/bato/`\n\n```shell\nbato -h\n```\n\n### License\n\nMozilla Public License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoums%2Fbato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoums%2Fbato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoums%2Fbato/lists"}