#!/bin/bash # Send play/pause to the first active player in the priority list via MPRIS2. # -p specifies a comma-separated ordered list: playerctl tries each in turn # and sends the command to the first one that is currently active/running. playerctl play-pause -p spotify, vlc, firefox