Yazi: Add shell opener.

This commit is contained in:
Dmitry Voronin 2025-01-04 14:27:49 +03:00
parent b2b3546c59
commit 040c31f3ac
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 20 additions and 5 deletions

View file

@ -130,6 +130,12 @@
run = openWith "switch_install"; run = openWith "switch_install";
} }
]; ];
shell_run = [
{
desc = "Run";
run = openWith "bash";
}
];
steam_run = [ steam_run = [
{ {
desc = "Run"; desc = "Run";
@ -189,10 +195,11 @@
}; };
in in
[ [
(mkName "*.xlsx" [ "document" ])
(mkName "*.mka" [ "audio" ]) (mkName "*.mka" [ "audio" ])
(mkName "*.nsp" [ "switch_install" ]) (mkName "*.nsp" [ "switch_install" ])
(mkName "*.nsz" [ "switch_install" ]) (mkName "*.nsz" [ "switch_install" ])
(mkName "*.sh" [ "shell_run" ])
(mkName "*.xlsx" [ "document" ])
# Use `file -i file.txt` to find file mime type. # Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app. # Use `xdg-mime query default "text/plain"` to find default app.

View file

@ -3,5 +3,7 @@ let
purpose = config.module.purpose; purpose = config.module.purpose;
in in
{ {
options.module.autoupdate.enable = lib.mkEnableOption "the system auto-updates." // { default = purpose.disown; }; options.module.autoupdate.enable = lib.mkEnableOption "the system auto-updates." // {
default = purpose.disown;
};
} }

View file

@ -3,5 +3,7 @@ let
purpose = config.module.purpose; purpose = config.module.purpose;
in in
{ {
options.module.distrobox.enable = lib.mkEnableOption "the distrobox." // { default = purpose.work; }; options.module.distrobox.enable = lib.mkEnableOption "the distrobox." // {
default = purpose.work;
};
} }

View file

@ -4,7 +4,9 @@ let
in in
{ {
options.module.docker = { options.module.docker = {
enable = lib.mkEnableOption "the docker." // { default = purpose.work; }; enable = lib.mkEnableOption "the docker." // {
default = purpose.work;
};
rootless = lib.mkOption { rootless = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;

View file

@ -3,5 +3,7 @@ let
purpose = config.module.purpose; purpose = config.module.purpose;
in in
{ {
options.module.virtmanager.enable = lib.mkEnableOption "the VM support." // { default = purpose.work; }; options.module.virtmanager.enable = lib.mkEnableOption "the VM support." // {
default = purpose.work;
};
} }