diff --git a/bin/poly_spotify b/bin/poly_spotify index ffa43a2..04be951 100755 --- a/bin/poly_spotify +++ b/bin/poly_spotify @@ -9,7 +9,7 @@ if [[ "$1" == "--scroll" ]] ; then -p " 󰎈 " \ --delay 0.5 \ --update-check true \ - --match-command "playerctl status" \ + --match-command "playerctl --player=spotify status" \ --match-text "Playing" "--scroll 1" \ --match-text "Paused" "--scroll 0" \ "playerctl --player=spotify metadata -s --format '{{artist}} - {{title}}'" & diff --git a/gui/polybar/config.ini b/gui/polybar/config.ini index 4d14e0c..b08658a 100644 --- a/gui/polybar/config.ini +++ b/gui/polybar/config.ini @@ -240,7 +240,7 @@ click-right = rofi-music ; playerctl interaction for spotify type = custom/script interval = 1 -exec = playerctl metadata -s --format '{{duration(position)}}/{{duration(mpris:length)}}' +exec = playerctl --player=spotify metadata -s --format '{{duration(position)}}/{{duration(mpris:length)}}' [module/todo] ; uses calcurse to cycle through todo items