Skip to content

Instantly share code, notes, and snippets.

@hooke007
Created October 2, 2022 20:30
Show Gist options
  • Save hooke007/60cf1afb6b5f85b5957da8e977aa1e2a to your computer and use it in GitHub Desktop.
Save hooke007/60cf1afb6b5f85b5957da8e977aa1e2a to your computer and use it in GitHub Desktop.
[mpv-script(dir)] 多osc-like脚本共存测试
-- 能用但没必要
-- 快捷键需要重映射
-- 脚本选项可能需要重映射(或者选择修改脚本)
require("mp.options")
local opts = {
UI = "",
}
read_options(opts)
local function disable_osc()
mp.commandv("set", "osc", "no")
end
if opts.UI == "osc_plus" then
disable_osc()
require("osc_plus")
elseif opts.UI == "uosc" then
require("uosc")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment