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)
- extracts cover art using ffmpeg
- mpv (>= 0.3.6)
- Lua (>= 5.2)
ffmpeg
from https://www.ffmpeg.org/notify-send
from libnotifyconvert
from ImageMagick
Install mpv, lua, ffmpeg, libnotify and ImageMagick packages
Just drop notify.lua
into the folder ~/.config/scripts/lua
(create it when neccessary),
and mpv will find it. Optionally, you can add it to mpv's command line:
mpv --lua=/path/to/notify.lua <files and options>
mpv-notify was originally written by Roland Hieber . I have simply refactored it according to my needs. You may use it under the terms of the MIT license.