From fc6cf6169868e60c189e4b243330c3717ff159f3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 26 May 2022 13:58:07 +0200 Subject: ... --- user-profiles/mpv/default.nix | 12 +++++++++++- user-profiles/tmux/default.nix | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'user-profiles') 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 @@ ytdl = true; sub = false; osd-font = "DejaVu Sans"; - vo = "gpu"; + # vo = "gpu"; hwdec = "auto"; force-window = "yes"; # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; @@ -18,6 +18,8 @@ "vidscale=no" "deadzonesize=0.9" "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" + "chapterskip-skip=sponsor" + "chapterskip-categories=sponsor>%[SponsorBlock%]: Sponsor" ]; }; scripts = [ @@ -55,6 +57,14 @@ passthru.scriptName = "mpris.so"; })) + (pkgs.stdenv.mkDerivation (sources.mpv-chapterskip // rec { + installPhase = '' + install -d $out/share/mpv/scripts + install -m 0644 chapterskip.lua $out/share/mpv/scripts/${passthru.scriptName} + ''; + + passthru.scriptName = "chapterskip.lua"; + })) ]; }; } 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 @@ }); }; - # home.packages = [ - # (pkgs.tmuxp.override { python3Packages = pkgs.python37Packages; }) - # ]; + home.packages = [ + pkgs.tmuxp + ]; }; } -- cgit v1.2.3