{ config, pkgs, ... }: { home.file."${config.xdg.configHome}/mpv/scripts".source = ./files/scripts; home.file."${config.xdg.configHome}/mpv/fonts".source = ./files/fonts; programs.mpv = { enable = true; config = { osc = false; save-position-on-quit = true; sub-auto = "fuzzy"; sub-font-size = 46; profile = "gpu-hq"; scale = "ewa_lanczossharp"; cscale = "ewa_lanczossharp"; video-sync = "display-resample"; interpolation = true; tscale = "oversample"; vo = "gpu"; hwdec = "auto"; force-window = true; keep-open = true; }; bindings = { "Ctrl+Shift+r" = "add sub-scale +0.05"; "Ctrl+r" = "add sub-scale -0.05"; "Ctrl+Alt+r" = "set sub-scale 1"; }; profiles.Idle = { profile-cond = ''p["idle-active"]''; profile-restore = "copy-equal"; title = "' '"; keepaspect = false; background = "none"; }; }; }