How can I enable bash expansion by custom keyboard shortcuts in 14.04? Here's an example that I've been trying to get setup; I want to execute this exact command (which works from a terminal running bash):
gnome-screenshot --window --remove-border -f ~/Pictures/screenshot_$(date +%x_%H:%M:%S:%N).png
It doesn't work as is, and neither does:
gnome-screenshot --window --remove-border -f $HOME/Pictures/screenshot_$(date +%x_%H:%M:%S:%N).png
If I change it to the following:
gnome-screenshot --window --remove-border -f "/home/user/Pictures/screenshot_$(date +%x_%H:%M:%S:%N).png"
I end up with a file on my desktop called "screenshot_$(date +%x_%H:%M:%S:%N).png" (no subshell expansion). What am I doing wrong? What executes these commands if not bash? Why aren't the subshells or variables/tildes expanded?