https://github.com/azizemir/battery-status-notifier
The bash script monitors battery status and sends a notification if the battery level is above 80% while charging, and plays an audio alert. It also provides a low battery warning with audio when the level drops below 54%.
https://github.com/azizemir/battery-status-notifier
Last synced: about 1 year ago
JSON representation
The bash script monitors battery status and sends a notification if the battery level is above 80% while charging, and plays an audio alert. It also provides a low battery warning with audio when the level drops below 54%.
- Host: GitHub
- URL: https://github.com/azizemir/battery-status-notifier
- Owner: AzizEmir
- Created: 2024-07-23T06:59:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T12:19:29.000Z (almost 2 years ago)
- Last Synced: 2024-08-25T13:34:40.188Z (almost 2 years ago)
- Language: Shell
- Homepage:
- Size: 425 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The bash script monitors battery status and sends a notification if the battery level is above 80% while charging, and plays an audio alert. It also provides a low battery warning with audio when the level drops below 54%.

### crontab
```
*/1 * * * * /usr/local/bin/battery-monitor.sh
```
### Battery Monitor Enable/Disable Scripts
This repository includes two scripts to manage the battery monitor cron job:
- `disable-battery-monitor.sh`: Comments out the battery monitor cron job.
- `enable-battery-monitor.sh`: Uncomments the battery monitor cron job.

