feat: use yazi as file manager
This commit is contained in:
parent
3049173514
commit
2a73c71067
6 changed files with 28 additions and 11 deletions
6
home/config/yazi/keymap.toml
Normal file
6
home/config/yazi/keymap.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
[manager]
|
||||||
|
|
||||||
|
append_keymap = [{ on = ["<C-n>"], run = '''
|
||||||
|
shell 'ripdrag "$@" -x 2>/dev/null &' --confirm
|
||||||
|
''' }]
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
let
|
let
|
||||||
configDir = ../config;
|
configDir = ../config;
|
||||||
|
browser = "firefox-nightly.desktop";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
@ -39,4 +40,12 @@ in
|
||||||
source = "${configDir}/yazi";
|
source = "${configDir}/yazi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"text/html" = browser;
|
||||||
|
"application/pdf" = browser;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ let
|
||||||
browser = "${prefix} ${firefox}";
|
browser = "${prefix} ${firefox}";
|
||||||
noOffloadBrowser = "${firefox} -P noOffload";
|
noOffloadBrowser = "${firefox} -P noOffload";
|
||||||
terminal = "${prefix} ghostty";
|
terminal = "${prefix} ghostty";
|
||||||
filemanager = "nemo";
|
# filemanager = "nemo";
|
||||||
|
filemanager = "${terminal} -e yazi";
|
||||||
scripts = "~/.config/scripts";
|
scripts = "~/.config/scripts";
|
||||||
|
|
||||||
# freezeShot = "--freeze";
|
# freezeShot = "--freeze";
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
{ import = "lazyvim.plugins.extras.linting.eslint" },
|
{ import = "lazyvim.plugins.extras.linting.eslint" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.alpha" },
|
{ import = "lazyvim.plugins.extras.ui.alpha" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.edgy" },
|
-- { import = "lazyvim.plugins.extras.ui.edgy" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
|
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.smear-cursor" },
|
{ import = "lazyvim.plugins.extras.ui.smear-cursor" },
|
||||||
|
|
@ -270,14 +270,14 @@
|
||||||
formatting = {
|
formatting = {
|
||||||
command = { "nixfmt" },
|
command = { "nixfmt" },
|
||||||
},
|
},
|
||||||
-- options = {
|
options = {
|
||||||
-- nixos = {
|
-- nixos = {
|
||||||
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.${device-name}.options',
|
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.${device-name}.options',
|
||||||
-- },
|
-- },
|
||||||
-- home_manager = {
|
home_manager = {
|
||||||
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options',
|
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options',
|
||||||
-- }
|
}
|
||||||
-- }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ in
|
||||||
# Dev stuff
|
# Dev stuff
|
||||||
gcc
|
gcc
|
||||||
go
|
go
|
||||||
nodePackages.pnpm
|
|
||||||
(python3.withPackages (python-pkgs: [
|
(python3.withPackages (python-pkgs: [
|
||||||
python-pkgs.pip
|
python-pkgs.pip
|
||||||
python-pkgs.requests
|
python-pkgs.requests
|
||||||
|
|
@ -46,6 +45,7 @@ in
|
||||||
pkgsCross.mingwW64.stdenv.cc
|
pkgsCross.mingwW64.stdenv.cc
|
||||||
pkgsCross.mingwW64.windows.pthreads
|
pkgsCross.mingwW64.windows.pthreads
|
||||||
postman
|
postman
|
||||||
|
ripdrag
|
||||||
|
|
||||||
# Work stuff
|
# Work stuff
|
||||||
libreoffice-qt
|
libreoffice-qt
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,7 @@ in
|
||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interactiveShellInit = ''
|
shellInit = ''
|
||||||
set fish_greeting # Disable greeting
|
|
||||||
|
|
||||||
# Yazi
|
# Yazi
|
||||||
function y
|
function y
|
||||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||||
|
|
@ -19,6 +17,9 @@ in
|
||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
interactiveShellInit = ''
|
||||||
|
set fish_greeting # Disable greeting
|
||||||
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "grc";
|
name = "grc";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue