From 166f4d657ac264114a1e2941a5bd937230608b49 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 28 Jul 2022 17:12:53 +0200 Subject: Use xidlehook for screensaver/suspend --- .local/bin/screensaver | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/screensaver (limited to '.local/bin/screensaver') 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' '' & -- cgit v1.2.3-70-g09d2