diff --git a/home/config/yazi/keymap.toml b/home/config/yazi/keymap.toml new file mode 100644 index 0000000..a49fb6c --- /dev/null +++ b/home/config/yazi/keymap.toml @@ -0,0 +1,6 @@ + +[manager] + +append_keymap = [{ on = [""], run = ''' + shell 'ripdrag "$@" -x 2>/dev/null &' --confirm +''' }] diff --git a/home/user/config.nix b/home/user/config.nix index 05f5bc6..cf8ba5a 100644 --- a/home/user/config.nix +++ b/home/user/config.nix @@ -1,5 +1,6 @@ let configDir = ../config; + browser = "firefox-nightly.desktop"; in { home.file = { @@ -39,4 +40,12 @@ in source = "${configDir}/yazi"; }; }; + + xdg.mimeApps = { + enable = true; + defaultApplications = { + "text/html" = browser; + "application/pdf" = browser; + }; + }; } diff --git a/home/user/hypr/bind.nix b/home/user/hypr/bind.nix index 03c7936..3d38a46 100644 --- a/home/user/hypr/bind.nix +++ b/home/user/hypr/bind.nix @@ -5,7 +5,8 @@ let browser = "${prefix} ${firefox}"; noOffloadBrowser = "${firefox} -P noOffload"; terminal = "${prefix} ghostty"; - filemanager = "nemo"; + # filemanager = "nemo"; + filemanager = "${terminal} -e yazi"; scripts = "~/.config/scripts"; # freezeShot = "--freeze"; diff --git a/home/user/nvim.nix b/home/user/nvim.nix index a90ea84..1acd247 100644 --- a/home/user/nvim.nix +++ b/home/user/nvim.nix @@ -219,7 +219,7 @@ { import = "lazyvim.plugins.extras.lang.yaml" }, { import = "lazyvim.plugins.extras.linting.eslint" }, { 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-indentscope" }, { import = "lazyvim.plugins.extras.ui.smear-cursor" }, @@ -270,14 +270,14 @@ formatting = { command = { "nixfmt" }, }, - -- options = { + options = { -- nixos = { -- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.${device-name}.options', -- }, - -- home_manager = { - -- expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options', - -- } - -- } + home_manager = { + expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options', + } + } } } } diff --git a/home/user/packages.nix b/home/user/packages.nix index 4701283..8108faf 100644 --- a/home/user/packages.nix +++ b/home/user/packages.nix @@ -37,7 +37,6 @@ in # Dev stuff gcc go - nodePackages.pnpm (python3.withPackages (python-pkgs: [ python-pkgs.pip python-pkgs.requests @@ -46,6 +45,7 @@ in pkgsCross.mingwW64.stdenv.cc pkgsCross.mingwW64.windows.pthreads postman + ripdrag # Work stuff libreoffice-qt diff --git a/home/user/shell.nix b/home/user/shell.nix index 72b18a8..fe8ff5b 100644 --- a/home/user/shell.nix +++ b/home/user/shell.nix @@ -6,9 +6,7 @@ in programs = { fish = { enable = true; - interactiveShellInit = '' - set fish_greeting # Disable greeting - + shellInit = '' # Yazi function y set tmp (mktemp -t "yazi-cwd.XXXXXX") @@ -19,6 +17,9 @@ in rm -f -- "$tmp" end ''; + interactiveShellInit = '' + set fish_greeting # Disable greeting + ''; plugins = [ { name = "grc";