2018-12-11 23:10:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2019-03-26 21:37:38 +00:00
|
|
|
[ -f ${HOME}/.local/share/screen-lock.png ] || ${HOME}/bin/generate_lockscreen
|
2018-12-19 18:44:56 +00:00
|
|
|
|
2019-01-17 23:21:36 +00:00
|
|
|
# Stop MPD playback when mpc client was found
|
|
|
|
(which mpc >/dev/null 2>&1) && mpc stop
|
|
|
|
|
2019-03-26 21:37:38 +00:00
|
|
|
i3lock -e -f -n -i ${HOME}/.local/share/screen-lock.png
|