aboutsummaryrefslogtreecommitdiff
path: root/.scripts/islocked
blob: 9f2c7ef906ea5c5ba5740fd76d7b32b3ac9d5fcb (plain) (blame)
1
2
3
4
5
#!/bin/sh

# fails if locked

(pgrep -x "slock" 2>/dev/null) && exit 1 || exit 0