Add automated actions to lock command

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-12 12:55:00 +02:00
parent 43e9728e08
commit 466c1cdbeb
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -9,6 +9,13 @@ set -euo pipefail
# Disable streamdeck to disallow input
systemctl --user stop streamdeck
# Terminate Discord in order to get mobile notifications
killall -TERM Discord || true
# Mute default sink & source
pactl set-sink-mute @DEFAULT_SINK@ true || true
pactl set-sink-mute @DEFAULT_SINK@ true || true
i3lock -e -f -n -c 000000
# Restart streamdeck again