{"id":15547642,"url":"https://github.com/lucaangioloni/battery-notifier","last_synced_at":"2025-10-31T10:19:49.602Z","repository":{"id":111642554,"uuid":"166858722","full_name":"LucaAngioloni/battery-notifier","owner":"LucaAngioloni","description":"battery-notifier is a MacOS daemon that keeps track of the battery charging status and notifies the user when the battery is sufficiently charged (80%-90%).","archived":false,"fork":false,"pushed_at":"2020-04-17T01:42:04.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T18:47:37.367Z","etag":null,"topics":["bash","battery","macos","notifications","osx"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/LucaAngioloni.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":"2019-01-21T18:11:55.000Z","updated_at":"2024-05-24T05:35:42.000Z","dependencies_parsed_at":"2023-05-25T00:30:26.272Z","dependency_job_id":null,"html_url":"https://github.com/LucaAngioloni/battery-notifier","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LucaAngioloni/battery-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaAngioloni%2Fbattery-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaAngioloni%2Fbattery-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaAngioloni%2Fbattery-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaAngioloni%2Fbattery-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucaAngioloni","download_url":"https://codeload.github.com/LucaAngioloni/battery-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaAngioloni%2Fbattery-notifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264535991,"owners_count":23624404,"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","macos","notifications","osx"],"created_at":"2024-10-02T13:09:54.238Z","updated_at":"2025-10-31T10:19:44.544Z","avatar_url":"https://github.com/LucaAngioloni.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# battery-notifier\nbattery-notifier is a MacOS daemon that keeps track of the battery charging status and notifies the user when the battery is sufficiently charged (80%-90%).\n\n![battery-notifier](https://i.imgur.com/D3Iz3v1.png)\n\n## Installation\n\nThis software is intalled for your user only.\n\n### Homebrew\n\n#### Install\n\nInstall through homebrew:\n\n```\n$ brew install LucaAngioloni/tap/battery-notifier\n```\n\nAnd start the daemon with (only the first time at installation):\n\n```\n$ brew services start battery-notifier\n```\n\n#### Uninstall\n\nDeactivate the daemon:\n\n```\n$ brew services stop battery-notifier\n```\n\nUninstall homebrew package:\n\n```\n$ brew uninstall battery-notifier\n```\n\n##### Additional steps\nThese steps are only to make sure that everything was removed from your system.\n\n- If you also want to remove terminal-notifier (and this is not done automatically)\n\n```\n$ brew uninstall terminal-notifier\n```\n\n- Check if the plist file was removed:\n```\nrm ~/Library/LaunchAgents/homebrew.mxcl.battery-notifier.plist\n```\n\n### Manual\n\n#### Requirements\n\nThis bash script need [terminal-notifier](https://github.com/julienXX/terminal-notifier) in order to send notifications to the user. Install this through Homebrew with:\n```\n$ brew install terminal-notifier\n```\nor read manual instructions in the repo linked above.\n\n#### Install\n\n1. Download the code in a folder and store it wherever you want.\n2. Create a symbolic link to `/usr/local/bin/`\n```\n$ ln /path/to/battery-notifier/battery-notifier.sh /usr/local/bin/battery-notifier\n$ ln /path/to/battery-notifier/battery.png /usr/local/bin/battery.png\n```\n3. Install the daemon:\n```\n$ ln /path/to/battery-notifier/battery-notifier.plist ~/Library/LaunchAgents/battery-notifier.plist\n```\nand run it:\n```\n$ launchctl load ~/Library/LaunchAgents/battery-notifier.plist\n```\n\n#### Uninstall\nRun these commands to remove the files generated:\n```\n$ launchctl unload ~/Library/LaunchAgents/battery-notifier.plist\n$ rm /usr/local/bin/battery-notifier\n$ rm /usr/local/bin/battery.png\n$ rm ~/Library/LaunchAgents/battery-notifier.plist\n$ rm -R /path/to/battery-notifier/\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2019 Luca Angioloni\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaangioloni%2Fbattery-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaangioloni%2Fbattery-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaangioloni%2Fbattery-notifier/lists"}