Skip to content

Instantly share code, notes, and snippets.

@hammerill
Last active December 27, 2025 13:39
Show Gist options
  • Select an option

  • Save hammerill/a25f6dc86753ffaa3ab186f3f84fb8eb to your computer and use it in GitHub Desktop.

Select an option

Save hammerill/a25f6dc86753ffaa3ab186f3f84fb8eb to your computer and use it in GitHub Desktop.
mpv Config

mpv Config

Linux & macOS

~/.config/mpv/mpv.conf:

# Avoid creating a window larger than the screen
autofit-larger=80%x80%

~/.config/mpv/input.conf:

# Copy timestamp
n run sh -c 'printf "%s" ${time-pos/full} | wl-copy'

# Reload subtitles
r sub-reload

Warning

Replace wl-copy with a system paste buffer tool if not using Linux Wayland environment.

For example, it would be pbcopy on macOS.

Windows

Install mpv with the winget tool. Also install yt-dlp with it to be able to stream any URLs via mpv.

Create a folder %appdata%\mpv.

%appdata%\mpv\mpv.conf:

# Avoid creating a window larger than the screen
autofit-larger=80%x80%

%appdata%\mpv\input.conf:

# Copy timestamp
n run powershell.exe -NoProfile -WindowStyle Hidden -Command "Set-Clipboard -Value '${time-pos/full}'"

# Reload subtitles
r sub-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment