aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2023-01-24 16:07:08 -0600
committerAlec Goncharow <alec@goncharow.dev>2023-01-24 16:07:08 -0600
commitd3aeb8f7d8d9b4352e7b827a361d1da11cb6cf04 (patch)
treef7f609be5b348e8b337a24e41f5dddb8fcc5fbdb
parent47e76c9ba66260f1cebf74015a7c4a566a012364 (diff)
add afk script
-rwxr-xr-xbin/afk6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/afk b/bin/afk
new file mode 100755
index 0000000..52a716b
--- /dev/null
+++ b/bin/afk
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+swayidle -w \
+ timeout 1 'pretty-lock' \
+ timeout 2 'swaymsg "output * dpms off"'\
+ resume 'swaymsg "output * dpms on"; pkill -nf swayidle.'