I am on Fedora 25 (x86_64) and I use XFCE desktop. I need to record a sound in sync with a video. Recording is done by Audacity and video playback is done by VLC. Currently, I have set global keyboard shortcut for VLC to pause and play the video when I want. I use another keyboard shortcut in Audacity (not global) to append my voice to the sound being recorded and I hit space (local) to pause the recording. You see that this makes the recording asynchronous to the video playback, which sucks!
My question is how can I define global keyboard shortcuts for my desktop (currently XFCE but I can use other desktop environments on my Fedora if necessary), to start playback and record at the same time (with a single key [combination] and pause them so (with a single key [combination]) as well?
To make the question clearer, for example I have set CTRL+ALT+SPACE as global hotkey for VLC for play/pause. How can I define the same key combination for Audacity to do Append Record/Pause when I send this key combination to the system?