From 73281b62d94ecf12f9db7f4a965929316fe0074a Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sat, 22 Feb 2025 11:33:03 +0100 Subject: [PATCH] yazi orphans --- home-modules/yazi.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/home-modules/yazi.nix b/home-modules/yazi.nix index 1f55cc7..c175115 100644 --- a/home-modules/yazi.nix +++ b/home-modules/yazi.nix @@ -34,8 +34,8 @@ { on = ""; run = "arrow 100%"; desc = "Move cursor down one page"; } { on = ""; run = "arrow -100%"; desc = "Move cursor up one page"; } { on = ""; run = "arrow 100%"; desc = "Move cursor down one page"; } - { on = [ "g" "g" ]; run = "arrow -99999999"; desc = "Move cursor to the top"; } - { on = [ "g" "e" ]; run = "arrow 99999999"; desc = "Move cursor to the end"; } + { on = [ "g" "g" ]; run = "arrow down"; desc = "Move cursor to the top"; } + { on = [ "g" "e" ]; run = "arrow up"; desc = "Move cursor to the end"; } { on = [ "g" "h" ]; run = "cd ~"; desc = "Go to the home directory"; } { on = [ "g" "n" ]; run = "cd ~/nix-dots"; desc = "Go to the Nix-Dotfiles directory"; } { on = [ "g" "n" ]; run = "cd /nix/store"; desc = "Go to the Nix-Store"; } @@ -205,38 +205,38 @@ { run = ''unzip "$1"''; desc = "unzip"; } ]; "image" = [ - { run = ''imv "$@"''; desc = "imv"; } - { run = ''gimp "$@"''; desc = "gimp"; } + { run = ''imv "$@"''; desc = "imv"; orphan = true; } + { run = ''gimp "$@"''; desc = "gimp"; orphan = true; } { run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$@"''; desc = "swww wallpaper"; } { run = ''exiftool "$@"; echo "Press enter to exit"; read''; desc = "View Exif Data"; } { run = ''for f in "$@"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; } ]; "svg" = [ - { run = ''inkscape "$@"''; desc = "inkscape";} - { run = ''firefox "$@"''; desc = "firefox";} + { run = ''inkscape "$@"''; desc = "inkscape"; orphan = true; } + { run = ''firefox "$@"''; desc = "firefox"; orphan = true; } ]; "font" = [ - { run = ''fontpreview "$@"''; desc = "fontpreview"; } - { run = ''fontforge "$@"''; desc = "fortforge"; } + { run = ''fontpreview "$@"''; desc = "fontpreview"; orphan = true; } + { run = ''fontforge "$@"''; desc = "fortforge"; orphan = true; } ]; "document" = [ - { run = ''zathura "$@"''; desc = "zathura"; orphan = true; } - { run = ''xournal "$@"''; desc = "xournal"; orphan = true; } - { run = ''firefox "$@"''; desc = "firefox"; } + { run = ''zathura "$@"''; desc = "zathura"; orphan = true; } + { run = ''xournal "$@"''; desc = "xournal"; orphan = true; } + { run = ''firefox "$@"''; desc = "firefox"; orphan = true; } { run = ''nxgs flip "$@"''; desc = "nxgs flip"; } { run = ''nxgs rotate "$@"''; desc = "nxgs rotate"; } { run = ''nxgs interactive-merge "$@"''; block = true; desc = "nxgs merge"; } ]; "browser" = [ - { run = ''firefox "$@"''; desc = "firefox"; } - { run = ''zen "$@"''; desc = "zen"; } - { run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"''; desc = "chromium"; } + { run = ''firefox "$@"''; desc = "firefox"; orphan = true; } + { run = ''zen "$@"''; desc = "zen"; orphan = true; } + { run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"''; desc = "chromium"; orphan = true; } { run = ''w3m "$@"''; desc = "w3m"; } { run = ''lynx "$@"''; desc = "lynx"; } ]; "office" = [ - { run = ''libreoffice "$@"''; desc = "libreoffice"; } - { run = ''libreoffice --view "$@"''; desc = "libreoffice read-only"; } + { run = ''libreoffice "$@"''; desc = "libreoffice"; orphan = true; } + { run = ''libreoffice --view "$@"''; desc = "libreoffice read-only"; orphan = true; } ]; "shell" = [ { run = ''bash -c "$@"''; desc = "bash -c"; }