mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
0d6edc043a
This script has pretty much everything one would want in a user interface for mpv, including playlist support.
47 lines
947 B
Nix
47 lines
947 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.mpv = {
|
|
enable = true;
|
|
|
|
config = {
|
|
profile = "gpu-hq";
|
|
scale = "ewa_lanczossharp";
|
|
cscale = "ewa_lanczossharp";
|
|
video-sync = "display-resample";
|
|
interpolation = true;
|
|
tscale = "oversample";
|
|
|
|
sub-auto = "fuzzy";
|
|
sub-font = "Noto Sans CJK JP Medium";
|
|
sub-blur = 10;
|
|
sub-file-paths = "subs:subtitles:字幕";
|
|
|
|
screenshot-format = "png";
|
|
|
|
title = "\${filename} - mpv";
|
|
script-opts = "osc-title=\${filename},osc-boxalpha=150,osc-visibility=never,osc-boxvideo=yes";
|
|
|
|
osc = "no";
|
|
osd-on-seek = "no";
|
|
osd-bar = "no";
|
|
osd-bar-w = 30;
|
|
osd-bar-h = "0.2";
|
|
osd-duration = 750;
|
|
|
|
really-quiet = "yes";
|
|
autofit = "65%";
|
|
};
|
|
|
|
bindings = {
|
|
"ctrl+a" = "script-message osc-visibility cycle";
|
|
};
|
|
|
|
scripts = with pkgs.mpvScripts; [
|
|
mpris
|
|
uosc
|
|
thumbfast
|
|
];
|
|
};
|
|
}
|