summaryrefslogtreecommitdiff
path: root/slockd
diff options
context:
space:
mode:
Diffstat (limited to 'slockd')
-rwxr-xr-xslockd11
1 files changed, 3 insertions, 8 deletions
diff --git a/slockd b/slockd
index 55fc66a..c2824b3 100755
--- a/slockd
+++ b/slockd
@@ -1,12 +1,7 @@
#!/bin/sh
-if [ -z "$WAYLAND_DISPLAY" ]; then
- LOCKER=slock
-else
- LOCKER=waylock
-fi
+[ "$(pgrep -U$(whoami) -x slockd | wc -l)" -gt "2" ] && echo "true"
-
-while [ 1 -gt 0 ]; do
- $LOCKER && exit
+while true; do
+ slock && exit
done