I'm currently using dunst with the latest commit. I use the script to print track played with moc. It's called zinfo. It's working pretty good with my files.
#!/bin/sh
ZIK=$(mocp -Q %title 2> /dev/null)
notify-send -u low "Title = $ZIK"
exit
I tried to print informations about track played from a web radio but it failed with this information:
(notify-send:1396): GLib-CRITICAL **: g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed
/home/foo/.bin/zinfo : ligne 3 : 1396 Trappe pour point d'arrêt et de trace notify-send -u low "Title = $ZIK"
The output works in terminal with "mocp -Q %tile". Here the string:
Michael Dupré - Heavenly Tranced Out 2012
I have to say that moc (with ncurses) print a missing character instead of "é".
I used default dunstrc, but I had same error.
I'm sure it's related to the streamer because I tried others streams and it was fine. I wanted to warn you about it.
I'm currently using dunst with the latest commit. I use the script to print track played with moc. It's called zinfo. It's working pretty good with my files.
#!/bin/sh ZIK=$(mocp -Q %title 2> /dev/null) notify-send -u low "Title = $ZIK" exit
I tried to print informations about track played from a web radio but it failed with this information:(notify-send:1396): GLib-CRITICAL **: g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed /home/foo/.bin/zinfo : ligne 3 : 1396 Trappe pour point d'arrêt et de trace notify-send -u low "Title = $ZIK"
The output works in terminal with "mocp -Q %tile". Here the string:
Michael Dupré - Heavenly Tranced Out 2012
I have to say that moc (with ncurses) print a missing character instead of "é".I used default dunstrc, but I had same error.
I'm sure it's related to the streamer because I tried others streams and it was fine. I wanted to warn you about it.