Another option I just discovered would be something like this:
while true; do dbus-send --session --dest=org.gnome.ScreenSaver 
--type=method_call /org/gnome/ScreenSaver 
org.gnome.ScreenSaver.SimulateUserActivity; sleep 30; done

30 should be slightly less than your screensaver timeout (in seconds).

This wouldn't require a WindowID, and when you're done, just do a Ctrl-C
to resume the screensaver.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-screensaver in Ubuntu.
https://bugs.launchpad.net/bugs/988949

Title:
  cannot inhibit gnome screensaver via gnome-screensaver-command

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/988949/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to