Me being the lazy bum that I am, wanted to make youtube-dl (the script that downloads youtube videos) execute upon pressing a hotkey for the current link in clipboard. In my keyboard shortcuts i made:
gnome-terminal -e "youtube-dl --extract-audio --audio-quality 0 --audio-format mp3 $(xclip -o)"
This command works if i enter it into a seperate terminal, but when i execute the hotkey, the terminal appears for <1 second, and the script does not execute.
Can anyone point me as to where im going wrong? :)