diff --git a/i3/scripts/i3exit b/i3/scripts/i3exit index e879e1e..065e28d 100755 --- a/i3/scripts/i3exit +++ b/i3/scripts/i3exit @@ -19,11 +19,11 @@ lock() { set -x playing=0 - if [[ "$(playerctl status)" == "Playing" ]] ; then + if [[ "$(playerctl -p spotify status)" == "Playing" ]] ; then playing=1 fi if (( $playing )) ; then - playerctl pause + playerctl -p spotify pause fi if [[ -f "$LOCKSCREEN" ]] ; then @@ -37,7 +37,7 @@ lock() --color "$_fallback_color" fi if (( $playing )) ; then - playerctl play + playerctl -p spotify play fi } diff --git a/i3/scripts/spotify-control b/i3/scripts/spotify-control index 1c02979..6aacb32 100755 --- a/i3/scripts/spotify-control +++ b/i3/scripts/spotify-control @@ -16,5 +16,5 @@ previous) ;; esac -playerctl "${cmd}" +playerctl -p spotify "${cmd}" ~/.i3/scripts/bar-update spotify