From 2ace7123e1f1272cdb8aa607af46594fd6ffa425 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 20 Jul 2025 13:35:07 +0200 Subject: modules/yt: Move the command config to its own table --- modules/by-name/yt/yt/module.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix index a0360c51..cfcaa4e6 100644 --- a/modules/by-name/yt/yt/module.nix +++ b/modules/by-name/yt/yt/module.nix @@ -46,8 +46,8 @@ max_cache_size = "5 GiB"; }; - show = { - image_show_command = lib.getExe (pkgs.writeShellApplication { + commands = { + image_show = lib.getExe (pkgs.writeShellApplication { name = "show_thumbnail"; text = '' imv -w "floating please" "$1" @@ -58,9 +58,8 @@ inheritPath = false; }); - }; - watch = { - external_command_spawn_script = lib.getExe (pkgs.writeShellApplication { + + external_spawn = lib.getExe (pkgs.writeShellApplication { name = "start_external_command"; text = builtins.readFile ./external_commands_script.sh; runtimeInputs = [ -- cgit 1.4.1