blob: e0e6f8435630bbb9ce305984627790c19362006a (
plain)
1
2
3
4
|
#!/bin/sh
CAPACITY=$(cat /sys/class/power_supply/BAT0/capacity)
[ $CAPACITY -lt 20 ] && notify-send --urgency=critical "Low battery" "Less then $CAPACITY% remaining.\n Charge your laptop."
|