Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install --reinstall indicator-power
- python battery_monitor.py INT
- battery_level=`acpi -b | grep -P -o '[0-9]+(?=%)'`
- if [ $battery_level -le 10 ]
- then
- notify-send "Battery low" "Battery level is ${battery_level}%!"
- fi
Add Comment
Please, Sign In to add comment