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