Skip to content

Instantly share code, notes, and snippets.

@hammerill
Last active July 15, 2025 15:09
Show Gist options
  • Save hammerill/a25f6dc86753ffaa3ab186f3f84fb8eb to your computer and use it in GitHub Desktop.
Save hammerill/a25f6dc86753ffaa3ab186f3f84fb8eb to your computer and use it in GitHub Desktop.
mpv Config

mpv Config

~/.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment