Keyboard shortcut to lock screen & turn off monitor

I can turn off the monitor and lock the screen manually with cinnamon-screensaver-command -l && xset dpms force off.

However, if I try to put that command as a custom shortcut in Keyboard->shortcuts, the monitor doesn't turn off, and if I switch the order then nothing happens.

How can I get a shortcut to fire both commands?


It might work if you did it like this in the keyboard shortcut settings::

bash -c "cinnamon-screensaver-command -l; xset dpms force off;"