#!/usr/bin/env bash if [ "$1" == '--toggle' ]; then playerctl --player=spotify play-pause fi if [[ "$1" == "--scroll" ]] ; then zscroll -l $2 \ -p " 󰎈 " \ --delay 0.5 \ --update-check true \ --match-command "playerctl --player=spotify status" \ --match-text "Playing" "--scroll 1" \ --match-text "Paused" "--scroll 0" \ "playerctl --player=spotify metadata -s --format '{{artist}} - {{title}}'" & wait fi