Closed maxigaz closed 3 years ago
Also, on Linux you can use:
❯ tail -n 2 ~/.config/mpv/input.conf
Ctrl+c run "/bin/bash" "-c" "echo ${time-pos} | xclip -selection clipboard"
ref: https://github.com/mpv-player/mpv/issues/4695#issuecomment-609876072
But it will copy 00:03:33
instead of 00:03:33.120
.
I've made some edits to the lua script so that it works on Linux without Powershell.
Another tiny thing I changed was reducing the number of digits for the ms part from 9 to 3, as originally, I would see 6 redundant zeros in the output each time.
I’m new to writing scripts for mpv (and in lua), so there very well may be a more efficient way to do this. Feel free to make modifications however you like.
And finally, thank you! This is the only customisable way I’ve found so far that includes milliseconds, which comes very handy.