Last active
January 15, 2024 17:53
-
-
Save codingtony/6910666 to your computer and use it in GitHub Desktop.
Temporary disable Screensaver (tested with KDE) by simulating fake user activity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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