2018-12-11 23:10:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2019-03-26 21:37:38 +00:00
|
|
|
[ -f ${HOME}/.local/share/screen-lock.png ] || ${HOME}/bin/generate_lockscreen
|
2018-12-19 18:44:56 +00:00
|
|
|
|
2019-01-17 23:21:36 +00:00
|
|
|
# Stop MPD playback when mpc client was found
|
|
|
|
(which mpc >/dev/null 2>&1) && mpc stop
|
|
|
|
|
2020-06-12 13:51:41 +00:00
|
|
|
# Disable streamdeck to disallow input
|
|
|
|
systemctl --user stop streamdeck
|
|
|
|
|
2021-09-12 10:55:00 +00:00
|
|
|
# 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
|
|
|
|
|
2021-03-27 20:05:10 +00:00
|
|
|
i3lock -e -f -n -c 000000
|
2020-06-12 13:51:41 +00:00
|
|
|
|
|
|
|
# Restart streamdeck again
|
|
|
|
systemctl --user start streamdeck
|