From 429144166daafe884fbb062b95eb38dd65eb132d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 9 Mar 2021 15:39:23 +0100 Subject: [PATCH] mpv: Add sponsorblock --- users/simon/modules/mpv.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/users/simon/modules/mpv.nix b/users/simon/modules/mpv.nix index 1e4acb4..05962d2 100644 --- a/users/simon/modules/mpv.nix +++ b/users/simon/modules/mpv.nix @@ -156,6 +156,9 @@ in # sub-delay for fixing 24 empty frames on blu-ray "Alt+z" = "add sub-delay -1"; "Alt+Z" = "add sub-delay +1"; + + # sponsorblock: set segment boundaries + "alt+g" = "script-binding sponsorblock/set_segment"; }; profiles = @@ -219,7 +222,9 @@ in scripts = [ pitchcontrol - ]; + ] ++ (with pkgs.mpvScripts; [ + sponsorblock + ]); }; # mpv-gallery-view is not compatible with home-manager’s script injection meachanism