I read about getting the laptop beeping when the battery charging is complete here.

But I'm confused with the answer (and I didn't know yet, how to ask directly to a user).

Where can I find the file "return0whencharging.sh".. ?

Or I must create it by my self? If so, is there any particular folder where I should save the file?


1 Answer 1


So, you are following the suggestion at How can I get notification when my laptop battery gets fully charged?

Create the file named return0whencharging.sh with a text editor program, so you could write this to a brand new file of that name, located in your path (a directory such as /usr/local/sbin ). For example, from within a terminal window, enter this line:

sudo nano /usr/local/sbin/return0whencharging.sh

which will put that script where it will be automagically found when desired.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.