Lua script to copy filename of currently playing video to the clipboard. Filename is displayed as a confirmation. If filename is an youtube link (beginning by "watch?v="), it gets processed into a full youtube url.
Default configuration uses xclip. Kde plasma configuration available as a comment in the file.
By default, the script is bound to "Ctrl + Shift + c".
Based on mpv-copyTime and showfilename.
-
Clone repository in your scripts folder (usually "~/.config/mpv/scripts/").
-
Modify main.lua to set the correct path to get_link.sh (has to be absolute path).
-
Give execute permissions to get_link.sh (chmod +x get_link.sh).
-
Update get_link.sh to use your clipboard manager of choice. Default is xclip, with klipper (KDE Plasma) version as a comment.