summaryrefslogtreecommitdiff
path: root/.local/bin/screensaver
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/screensaver')
-rwxr-xr-x.local/bin/screensaver9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/screensaver b/.local/bin/screensaver
new file mode 100755
index 0000000..7b25bf9
--- /dev/null
+++ b/.local/bin/screensaver
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# xset -dpms
+xset s off
+
+xidlehook \
+ --detect-sleep --not-when-audio --not-when-fullscreen \
+ --timer 300 'betterlockscreen -l' '' \
+ --timer 300 'systemctl suspend' '' &