gnome screensaver has a command to check the status:
$ gnome-screensaver-command -q The screensaver is inactive The screensaver is not inhibited
I don't know about xfce or kde though. :\
gnome screensaver has a command to check the status:
$ gnome-screensav er-command -q
The screensaver is inactive
The screensaver is not inhibited
I don't know about xfce or kde though. :\