Move mpv config to native nix
This commit is contained in:
parent
03bc10d603
commit
1b3613326f
|
|
@ -3,9 +3,38 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.file."${config.xdg.configHome}/mpv" = {
|
||||
source = ./files;
|
||||
recursive = true;
|
||||
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";
|
||||
};
|
||||
};
|
||||
programs.mpv = {enable = true;};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
osc=no
|
||||
save-position-on-quit=yes
|
||||
sub-auto=fuzzy
|
||||
profile=gpu-hq
|
||||
scale=ewa_lanczossharp
|
||||
cscale=ewa_lanczossharp
|
||||
video-sync=display-resample
|
||||
interpolation
|
||||
tscale=oversample
|
||||
vo=gpu
|
||||
hwdec=auto
|
||||
force-window=yes
|
||||
keep-open=yes
|
||||
|
||||
[Idle]
|
||||
profile-cond=p["idle-active"]
|
||||
profile-restore=copy-equal
|
||||
title=' '
|
||||
keepaspect=no
|
||||
background=none
|
||||
Loading…
Reference in New Issue