cfg/bin/lock
Knut Ahlers e07637733e
Use pre-generated lockscreen images
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-03-26 17:37:38 -04:00

9 lines
254 B
Bash
Executable file

#!/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