From 1e20d645eb63b6d2c4f7e042c740d9d3029ee57e Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Wed, 3 Dec 2025 14:13:17 +0100 Subject: [PATCH] 25.11 fixes --- home-modules/hyprland.nix | 36 ++++++++++++-------- home-modules/yazi.nix | 70 +++++++++++++++++++-------------------- 2 files changed, 56 insertions(+), 50 deletions(-) diff --git a/home-modules/hyprland.nix b/home-modules/hyprland.nix index 127f811..7569512 100644 --- a/home-modules/hyprland.nix +++ b/home-modules/hyprland.nix @@ -185,19 +185,27 @@ in { ]; }; - gestures = { - workspace_swipe = true; - workspace_swipe_fingers = "4"; - workspace_swipe_distance = "300"; - workspace_swipe_invert = true; - workspace_swipe_min_speed_to_force = "30"; - workspace_swipe_cancel_ratio = "0.5"; - workspace_swipe_create_new = false; - workspace_swipe_direction_lock = false; - workspace_swipe_direction_lock_threshold = "10"; - workspace_swipe_forever = true; - workspace_swipe_use_r = false; - }; + # gestures = { + # workspace_swipe = true; + # workspace_swipe_fingers = "4"; + # workspace_swipe_distance = "300"; + # workspace_swipe_invert = true; + # workspace_swipe_min_speed_to_force = "30"; + # workspace_swipe_cancel_ratio = "0.5"; + # workspace_swipe_create_new = false; + # workspace_swipe_direction_lock = false; + # workspace_swipe_direction_lock_threshold = "10"; + # workspace_swipe_forever = true; + # workspace_swipe_use_r = false; + # }; + + + gesture = [ + "4, horizontal, workspace" + # "3, down, mod: ALT, close" + # "3, up, mod: SUPER, scale: 1.5, fullscreen" + # "3, left, scale: 1.5, float" + ]; dwindle = { preserve_split = true; # you probably want this @@ -278,7 +286,7 @@ in { "dimaround, title:^(terminal-file-picker)$" "center, title:^(terminal-file-picker)$" "size 80% 80%, title:^(terminal-file-picker)$" - "size: 30% 30%, initialTitle:^(Select Calendar)$" + "size 30% 30%, initialTitle:^(Select Calendar)$" ]; diff --git a/home-modules/yazi.nix b/home-modules/yazi.nix index aa559b6..a9fdc07 100644 --- a/home-modules/yazi.nix +++ b/home-modules/yazi.nix @@ -206,64 +206,62 @@ in { }; opener = { "edit" = [ - { run = ''hx "$0" "$@"''; desc = "Helix"; block = true; } - { run = ''codium "$0" "$@"''; desc = "VS Code"; orphan = true; } - { run = ''antigravity "$0" "$0"''; desc = "Antigravity"; orphan = true; } - { run = ''cat "$0" "$@" | wl-copy''; desc = "Copy Contents"; } + { run = ''hx "$@"''; desc = "Helix"; block = true; } + { run = ''codium "$@"''; desc = "VS Code"; orphan = true; } + { run = ''cat "$@" | wl-copy''; desc = "Copy Contents"; } ]; "play" = [ - { run = ''mpv "$0" "$@"''; desc = "mpv"; orphan = true; } - { run = ''mpv --vf=negate "$0" "$@"''; desc = "mpv inverted"; orphan = true; } - { run = ''mediainfo "$0"; echo "Press enter to return to yazi"; read''; block = true; desc = "Show mediainfo"; } + { run = ''mpv "$@"''; desc = "MPV"; orphan = true; } + { run = ''mpv --vf=negate "$@"''; desc = "MPV inverted"; orphan = true; } + { run = ''mediainfo "$1"; echo "Press enter to return to yazi"; read''; block = true; desc = "Show mediainfo"; } ]; "archive" = [ - { run = ''unar "$0" "$@"''; desc = "Extract here"; } - { run = ''tar -x "$0" "$@"''; desc = "tar -x"; } - { run = ''unzip "$0" "$@"''; desc = "unzip"; } + { run = ''unar "$@"''; desc = "Extract here"; } + { run = ''tar -x "$@"''; desc = "tar -x"; } + { run = ''unzip "$@"''; desc = "unzip"; } ]; "image" = [ - { run = ''imv "$0" "$@"''; desc = "imv"; orphan = true; } - { run = ''gimp "$0" "$@"''; desc = "gimp"; orphan = true; } - { run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$0"''; desc = "swww wallpaper"; } - { run = ''exiftool "$0"; echo "Press enter to return to yazi"; read''; desc = "View Exif Data"; } - { run = ''for f in "$0"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; } + { 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 "$1"''; desc = "swww wallpaper"; } + { run = ''exiftool "$1"; echo "Press enter to return to yazi"; read''; desc = "View Exif Data"; } + { run = ''for f in "$1"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; } ]; "svg" = [ - { run = ''inkscape "$0" "$@"''; desc = "inkscape"; orphan = true; } - { run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; } + { run = ''inkscape "$@"''; desc = "Inkscape"; orphan = true; } + { run = ''firefox "$@"''; desc = "Firefox"; orphan = true; } ]; "font" = [ - { run = ''fontpreview "$0" "$@"''; desc = "fontpreview"; orphan = true; } - { run = ''fontforge "$0" "$@"''; desc = "fortforge"; orphan = true; } + { run = ''fontpreview "$@"''; desc = "Fontpreview"; orphan = true; } + { run = ''fontforge "$@"''; desc = "Fortforge"; orphan = true; } ]; "document" = [ - { run = ''zathura "$0" "$@"''; desc = "zathura"; orphan = true; } - { run = ''xournal "$0" "$@"''; desc = "xournal"; orphan = true; } - { run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; } - { run = ''nxgs flip "$0" "$@"''; desc = "nxgs flip"; } - { run = ''nxgs rotate "$0" "$@"''; desc = "nxgs rotate"; } - { run = ''nxgs interactive-merge "$0" "$@"''; block = true; desc = "nxgs merge"; } + { run = ''zathura "$@"''; desc = "Zathura"; 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 "$0" "$@"''; desc = "firefox"; orphan = true; } - { run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$0" "$@"''; desc = "chromium"; orphan = true; } - { run = ''w3m "$0" "$@"''; desc = "w3m"; } - { run = ''lynx "$0" "$@"''; desc = "lynx"; } + { run = ''firefox "$@"''; desc = "Firefox"; 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 "$0" "$@"''; desc = "libreoffice"; orphan = true; } - { run = ''libreoffice --view "$0" "$@"''; desc = "libreoffice read-only"; orphan = true; } + { run = ''libreoffice "$@"''; desc = "LibreOffice"; orphan = true; } + { run = ''libreoffice --view "$@"''; desc = "LibreOffice read-only"; orphan = true; } ]; "shell" = [ - { run = ''bash -c "$0"; echo "Press enter to return to yazi"; read''; desc = "bash -c"; } - { run = ''fish -c "$0"; echo "Press enter to return to yazi"; read''; desc = "fish -c"; } - { run = ''sh -c "$0"; echo "Press enter to return to yazi"; read''; desc = "sh -c"; } + { run = ''bash -c "$1"; echo "Press enter to return to yazi"; read''; desc = "bash -c"; } + { run = ''fish -c "$1"; echo "Press enter to return to yazi"; read''; desc = "fish -c"; } + { run = ''sh -c "$1"; echo "Press enter to return to yazi"; read''; desc = "sh -c"; } ]; "python" = [ - { run = ''python "$@"; echo "Press enter to return to yazi"; read''; desc = "python"; block = true; } + { run = ''python "$@"; echo "Press enter to return to yazi"; read''; desc = "Python"; block = true; } ]; "directory" = [ - { run = ''lazygit "$0"''; desc = "lazygit"; } + { run = ''lazygit "$1"''; desc = "LazyGit"; } ]; }; open.rules = [