You are not logged in.
while [[ `sed -n -e '/^remaining capacity/ {s_[^0-9]__g p '$'\n q}' /proc/acpi/battery/BAT0/state` -ge 250 ]] ;do sleep 5 ;done && ./go.sh
where go.sh starts a click-clock sound.
Yet, I feel there should be a smarter way.
Offline
Better to use acpi for that (acpi is created for things like this). I don't have a tutorial on hand for acpi but for battery a find this on google:
http://mindspill.net/computing/linux-no … rning.html
I don't remember if is possible to set what is considered low battery... I'm using noteo (search on this forum) for battery alert.
Offline
I am also using Noteo. It is good.
Offline