How do I tell my system to create a sound alert whenever my battery has charged at least X percent?

Isn’t it just a bash script and bash is present and running anyway already?

But it doesn’t need to make sense to me :sunglasses: that you would like to do it your way from scratch and in C.
Why not …
Have fun doing it!

It was only a rather rhetorical question and just my opinion.