diff options
-rw-r--r-- | modules/by-name/yt/yt/module.nix | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix index 650f11a5..3ac59439 100644 --- a/modules/by-name/yt/yt/module.nix +++ b/modules/by-name/yt/yt/module.nix @@ -46,30 +46,38 @@ max_cache_size = "5 GiB"; }; - show = { - image_show_command = lib.getExe (pkgs.writeShellApplication { - name = "show_thumbnail"; - text = '' - imv -w "floating please" "$1" - ''; - runtimeInputs = [ - pkgs.imv - ]; - - inheritPath = false; - }); - }; - watch = { - external_command_spawn_script = lib.getExe (pkgs.writeShellApplication { - name = "start_external_command"; - text = builtins.readFile ./external_commands_script.sh; - runtimeInputs = [ - pkgs.river - pkgs.alacritty - ]; - - inheritPath = false; - }); + commands = { + image_show = [ + (lib.getExe + (pkgs.writeShellApplication { + name = "show_thumbnail"; + text = '' + imv -w "floating please" "$1" + ''; + runtimeInputs = [ + pkgs.imv + ]; + + inheritPath = false; + })) + ]; + + external_spawn = [ + (lib.getExe + (pkgs.writeShellApplication { + name = "start_external_command"; + text = builtins.readFile ./external_commands_script.sh; + runtimeInputs = [ + pkgs.river + pkgs.alacritty + pkgs.less + ]; + + inheritPath = false; + })) + ]; + + url_opener = ["qutebrowser-timesinks.youtube"]; }; }; |