#!/bin/sh
playerctl --follow metadata title |
  while read x; do
    dunstctl close-all
    TITLE=$(playerctl metadata title)
    ARTIST=$(playerctl metadata artist)
    notify-send "$TITLE" "$ARTIST" -i :
  done
