I want to set a combination of keys as a shortcut, which is possible in Ubuntu through system settings > keyboard > shortcuts
(may be different, my laptop isn't in English).
The command line to be executed is the following :
notify-send "4 stars for «$(rhythmbox-client --set-rating 4 \
--print-playing-format=%tt)»"
which works just fine in gnome-terminal
... But when I set the shortcut, it is executed as if the double quotes were replaced by single quotes, which means that the $(...) part isn't executed and renders as text...
How can I resolve my issue ? Thanks !!
Create a file somewhere you like, e.g
~/script.sh
and add your command into that file, then add your shortcut with a command like this:It should work now.