I wrote a bash script, and assigned a keyboard shortcut to trigger the same. Once I hit the shortcut keys, I have no control over it. I want to be able to kill it while it is running. How do I do it?
The problem is that the script takes over key and mouse control, so I cannot start/switch to the terminal while it is running to find the PID and send it a signal.