diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
commit | fc6cf6169868e60c189e4b243330c3717ff159f3 (patch) | |
tree | 3f6dea9c1420e23756257b5abea27ec9ed92d58a /user-profiles/mpv/default.nix | |
parent | 84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff) | |
download | nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2 nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip |
...
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 | } |