cfg/bin/lock

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