summaryrefslogtreecommitdiff
path: root/.local/bin/lock
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
committerAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
commit7464e8fc26a762b213348ad1b050e21fa2be64ce (patch)
treef0ffb7c8d1b3f2579502491c457ea81a37ebc24f /.local/bin/lock
parentf5a8605de8b202ad656caee6ba072a98b5c53953 (diff)
replace betterlockscreen -> slock
Diffstat (limited to '.local/bin/lock')
-rwxr-xr-x.local/bin/lock9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/lock b/.local/bin/lock
new file mode 100755
index 0000000..191c876
--- /dev/null
+++ b/.local/bin/lock
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+xset dpms 5
+xidlehook \
+ --detect-sleep --not-when-audio --not-when-fullscreen \
+ --timer 60 'systemctl suspend' '' &
+slock
+kill $!
+xset dpms 300