cfg/bin/lock

10 lines
254 B
Plaintext
Raw Normal View History

#!/bin/bash
set -euo pipefail
[ -f ${HOME}/.local/share/screen-lock.png ] || ${HOME}/bin/generate_lockscreen
# Stop MPD playback when mpc client was found
(which mpc >/dev/null 2>&1) && mpc stop
i3lock -e -f -n -i ${HOME}/.local/share/screen-lock.png