1
I am using a combination of xautolock and slimlock to automatiacally lock my machine if it does not receive input.
~/.xinitrc:
xautolock -locker /usr/bin/lockify.sh -time 5 &
/usr/bin/lockify.sh:
#!/bin/bash
DONTLOCK=false
if pidof gnome-mplayer
then
DONTLOCK=true
else
echo "gnome-mplayer is not running"
fi
if $DONTLOCK
then
echo "Watching Video, not locking screen"
else
/usr/bin/slimlock
fi
Only recently I discovered that this is a problem, when I have a VMWare guest running in the foreground. What happens is that when the lock-screen is engaged the keyboard input seems to remain with my vmware-guest so I cannot unlock my host system.
Does anyone know how I could ensure that input focus is transferred back to my host before the system is locked?
Interesting. Thought I had installed the tools. Will recheck. Thx. – er4z0r – 2012-07-25T13:36:25.953
Nope. Didn't help :-/ – er4z0r – 2012-07-26T14:21:19.027