From 6f188f82746953b75f1420725988b9e68f87c2c4 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Mon, 18 Jul 2022 09:26:45 +0300 Subject: [PATCH] sway: pause media player before locking screen --- bin/lock.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lock.sh b/bin/lock.sh index 533b608..e451870 100755 --- a/bin/lock.sh +++ b/bin/lock.sh @@ -7,6 +7,7 @@ __lock() { amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l) if [[ "$amount_of_outputs" == "1" ]]; then + playerctl pause __lock else swaymsg output eDP-1 disable