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:

/home/user/.config/openbox/rc.xml
...
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