#!/usr/bin/env bash status=$(playerctl status) name=$(playerctl metadata title) echo '{"status":"'"$status"'","name":"'"$name"'"}'