I just came up with an idea for a useful computer program, but this would mean I would have to know how bash commands could be used to "click" on the gui buttons. Do you know anywhere I can find a list of explanations on how to do this or any examples to get me started?
The tool is xdotool (command-line X11 automation tool)
If you were interested in calling some python from your bash script, I've had good luck with pyautogui in the past for automating keyboard actions. I found it very approachable.
https://github.com/asweigart/pyautogui