1
0
forked from extern/nix-config
donovanglover-nix-config/home/mpv.nix
Donovan Glover ac3699fd6e
mpv: Drop gpu-hq profile for now
This setting causes some videos to experience lagginess on my iGPU. In
the future it may be useful to enable the new profile "high-quality" if
I have a dedicated GPU.

Note that in addition to setting the profile to high-quality, it's also
possible to use "vo=gpu-next".

See: 703f158880
2023-12-29 18:15:49 -05:00

44 lines
852 B
Nix

{ pkgs, ... }:
{
programs.mpv = {
enable = true;
config = {
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
];
};
}