diff options
Diffstat (limited to 'user-profiles')
-rw-r--r-- | user-profiles/mpv/default.nix | 12 | ||||
-rw-r--r-- | user-profiles/tmux/default.nix | 6 |
2 files changed, 14 insertions, 4 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 | } |
diff --git a/user-profiles/tmux/default.nix b/user-profiles/tmux/default.nix index 4252c099..11c53788 100644 --- a/user-profiles/tmux/default.nix +++ b/user-profiles/tmux/default.nix | |||
@@ -22,8 +22,8 @@ | |||
22 | }); | 22 | }); |
23 | }; | 23 | }; |
24 | 24 | ||
25 | # home.packages = [ | 25 | home.packages = [ |
26 | # (pkgs.tmuxp.override { python3Packages = pkgs.python37Packages; }) | 26 | pkgs.tmuxp |
27 | # ]; | 27 | ]; |
28 | }; | 28 | }; |
29 | } | 29 | } |