.s/scripts/songnotification

7 lines
187 B
Plaintext
Raw Permalink Normal View History

2022-10-26 00:13:43 -04:00
#!/bin/sh
song=$(playerctl metadata --format "{{ title }}\n{{ artist }}")
2022-10-26 00:13:43 -04:00
if [[ $PLAYER_EVENT = "load" ]]; then
notify-send "Now Playing" "$song" --icon=~/.config/spotifyd/logo.png
fi