This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Description | |
| # =========== | |
| # This script monitors the battery status on Linux systems | |
| # and notifies the user if the battery is either charging | |
| # and above 80% or discharging and below 20%. This script | |
| # can be scheduled to run periodically using cron or | |
| # other scheduling utilities. if you decide to use cron, | |
| # run "crontab -e" and add the following line: |