From 806f83e4101e58042b10ecb81d6fbc698843fc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 1 Jan 2021 14:21:42 +0100 Subject: [PATCH] Update playerctl to always use spotify where needed --- i3/scripts/i3exit | 6 +++--- i3/scripts/spotify-control | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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