summaryrefslogtreecommitdiff
path: root/waylockd
diff options
context:
space:
mode:
Diffstat (limited to 'waylockd')
-rwxr-xr-xwaylockd7
1 files changed, 7 insertions, 0 deletions
diff --git a/waylockd b/waylockd
new file mode 100755
index 0000000..b371abd
--- /dev/null
+++ b/waylockd
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ "$(pgrep -U$(whoami) -x waylockd | wc -l)" -gt "2" ] && echo "true"
+
+while true; do
+ cat ~/.config/waylock/config | xargs waylock && exit
+done