Find the answer to your Linux question:
Results 1 to 2 of 2
I am running Kubuntu 11.04 and I use the standard "Blank Screen" screensaver. I want to start a command every time the screensaver starts and to stop it when the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76

    kick off a custom process from screensaver in Kubuntu


    I am running Kubuntu 11.04 and I use the standard "Blank Screen" screensaver. I want to start a command every time the screensaver starts and to stop it when the screensaver stops.

    My idea is to copy the "Blank Screen" screensaver and add a couple of my own lines in the source code ...
    but I have some trouble finding the correct files.

    Anyone any ideas or suggestions how to do this?

  2. #2
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    Code:
    while sleep 30; do qdbus org.kde.screensaver /ScreenSaver GetActive; done
    Will print 'true' when the screensaver is active, or 'false' when it is inactive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •