Add automated actions to lock command
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
43e9728e08
commit
466c1cdbeb
1 changed files with 7 additions and 0 deletions
7
bin/lock
7
bin/lock
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue