My screen lock python script, titled "lock", simpley allows you to add
idle time screen lock
Where time is a value of minutes.
in ~/.screenrc and not have 1000 lock windows or password requests
when you come back to your system. Just put it in your path, so it is
the first 'lock' found when screen searches for lock, and make sure
"vlock" is in your path. Of course you can modify appropriately, but
this is my setup.
In the script, set
nonrootlock to False for a full system lock, see the comments in the
script for details - default is single tty lock. As in, if lock is
executed, only the current console is locked, you
can still access your other consoles eg. switch
between them without entering a password. See
for details. Also put this in your startup file when you log into
different consoles, so lock knows what console you are in:
export TTYNUMBER=`(lock -s)` # set TTYNUMBER to current vc number
You can grab lock from the link below, just put it in your path as "lock".
Please send questions, comments or suggestions to me at
Back to projects
Back to home