summaryrefslogtreecommitdiff
path: root/.local/bin/screensaver
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-07-25 23:05:52 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-07-25 23:31:37 +0200
commit03c54fcbae1227ef298127f3f6af3521bff00768 (patch)
tree707d856bf37102b06ec506d35261e00076dfda15 /.local/bin/screensaver
parent12e84d7ddfc02519293734e17929414b209992f8 (diff)
Use xidlehook for screensaver/suspend
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..7ae5ca7
--- /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 600 'xset s activate' '' \
+ --timer 600 'systemctl suspend' '' &