Monday, January 28, 2013

Logout in openbox with keyboard keys

Sometimes I have my monitor shut down but leave my pc on for some downloading or transcoding or other job. It is nice to have a keyboard shortcut to do that, I use W+x and put this between the command bracket:

xterm -e "sudo shutdown -h +1"
Replace xterm if you are using another terminal. One minute is to give me the opportunity to have second thoughts and cancel with ctrl +t and
sudo shutdown -c.

No comments:

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.