From 5c7ea6ecd871075c11901cb0cdfe163891b99f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 16 Dec 2022 19:36:39 +0100 Subject: [PATCH] Do not resume spotify after unlock --- i3/scripts/i3exit | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/i3/scripts/i3exit b/i3/scripts/i3exit index 4167d7e..0119ac5 100755 --- a/i3/scripts/i3exit +++ b/i3/scripts/i3exit @@ -18,13 +18,7 @@ log() lock() { set -x - playing=0 - if [[ "$(playerctl -p spotify status)" == "Playing" ]] ; then - playing=1 - fi - if (( $playing )) ; then - playerctl -p spotify pause - fi + playerctl -p spotify pause if [[ -f "$LOCKSCREEN" ]] ; then resized_lockscreen=$(mktemp) @@ -36,9 +30,6 @@ lock() i3lock --nofork --show-failed-attempts --ignore-empty-password \ --color "$_fallback_color" fi - if (( $playing )) ; then - playerctl -p spotify play - fi } screen_off() {