NAME

App::PerlXLock - A simple X locking utility.

SYNOPSIS

#lock without password
plock 

#When using perlbrew, lock with read from /etc/shadow.
#Add NOPASSWD to sudoers accordingly.
sudo $(which perl) $(which plock)

DESCRIPTION

A X11 locking utility. plock turns the screen black and waits for a key press. If /etc/shadow is not accessible, plock terminates after pressing return. If /etc/shadow is found to be readable, then it waits until the user has typed his password and pressed return.

In case of mistyping the password, simply retype as plock detects once the correct password appears in the buffer.

CAVEATS

At the moment, works only with systems having a shadow password file.

LICENSE

This software is licensed under the same terms as Perl itself.