Skip to content

Instantly share code, notes, and snippets.

@hammerill
Created April 13, 2025 21:45
Show Gist options
  • Save hammerill/e77e5ea1525a6137b2e8cd11e3f03256 to your computer and use it in GitHub Desktop.
Save hammerill/e77e5ea1525a6137b2e8cd11e3f03256 to your computer and use it in GitHub Desktop.

mpv Autofit Window to 80%

This fixes the mpv window being too big when launching a 4K video on a 1080p screen, for example, by limiting it at 80% of the screen.

Add to ~/.config/mpv/mpv.conf:

autofit-larger=80%x80%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment