{"id":17709404,"url":"https://github.com/0snap/batalert","last_synced_at":"2025-05-07T07:43:44.969Z","repository":{"id":78799334,"uuid":"324534648","full_name":"0snap/batalert","owner":"0snap","description":"Send D-Bus notifications when the (Linux) host's battery runs low. Written in Rust.","archived":false,"fork":false,"pushed_at":"2021-04-21T14:29:45.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T07:42:24.878Z","etag":null,"topics":["battery-monitor","desktop-notifications","linux","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/0snap.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":"2020-12-26T10:50:42.000Z","updated_at":"2025-01-31T22:59:03.000Z","dependencies_parsed_at":"2023-07-17T05:48:09.620Z","dependency_job_id":null,"html_url":"https://github.com/0snap/batalert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2Fbatalert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2Fbatalert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2Fbatalert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2Fbatalert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0snap","download_url":"https://codeload.github.com/0snap/batalert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252837579,"owners_count":21811921,"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":["battery-monitor","desktop-notifications","linux","rust"],"created_at":"2024-10-25T04:03:55.389Z","updated_at":"2025-05-07T07:43:44.923Z","avatar_url":"https://github.com/0snap.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  batalert\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e\n\nSend [D-Bus](https://www.freedesktop.org/wiki/Software/dbus/) notifications when the (Linux) host's battery runs low.\n\n[![License][license-badge]][license-url]\n\n\u003c/h4\u003e\n\n\n## Prerequisites\n\n- Install `libnotify`\n- Install a Notification Server to render desktop notifications\n  - Use [mako](https://github.com/emersion/mako) on Wayland/Sway setups\n\n## Usage\n\nYou can run `batalert` with default setting to send the first notification when the battery falls below 15% and repeat the notification every 3%. Notifications timeout after 15 seconds. `batalert` resets when you plug-in your charger.\n\n### Customization\n\n- Check the help text:\n  ```\n  batalert -h\n  ```\n- Show a notification when the battery falls below 20%, repeat notification every 4% on 16%, 12%, 8% ... :\n  ```\n  batalert --alert 20 --notification-step 4\n  ```\n- Timeout notifications after a minute:\n  ```\n  batalert --timeout 60\n  ```\n- Use a custom icon:\n  ```\n  batalert --icon /usr/share/icons/\u003cyour-icon\u003e.png\n  ```\n- Monitor a particular battery, e.g., `BAT2`:\n  ```\n  batalert --uevent /sys/class/power_supply/BAT2/uevent\n  ```\n- Monitor multiple batteries (repeat the `--uevent` option):\n  ```\n  batalert --uevent /sys/class/power_supply/BAT0/uevent --uevent /path/to/bat1 -u /path/to/bat2\n  ```\n\n## Building\n\nBuild the app via `Cargo`:\n```\ncargo build --release\n```\n\n\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: https://github.com/0ortmann/batalert/blob/master/LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0snap%2Fbatalert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0snap%2Fbatalert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0snap%2Fbatalert/lists"}