Thursday, August 7, 2014

Create Shortcut to Turn Off Monitor

Normally I do not turn off my laptop, I will just close its lids, or suspend/sleep it. Sometimes, when I have some process running in my laptop, I wish I just turn off the monitor and leave it running.

After some googling, I found this. Someone suggest to use the command:
sh -c "sleep 1 && xset dpms force off"

I tried execute it under terminal, and it works. To be able to make it controllable by a combination key on keyboard, I created a shortcut for it under Application Shortcuts editor.


Then I use Super+O as the combination key to turn off the screen. 


The turn off will take 1 second after the key is being press to prevent the keypress to reactivate the screen.

No comments:

Post a Comment