fix(mpv): fix inconsistency with autocrop

This commit is contained in:
kenji
2026-07-04 07:02:49 -05:00
parent 1c5d9c21d4
commit 25202b7884
2 changed files with 18 additions and 1 deletions
+14
View File
@@ -4,18 +4,32 @@
scripts = with pkgs.mpvScripts; [
uosc
thumbfast
autocrop
];
scriptOpts = {
autocrop = {
auto = "yes"; # Automatically run on video load
notice = "yes"; # Optional: Show an OSD message when it crops
delay = "5"; # Optional: Wait 1 second before detecting (helps skip studio logos)
};
};
config = {
# uosc provides its own UI
osc = "no";
osd-bar = "no";
border = "no";
hwdec = "auto-copy";
# Subtitle preferences - prefer full subtitles over forced
# slang = "eng,en,enm"; # English subtitle preference order
# subs-fallback = "default"; # Use default if preferred not found
# sub-forced-events-only = "no"; # Don't limit to forced subtitle events
};
bindings = {
# Bind it to 'C' (Shift+c) to toggle cropping manually
"C" = "script-message-to autocrop toggle_crop";
};
};
xdg.mimeApps = {