aboutsummaryrefslogtreecommitdiff
path: root/.scripts/islocked
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/islocked')
-rwxr-xr-x.scripts/islocked5
1 files changed, 5 insertions, 0 deletions
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