#!/bin/sh # fails if locked (pgrep -x "slock" 2>/dev/null) && exit 1 || exit 0