.s/scripts/songnotification
2023-03-27 11:12:26 -06:00

7 lines
187 B
Bash
Executable File

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