cfg/bin/lock
Knut Ahlers cd59a27247
Lock to black screen
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-27 21:07:34 +01:00

15 lines
359 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
# Disable streamdeck to disallow input
systemctl --user stop streamdeck
i3lock -e -f -n -c 000000
# Restart streamdeck again
systemctl --user start streamdeck