Adds desktop notifications to the mpv media player, which show metadata like artist, album name and track name when the track changes.
- shows artist, title and album name (as far as detected by mpv)
- tries to find load cover art in the same folder, or loads it from coverartarchive.org and caches it locally.
- mpv (>= 0.3.6)
- Lua (>= 5.2)
- lua-socket or install from luarocks
- luaposix or install from luarocks
notify-send
from libnotifyconvert
from ImageMagick
On recent Debians, do a sudo apt-get install lua-socket libnotify-bin imagemagick
Just drop notify.lua
into the folder ~/.mpv/scripts
(create it when neccessary),
and mpv will find it. Optionally, you can add it to mpv's command line:
mpv --script=/path/to/notify.lua <files and options>
mpv-notify was written by Roland Hieber , you can use it under the terms of the MIT license.