Skip to content

Instantly share code, notes, and snippets.

@codingtony
Last active January 15, 2024 17:53
Show Gist options
  • Save codingtony/6910666 to your computer and use it in GitHub Desktop.
Save codingtony/6910666 to your computer and use it in GitHub Desktop.
Temporary disable Screensaver (tested with KDE) by simulating fake user activity
#!/bin/bash
# credits goes to http://silviumc.wordpress.com/2011/12/05/how-to-stop-the-screen-saver-in-kde-while-watching-long-flash-clips-in-a-web-browser/
while /bin/true
do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null;
sleep 1m;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment