diff options
Diffstat (limited to 'user-profiles/mpv/default.nix')
-rw-r--r-- | user-profiles/mpv/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 4d6e3ea6..704ccab0 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix | |||
@@ -9,7 +9,7 @@ | |||
9 | ytdl = true; | 9 | ytdl = true; |
10 | sub = false; | 10 | sub = false; |
11 | osd-font = "DejaVu Sans"; | 11 | osd-font = "DejaVu Sans"; |
12 | vo = "gpu"; | 12 | # vo = "gpu"; |
13 | hwdec = "auto"; | 13 | hwdec = "auto"; |
14 | force-window = "yes"; | 14 | force-window = "yes"; |
15 | # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; | 15 | # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; |
@@ -18,6 +18,8 @@ | |||
18 | "vidscale=no" | 18 | "vidscale=no" |
19 | "deadzonesize=0.9" | 19 | "deadzonesize=0.9" |
20 | "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" | 20 | "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" |
21 | "chapterskip-skip=sponsor" | ||
22 | "chapterskip-categories=sponsor>%[SponsorBlock%]: Sponsor" | ||
21 | ]; | 23 | ]; |
22 | }; | 24 | }; |
23 | scripts = [ | 25 | scripts = [ |
@@ -55,6 +57,14 @@ | |||
55 | 57 | ||
56 | passthru.scriptName = "mpris.so"; | 58 | passthru.scriptName = "mpris.so"; |
57 | })) | 59 | })) |
60 | (pkgs.stdenv.mkDerivation (sources.mpv-chapterskip // rec { | ||
61 | installPhase = '' | ||
62 | install -d $out/share/mpv/scripts | ||
63 | install -m 0644 chapterskip.lua $out/share/mpv/scripts/${passthru.scriptName} | ||
64 | ''; | ||
65 | |||
66 | passthru.scriptName = "chapterskip.lua"; | ||
67 | })) | ||
58 | ]; | 68 | ]; |
59 | }; | 69 | }; |
60 | } | 70 | } |