summaryrefslogtreecommitdiff
path: root/.local/bin/idle
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-22 07:16:03 +0100
committerAdam Stück <adam@adast.xyz>2023-02-22 07:16:03 +0100
commitb48537a1d256f821abe3cd5a2842e2908c89d184 (patch)
tree1fc1dd03065e98a9b930f681d8f7beb662139787 /.local/bin/idle
parent3b360b69d4967ff3a6935b66c923602d4413ff41 (diff)
feat: idle timeout lockscreen
Re-adds betterlockscreen. Don't remember why I removed it in the first place.
Diffstat (limited to '.local/bin/idle')
-rwxr-xr-x.local/bin/idle6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/idle b/.local/bin/idle
new file mode 100755
index 0000000..ae40ff3
--- /dev/null
+++ b/.local/bin/idle
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+xidlehook \
+ --detect-sleep --not-when-audio --not-when-fullscreen \
+ --timer 300 'betterlockscreen -l' '' \
+ --timer 60 'systemctl suspend' '' &