On Mon, Jan 23, 2012 at 12:38:04PM +0100, Roman Z. wrote: > > dmenu_run & sleep 1; slock > > The screen goes black for a moment, but then slock disappears (without > dying) and you can use the computer again.
In general, you need to 1. run a key-grabbing program, like dmenu or most games in fullscreen mode 2. run slock without using the keyboard, i.e. over ssh or a button or whatever and slock will fail to lock the screen. This stuff sure got me worried, and I will definitely take my laptop with me to the toilet from now on. Roman