Do not resume spotify after unlock
This commit is contained in:
@@ -18,13 +18,7 @@ log()
|
|||||||
lock()
|
lock()
|
||||||
{
|
{
|
||||||
set -x
|
set -x
|
||||||
playing=0
|
playerctl -p spotify pause
|
||||||
if [[ "$(playerctl -p spotify status)" == "Playing" ]] ; then
|
|
||||||
playing=1
|
|
||||||
fi
|
|
||||||
if (( $playing )) ; then
|
|
||||||
playerctl -p spotify pause
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f "$LOCKSCREEN" ]] ; then
|
if [[ -f "$LOCKSCREEN" ]] ; then
|
||||||
resized_lockscreen=$(mktemp)
|
resized_lockscreen=$(mktemp)
|
||||||
@@ -36,9 +30,6 @@ lock()
|
|||||||
i3lock --nofork --show-failed-attempts --ignore-empty-password \
|
i3lock --nofork --show-failed-attempts --ignore-empty-password \
|
||||||
--color "$_fallback_color"
|
--color "$_fallback_color"
|
||||||
fi
|
fi
|
||||||
if (( $playing )) ; then
|
|
||||||
playerctl -p spotify play
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
screen_off() {
|
screen_off() {
|
||||||
|
|||||||
Reference in New Issue
Block a user