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