9 lines
254 B
Bash
Executable file
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
|