#!/usr/bin/env bash STATUS=$(playerctl status) case $STATUS in "Playing") TITLE=$(playerctl metadata title | sed s/_/\ /g) META="${TITLE:-Title}" curstatus=" 🎡 $META β”Š" ;; "Paused") TITLE=$(playerctl metadata title | sed s/.m4a//g) META="${TITLE:-Title}" curstatus=" ⏸️ $META β”Š" ;; *) curstatus=" No Player β”Š" ;; esac echo -e "$curstatus" case "$BLOCK_BUTTON" in 1) playerctl play-pause ;; esac