From 67c1e6d4ecb4226e99528f0b20552f4f34b08c34 Mon Sep 17 00:00:00 2001 From: zachir Date: Mon, 19 Jun 2023 00:32:16 -0500 Subject: Using swaylock instead of waylock --- swaylockd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 swaylockd (limited to 'swaylockd') diff --git a/swaylockd b/swaylockd new file mode 100755 index 0000000..76208ee --- /dev/null +++ b/swaylockd @@ -0,0 +1,8 @@ +#!/bin/sh + +WLCNT="$(pgrep -U$(whoami) -x waylockd | wc -l)" +[ "${WLCNT:-0}" -gt "2" ] && printf "Already running!\n" && exit + +while true; do + swaylock && exit +done -- cgit v1.2.3