I want to run
cmus-remote --pause when I press F8 at anytime, in any window, in Ubuntu. I've tried creating a keyboard shortcut (System > Preferences > Hardware > Keyboard Shortcuts) with
bash -c 'cmus-remote --pause' as the command. This doesn't work.
I got the above command from this Ask Ubuntu post: How to run a one-line bash command with a keyboard shortcut?
What am I missing? What is the proper syntax to initiate a bash command? Preferably I'd like to run this command without having bash open a new terminal.