summaryrefslogtreecommitdiff
path: root/sway/lock
diff options
context:
space:
mode:
Diffstat (limited to 'sway/lock')
-rwxr-xr-xsway/lock8
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/lock b/sway/lock
new file mode 100755
index 0000000..2132bab
--- /dev/null
+++ b/sway/lock
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ssh-add -D
+
+swayidle timeout 1 'swaylock -c 000000' \
+ resume "killall swayidle" \
+ timeout 5 'swaymsg "output * dpms off"' \
+ resume "swaymsg 'output * dpms on'"