I am trying to get the following shortcut to work:
notify-send -i rhythmbox "RhythmBox Is Playing" "$(rhythmbox-client --print-playing)"
It works fine If I run it from the command line, but when I set it as a keyboard shortcut I just get the text printed out and the program (
rhythmbox-client) doesn't run.
What am I doing wrong?
unname -a. regardless you should try my answer below.