mpv settings

This commit is contained in:
2026-05-14 17:35:07 +02:00
commit 644fee20e4
6 changed files with 6974 additions and 0 deletions

35
scripts/freezer.lua Normal file
View File

@@ -0,0 +1,35 @@
--[[
mpv_geometry_freezer.lua
Sets the geometry property when window size changes,
avoiding Windows' maximized windows detaching.
- AMM
]]--
local msg = require 'mp.msg'
local UPDATE_INTERVAL = 0.5
local screen_w, screen_h = mp.get_osd_size()
mp.add_periodic_timer(UPDATE_INTERVAL, function()
local new_screen_w, new_screen_h = mp.get_osd_size()
if new_screen_w ~= screen_w or new_screen_h ~= screen_h then
screen_w = new_screen_w
screen_h = new_screen_h
local geom_string = ("%dx%d"):format(screen_w, screen_h)
msg.debug("OSD resized: " .. geom_string .. ", setting geometry property")
mp.set_property_native("geometry", geom_string)
end
end)
#
local size_changed = false
mp.register_idle(function()
if not size_changed then return end
local ww, wh = mp.get_osd_size()
if not ww or ww <= 0 or not wh or wh <= 0 then return end
mp.set_property("geometry", string.format("%dx%d", ww, wh))
size_changed = false
end)
mp.observe_property("osd-width", "native", function() size_changed = true end)
mp.observe_property("osd-height", "native", function() size_changed = true end)

1442
scripts/playlistmanager.lua Normal file

File diff suppressed because it is too large Load Diff

2763
scripts/webm.lua Normal file

File diff suppressed because it is too large Load Diff