cfg/bin/lock
Knut Ahlers 9f3afef374
On lock also disable streamdeck
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-06-12 15:51:41 +02:00

15 lines
389 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 -i ${HOME}/.local/share/screen-lock.png
# Restart streamdeck again
systemctl --user start streamdeck