mpv: Add fullscreen to the anime profile

This commit is contained in:
PapaTutuWawa 2021-08-02 21:51:25 +02:00
parent f790636373
commit d7692171d8

View File

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let let
makeMpvProfile = shader: { makeMpvProfile = { shader, additional ? {} }: {
glsl-shaders = "~/.config/mpv/shaders/${shader}"; glsl-shaders = "~/.config/mpv/shaders/${shader}";
scale = "ewa_lanczossharp"; scale = "ewa_lanczossharp";
cscale = "ewa_lanczossharp"; cscale = "ewa_lanczossharp";
@ -12,7 +12,7 @@ let
video-sync = "display-resample"; video-sync = "display-resample";
interpolation = ""; interpolation = "";
tscale = "oversample"; tscale = "oversample";
}; } // additional;
in { in {
environment.systemPackages = [ pkgs.mpv ]; environment.systemPackages = [ pkgs.mpv ];
@ -29,8 +29,15 @@ in {
}; };
defaultProfiles = [ "anime" ]; defaultProfiles = [ "anime" ];
profiles = { profiles = {
anime = (makeMpvProfile "Anime4K_Upscale_CNN_UL_x2_Deblur.glsl"); anime = (makeMpvProfile {
"anime-denoise" = (makeMpvProfile "Anime4K_Upscale_CNN_UL_x2_Denoise.glsl"); shader = "Anime4K_Upscale_CNN_UL_x2_Deblur.glsl";
additional = {
fullscreen = "";
};
});
"anime-denoise" = (makeMpvProfile {
shader = "Anime4K_Upscale_CNN_UL_x2_Denoise.glsl";
});
}; };
}; };
}; };