exec with "scrot -e "mv ; feh" gives an error
I think this might be a problem with scrot, but I really have no idea :)
I have the following bindings:
bindsym Print exec --no-startup-id scrot '%Y-%m-%d-%T.png' -e 'mv $f ~/Screenshots/'
bindsym Shift+Print exec scrot '%Y-%m-%d-%T.png' -e 'mv $f ~/Screenshots/ ; feh ~/Screenshots/%Y-%m-%d-%T.png'
The first one works fine, but the one that should execute feh after taking the screenshot doesn't work as expected. I get the following error:
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'mode', 'bar'
ERROR: Your command: exec scrot '%Y-%m-%d-%T.png' -e 'mv $f ~/Screenshots/ ; feh ~/Screenshots/%Y-%m-%d-%T.png'
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^