Skip to content

Instantly share code, notes, and snippets.

Last active July 1, 2020 04:01
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Restore old "window-scale" behavior, so to make "add window-scale +/-<value>" keybinds work again when paired with autofit-* options
function fix_window_scale()
local cws = mp.get_property("current-window-scale")
if cws then mp.set_property("window-scale", cws) end
"file-loaded", function () mp.add_timeout(1, fix_window_scale)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment