#!/bin/bash # Check if ncspot is playing status=$(playerctl -p ncspot status 2>/dev/null) # Only output song info if ncspot is playing if [ "$status" = "Playing" ]; then playerctl -p ncspot metadata --format "{{ artist }} - {{ title }}" 2>/dev/null else echo "-" fi