How to have keyboard shortcut send action to my script?
I made a bash script that uses xdotool to do a task for me.
Anyway, I want to know how to make it so I can hit a key combination lets say, Ctrl+Alt+E, and have it stop my script.
The reason I need this is because xdotool uses my mouse to do the task for me, so I cannot move my mouse to click on the terminal window to enter Ctrl+C to kill the script.
However it would be preferable to not kill the script and instead have the keyboard shortcut make my script stop its current task (which is clicking on the screen) and bring up a prompt asking me what to do next.