From 51d2796ba005b518ee2ea9830caf0130f973bda4 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 5 Jun 2026 20:47:02 +0200 Subject: [PATCH] Modules/Yazi: Fix xdg-open as default --- home/homemodules/yazi/default.nix | 39 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/home/homemodules/yazi/default.nix b/home/homemodules/yazi/default.nix index c15bc330..efc4ce73 100644 --- a/home/homemodules/yazi/default.nix +++ b/home/homemodules/yazi/default.nix @@ -5,12 +5,10 @@ mylib, pkgs, ... -}: -let +}: let inherit (config.homemodules) yazi color; -in -{ - options.homemodules.yazi = import ./options.nix { inherit lib mylib; }; +in { + options.homemodules.yazi = import ./options.nix {inherit lib mylib;}; config = lib.mkIf yazi.enable { programs.yazi = { @@ -19,7 +17,8 @@ in shellWrapperName = "y"; plugins = { - inherit (pkgs.yaziPlugins) + inherit + (pkgs.yaziPlugins) chmod diff full-border @@ -99,14 +98,14 @@ in } ]; open = [ - { - run = ''imv "$@"''; - desc = "Open selection with imv"; - } { run = ''xdg-open "$@"''; desc = "Open selection with xdg-open"; } + { + run = ''imv "$@"''; + desc = "Open selection with imv"; + } { # TODO: For some reason, junction does not exit after choosing an application... run = ''junction "$@"''; @@ -428,8 +427,8 @@ in border = { fg = color.hexS.accentDim; }; - title = { }; - value = { }; + title = {}; + value = {}; selected = { reversed = true; }; @@ -442,7 +441,7 @@ in active = { fg = color.hexS.accentHl; }; - inactive = { }; + inactive = {}; }; confirm = { @@ -452,12 +451,12 @@ in title = { fg = color.hexS.accentDim; }; - content = { }; - list = { }; + content = {}; + list = {}; btn_yes = { reversed = true; }; - btn_no = { }; + btn_no = {}; }; cmp = { @@ -470,7 +469,7 @@ in border = { fg = color.hexS.accentDim; }; - title = { }; + title = {}; hovered = { underline = true; }; @@ -553,9 +552,9 @@ in # Prepend to override default config icon = { - prepend_dirs = import ./specialDirectories.nix { inherit color; }; - prepend_files = import ./specialFiles.nix { inherit color; }; - prepend_exts = import ./specialExtensions.nix { inherit color; }; + prepend_dirs = import ./specialDirectories.nix {inherit color;}; + prepend_files = import ./specialFiles.nix {inherit color;}; + prepend_exts = import ./specialExtensions.nix {inherit color;}; }; }; };