From a3e69c331455db8ad7aa4eb690ec1d519dd97ca2 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Sat, 6 May 2023 00:05:40 +0300 Subject: [PATCH] fix lock.sh script --- bin/lock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lock.sh b/bin/lock.sh index b3e86f8..0ed575d 100755 --- a/bin/lock.sh +++ b/bin/lock.sh @@ -11,9 +11,9 @@ fi amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l) +swaymsg output eDP-1 disable + if [[ "$amount_of_outputs" == "1" ]]; then playerctl pause __lock -else - swaymsg output eDP-1 disable fi