summaryrefslogtreecommitdiff
path: root/local/bin/disable-fullscreen-lock
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/disable-fullscreen-lock')
-rwxr-xr-xlocal/bin/disable-fullscreen-lock6
1 files changed, 6 insertions, 0 deletions
diff --git a/local/bin/disable-fullscreen-lock b/local/bin/disable-fullscreen-lock
index 487e33b..b755ab2 100755
--- a/local/bin/disable-fullscreen-lock
+++ b/local/bin/disable-fullscreen-lock
@@ -1,5 +1,11 @@
#!/bin/sh
+# Periodically checks if the active window is a full screen one and if so,
+# uses xdotool to simulate a keypress and unsets+sets DPMS to attempt to
+# stop a screen locker from locking the screen.
+# My primary use case is for watching youtube videos in full screen without
+# needing to wriggle the mouse periodically
+
DELAY=300
while true; do