Steven Smith revised this gist . Go to revision
1 file changed, 2 insertions
mpv-icy-notify.sh(file created)
| @@ -0,0 +1,2 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | mpv http://stream 2>&1 | while read p; do if [[ "$p" != "A: "* ]]; then echo $p; fi; if [[ "$p" == *"icy-title:"* ]]; then notify-send "$(echo $p | cut -d' ' -f2-)"; fi; done | |
Newer
Older