Knowing Linux machine state (Screen Lock/unlock)
Hi,
I am trying to find programatically if a Linux box is screen lock/unlock.
In KDE, i can lock a linux machine using,
kdesktop_lock --forcelock
Once machine gets lock, a process called 'KDesktop_lock' starts running.
In GNOME, i can lock machine using,
gnome-screensaver-command --lock
But there is no way to find whether a machine using GNOME is screen lock or unlock.
I am trying to find what is the command to know state of a Linux machine. State is locked or unlocked?
Help on this will be appreciated...
|