I'm trying to set a keyboard shortcut for
notify-send $(fortune) but when I activate it, it just sends a notification that says
$(fortune) instead of actually giving a fortune. Note that if I run it in the terminal, it works as intended (i.e. sends a notification with the result of
fortune). This seems to imply that when the keyboard shortcut is activated, it isn't interpreting it as a bash command, but rather as simply running the program
notify-send with argument
How do I get it to interpret it correctly?
Note that I've tried putting it in a shell script and doing
sh ~/tell-fortune.sh, but that doesn't work either.