Thanks, I found a way to catch it on Windows systems which is

but this application will need to catch the lock/unlock on Linux systems because the main user of this application works on a Linux system so I haven't been able to find anything but thanks for the reply.
Does any one know how to catch or be notified when a user locks there computer on a Linux system? it is a
Java application

.
Thanks partner,
Andy