profiles/desktop: update mpv configuration

This commit is contained in:
Gabriel Arazas 2023-10-03 21:32:24 +08:00
parent 5f5dc2a14e
commit 9be7f20438
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -80,10 +80,18 @@ in {
enable = true;
config = {
ytdl-format = "(webm,mkv,mp4)[height<=?1280]";
ytdl-raw-options-append = let
options = {
yes-playlist = "";
};
options' = lib.mapAttrsToList (n: v: "${n}=${v}") options;
in lib.concatStringsSep "," options';
ordered-chapters = true;
ab-loop-count = "inf";
chapter-seek-threshold = 15.0;
no-osc = true;
osc = false;
sub-auto = "fuzzy";
hwdec= "auto";
};
bindings = {
@ -112,11 +120,24 @@ in {
alang = vlang;
slang = with lib; concatStringsSep "," (reverseList (splitString "," vlang));
};
"extension.gif" = {
osc = false;
loop-file = true;
};
"protocol.https" = {
keep-open = true;
loop-file = "inf";
};
"protocol.http".profile = "protocol.https";
};
scripts = with pkgs.mpvScripts; [
mpris
mpvacious
mpv-playlistmanager
thumbnail
quality-menu
];