2024-05-30 16:54:58 -03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2022-10-18 22:41:40 -03:00
|
|
|
config = {
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
# ytdl-format='best';
|
2022-11-17 17:19:31 -03:00
|
|
|
# ytdl_path = "yt-dlp";
|
2022-10-18 22:41:40 -03:00
|
|
|
ytdl-format = "bestvideo[height<=1080][vcodec!=vp9]+bestaudio/best";
|
2024-05-30 16:54:58 -03:00
|
|
|
ytdl-raw-options = "cookies=~/.cache/cookies-youtube-com.txt,mark-watched=";
|
2022-10-18 22:41:40 -03:00
|
|
|
osd-fractions = true;
|
|
|
|
save-position-on-quit = true;
|
|
|
|
keep-open = true;
|
|
|
|
|
|
|
|
cache = true;
|
|
|
|
cache-pause-initial = true;
|
|
|
|
cache-pause-wait = 10;
|
2023-06-17 21:29:45 -03:00
|
|
|
|
2024-03-23 12:41:45 -03:00
|
|
|
hwdec = "auto";
|
2022-10-18 22:41:40 -03:00
|
|
|
};
|
2023-08-31 14:09:27 -03:00
|
|
|
scripts = with pkgs.mpvScripts; [
|
|
|
|
mpris
|
|
|
|
sponsorblock
|
|
|
|
thumbfast
|
|
|
|
];
|
2022-10-18 22:41:40 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|