This is some simple python code which is linked with a bash script which can be executed by just using a keystroke.
Python 3.*
Ubuntu
- Make run.sh executable with
chmod +x
- Go to Settings > Keyboard Bindings
- Add a new binding of you choice. I use
Alt+/
and put the path of the executable likepath/to/folder/./run.sh
. This will run the code when you press that binding