sway: pause media player before locking screen

This commit is contained in:
2022-07-18 09:26:45 +03:00
parent a19775dcaf
commit 6f188f8274

View File

@@ -7,6 +7,7 @@ __lock() {
amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l) amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l)
if [[ "$amount_of_outputs" == "1" ]]; then if [[ "$amount_of_outputs" == "1" ]]; then
playerctl pause
__lock __lock
else else
swaymsg output eDP-1 disable swaymsg output eDP-1 disable