Made a shortcut in Deepin to put the monitor to sleep

The built in power management doesn’t work anymore. I put “sleep 1 && xset dpms force off” in a sh file, and made a shortcut to run it. It’s under Keyboard in the Control Center.

I could make a shortcut to run my Python script too. How do you launch the terminal and then run the command?

deepin-terminal -x command

Editing the shortcut doesn’t work, you have to remove, and re add, it wasn’t running the script, you need the full path.