From a8a6c3a400174cf476ec8e75bb2e5a5b0afb34da Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 17 Mar 2023 18:24:01 +0100 Subject: Script sync --- .scripts/islocked | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .scripts/islocked (limited to '.scripts/islocked') diff --git a/.scripts/islocked b/.scripts/islocked new file mode 100755 index 0000000..9f2c7ef --- /dev/null +++ b/.scripts/islocked @@ -0,0 +1,5 @@ +#!/bin/sh + +# fails if locked + +(pgrep -x "slock" 2>/dev/null) && exit 1 || exit 0 -- cgit v1.2.3