diff --git a/flake.nix b/flake.nix index f9e648d..672668f 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,9 @@ home-manager.sharedModules = [ ({ config, ... }: { config = lib.mkIf config.programs.mpv.enable { - xdg.configFile."mpv/script-opts/sub-select.json".text = builtins.toJSON [ + xdg.configFile."mpv/script-opts/sub-select.json".text = let + signs = [ "sign" "song" "s&s" ]; + in builtins.toJSON [ # English audio: # 1. English signs/songs subs # 2. Forced subs @@ -65,7 +67,7 @@ { alang = "eng?"; slang = "eng?"; - whitelist = [ "sign" "song" ]; + whitelist = signs; } { alang = "eng?"; @@ -89,36 +91,36 @@ { alang = "*"; slang = "eng?"; - blacklist = [ "sign" "song" ]; + blacklist = signs; condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))"; } { alang = "*"; slang = "eng?"; - blacklist = [ "sign" "song" ]; + blacklist = signs; condition = "not sub.forced"; } { alang = "*"; slang = "eng?"; - blacklist = [ "sign" "song" ]; + blacklist = signs; } { alang = "*"; slang = "und"; - blacklist = [ "sign" "song" ]; + blacklist = signs; condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))"; } { alang = "*"; slang = "und"; - blacklist = [ "sign" "song" ]; + blacklist = signs; condition = "not sub.forced"; } { alang = "*"; slang = "und"; - blacklist = [ "sign" "song" ]; + blacklist = signs; } { alang = "*";