Wednesday, February 19, 2014

turn off monitor when locking the screen

Recently i was looking for a convince way to lock and turn off my screens. The reason behind was that sometimes i only want to listen to music while doing something else which doesn't involve the PC. Usually i could wait for the screen to turn off by itself which happens usually after around 10 minutes. However, since i don't even use an screensaver i just wanted it to immediately turned off.
Now i found a nice way todo that...

I've created a new shortcut with following command:
 xset dpms force off; qdbus org.kde.ksmserver /ScreenSaver Lock  

Bound to META+L it does exactly what it should do: It turns off the screen and locks it.

No comments:

Post a Comment