Do not resume spotify after unlock

This commit is contained in:
2022-12-16 19:36:39 +01:00
parent 8aeb9d9f27
commit 5c7ea6ecd8

View File

@@ -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() {