diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-07-28 17:12:53 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-07-28 17:12:53 +0200 |
commit | 166f4d657ac264114a1e2941a5bd937230608b49 (patch) | |
tree | 0c3aeca0e5a02255074820ccdfe1db0028632bb1 /.local/bin/screensaver | |
parent | 1648eb59820993a1f4eec941f3b42b30d3e921b9 (diff) |
Use xidlehook for screensaver/suspend
Diffstat (limited to '.local/bin/screensaver')
-rwxr-xr-x | .local/bin/screensaver | 9 |
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' '' & |