Skip to content

Lua script to copy url of currently playing youtube video to the clipboard.

Notifications You must be signed in to change notification settings

mauricioquintela/mpv-youtube-clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

mpv-youtube-clipboard

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.

Installation

GNU/Linux

  • 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.

Screenshot

ss1

About

Lua script to copy url of currently playing youtube video to the clipboard.

Topics

Resources

Stars

Watchers

Forks