From a865a34754b5f1fac310c18f12aa6ffa7a60b4b7 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 11 Jul 2026 15:55:20 +0100 Subject: [PATCH] fixed otter launcher and removed chafa dependancy --- modules/features/otter-launcher/config.toml | 4 ++-- modules/features/otter-launcher/default.nix | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/features/otter-launcher/config.toml b/modules/features/otter-launcher/config.toml index 6b124f4..c36d48c 100644 --- a/modules/features/otter-launcher/config.toml +++ b/modules/features/otter-launcher/config.toml @@ -22,7 +22,7 @@ place_holder = "execute" # at the input field suggestion_mode = "list" # available options: list, hint separator = """ $( \ - text=" void"; \ + text=" void"; \ printf "\u001B[0;90m$text \ $(printf -v line '%*s' \"$(( COLUMNS - $(printf "$text" | wc -m) - 3 ))\" ''; printf '%s' \"${line// /─}\")" \ )""" @@ -43,7 +43,7 @@ place_holder_color = "\u001B[30m" hint_color = "\u001B[30m" # suggestion color in hint mode # move the interface rightward or downward move_interface_right = 21 -move_interface_down = 1 +move_interface_down = 0 [[modules]] description = "programs" diff --git a/modules/features/otter-launcher/default.nix b/modules/features/otter-launcher/default.nix index b263d85..13667b9 100644 --- a/modules/features/otter-launcher/default.nix +++ b/modules/features/otter-launcher/default.nix @@ -18,9 +18,9 @@ packages = { otter-launcher = let extra-config = '' - [overlay] - overlay_cmd = "${lib.getExe pkgs.chafa} -s 20x ${./cat.png} --align=top,left" - overlay_trimmed_lines = 1 + [overlay] + overlay_cmd = "${lib.getExe pkgs.kitty} +kitten icat --fit height --align left --no-trailing-newline ${./cat.png}" + overlay_trimmed_lines = 0 ''; final-config = pkgs.writeText "config.toml" '' ${extra-config} @@ -33,7 +33,6 @@ package = inputs'.otter-launcher.packages.default; runtimePkgs = with pkgs; [ fsel - chafa bluetui ]; flags = {