#!/bin/bash spotify_status=$(playerctl --player=mpd status 2>/dev/null) if [ "$spotify_status" == "Playing" ]; then playerctl --player=mpd next fi