nix-config/home/mpv.nix
Donovan Glover 42d1d8bcd6
mpv: Don't fullscreen by default
Makes mpv act similar to other applications.
2023-07-03 23:09:10 -04:00

42 lines
856 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-showfullscreen=no,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%";
};
scripts = with pkgs.mpvScripts; [
mpris
thumbnail
];
};
}