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

Well it worked for me, checked the output against the reported battery percentage and it matched so I doubt that’s the issue at all, thanks anyways. I don’t usually use the shell since I can just programme what I want in C so long as I know what api to work with for it