arch-setup/files/song.sh
2026-03-11 07:51:46 +01:00

9 lines
164 B
Bash
Executable file

#!/bin/bash
song=$(playerctl -p spotify metadata --format "{{ artist }} - {{ title }}" 2>/dev/null)
if [ -n "$song" ]; then
echo "$song"
else
echo ""
fi