From 09bb3e5a7b9e4e0ead73dddb3697fb06cfe19bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 25 Sep 2022 00:12:58 -0300 Subject: [PATCH] add mpv --- user/home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/user/home.nix b/user/home.nix index a144f55..3e67417 100644 --- a/user/home.nix +++ b/user/home.nix @@ -279,4 +279,18 @@ in { Install = { WantedBy = [ "sway-session.target" ]; }; }; }; + programs.mpv.enable = true; + programs.mpv.config = { + # ytdl-format='best'; + ytdl_path="yt-dlp"; + ytdl-format="bestvideo[height<=1080][vcodec!=vp9]+bestaudio/best"; + ytdl-raw-options="cookies=~/.cache/cookies-youtube-com.txt,mark-watched="; + osd-fractions=true; + save-position-on-quit=true; + keep-open=true; + + cache=true; + cache-pause-initial=true; + cache-pause-wait=10; + }; }