1

Modules/Yazi: Fix xdg-open as default

This commit is contained in:
2026-06-05 20:47:02 +02:00
parent 0773fd4ffd
commit 29d1ddc672

View File

@ -5,12 +5,10 @@
mylib, mylib,
pkgs, pkgs,
... ...
}: }: let
let
inherit (config.homemodules) yazi color; inherit (config.homemodules) yazi color;
in in {
{ options.homemodules.yazi = import ./options.nix {inherit lib mylib;};
options.homemodules.yazi = import ./options.nix { inherit lib mylib; };
config = lib.mkIf yazi.enable { config = lib.mkIf yazi.enable {
programs.yazi = { programs.yazi = {
@ -19,7 +17,8 @@ in
shellWrapperName = "y"; shellWrapperName = "y";
plugins = { plugins = {
inherit (pkgs.yaziPlugins) inherit
(pkgs.yaziPlugins)
chmod chmod
diff diff
full-border full-border
@ -99,14 +98,14 @@ in
} }
]; ];
open = [ open = [
{
run = ''imv "$@"'';
desc = "Open selection with imv";
}
{ {
run = ''xdg-open "$@"''; run = ''xdg-open "$@"'';
desc = "Open selection with 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... # TODO: For some reason, junction does not exit after choosing an application...
run = ''junction "$@"''; run = ''junction "$@"'';
@ -428,8 +427,8 @@ in
border = { border = {
fg = color.hexS.accentDim; fg = color.hexS.accentDim;
}; };
title = { }; title = {};
value = { }; value = {};
selected = { selected = {
reversed = true; reversed = true;
}; };
@ -442,7 +441,7 @@ in
active = { active = {
fg = color.hexS.accentHl; fg = color.hexS.accentHl;
}; };
inactive = { }; inactive = {};
}; };
confirm = { confirm = {
@ -452,12 +451,12 @@ in
title = { title = {
fg = color.hexS.accentDim; fg = color.hexS.accentDim;
}; };
content = { }; content = {};
list = { }; list = {};
btn_yes = { btn_yes = {
reversed = true; reversed = true;
}; };
btn_no = { }; btn_no = {};
}; };
cmp = { cmp = {
@ -470,7 +469,7 @@ in
border = { border = {
fg = color.hexS.accentDim; fg = color.hexS.accentDim;
}; };
title = { }; title = {};
hovered = { hovered = {
underline = true; underline = true;
}; };
@ -553,9 +552,9 @@ in
# Prepend to override default config # Prepend to override default config
icon = { icon = {
prepend_dirs = import ./specialDirectories.nix { inherit color; }; prepend_dirs = import ./specialDirectories.nix {inherit color;};
prepend_files = import ./specialFiles.nix { inherit color; }; prepend_files = import ./specialFiles.nix {inherit color;};
prepend_exts = import ./specialExtensions.nix { inherit color; }; prepend_exts = import ./specialExtensions.nix {inherit color;};
}; };
}; };
}; };