2023-06-22 17:13:46 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-06-16 13:23:35 +02:00
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
config = {
|
|
|
|
profile = "gpu-hq";
|
|
|
|
scale = "ewa_lanczossharp";
|
|
|
|
cscale = "ewa_lanczossharp";
|
|
|
|
video-sync = "display-resample";
|
|
|
|
interpolation = true;
|
|
|
|
tscale = "oversample";
|
2023-06-16 14:51:22 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
sub-auto = "fuzzy";
|
|
|
|
sub-font = "Noto Sans CJK JP Medium";
|
|
|
|
sub-blur = 10;
|
|
|
|
sub-file-paths = "subs:subtitles:字幕";
|
2023-06-16 14:51:22 +02:00
|
|
|
|
|
|
|
screenshot-format = "png";
|
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
title = "\${filename} - mpv";
|
2023-07-04 05:09:42 +02:00
|
|
|
script-opts = "osc-title=\${filename},osc-boxalpha=150,osc-visibility=never,osc-boxvideo=yes";
|
2023-06-16 14:51:22 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
osc = "no";
|
|
|
|
osd-on-seek = "no";
|
|
|
|
osd-bar = "no";
|
|
|
|
osd-bar-w = 30;
|
|
|
|
osd-bar-h = "0.2";
|
|
|
|
osd-duration = 750;
|
2023-06-16 14:51:22 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
really-quiet = "yes";
|
2023-06-25 15:16:02 +02:00
|
|
|
autofit = "65%";
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
|
|
|
|
2023-07-04 05:09:42 +02:00
|
|
|
bindings = {
|
2023-12-03 21:57:49 +01:00
|
|
|
"ctrl+a" = "script-message osc-visibility cycle";
|
2023-07-04 05:09:42 +02:00
|
|
|
};
|
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
scripts = with pkgs.mpvScripts; [
|
|
|
|
mpris
|
|
|
|
thumbnail
|
|
|
|
];
|
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|