dotfiles/bin/lock.sh

15 lines
184 B
Bash
Raw Normal View History

#!/bin/sh
if mpc status | grep -F '[playing]'; then
mpc pause
RESTORE=1
fi
2022-05-19 08:19:17 +00:00
if [ -n "$LOCKER" ]; then
$LOCKER
else
slock
fi
if [ "$RESTORE" = 1 ]; then
mpc play
fi