Skip to content

Copy the current time of the video to clipboard.

License

Notifications You must be signed in to change notification settings

LeonCheung/mpv-copyTime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv-copyTime

Copy the current time of the video to clipboard.

Get the current time of the video and copy it to the clipboard with the format HH:MM:SS.MS, where MS (milliseconds) is 3 digits.

By default, the script is bind to "Ctrl + c"

Installation

Windows

For Windows use copyTime.js or copyTime.lua, the one you prefere.

  • Put the selected script in your scripts folder (usually "%APPDATA%\mpv\scripts").

The script needs PowerShell to work.

GNU/Linux

For GNU/Linux use copyTime-xclip.lua, that uses xclip instead of Powershell, thanks maxigaz.

  • Put copyTime-xclip.lua and copyTime-xclip.sh in your scripts folder (usually "~/.config/mpv/scripts/").

  • Modify copyTime-xclip.lua to set the correct path to copyTime-xclip.sh.

  • Give execute permissions to copyTime-xclip.sh (chmod +x copyTime-xclip.sh).

The script needs xclip to work.

Screenshot

ss1

About

Copy the current time of the video to clipboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 64.1%
  • JavaScript 33.5%
  • Shell 2.4%