From 904b387fa7e981e6506713cb9db85508e70ba47f Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 10 Jul 2026 21:51:49 +0100 Subject: [PATCH] fixed weird chafa behaviour --- modules/features/otter-launcher/config.toml | 4 ++-- modules/features/otter-launcher/default.nix | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/features/otter-launcher/config.toml b/modules/features/otter-launcher/config.toml index 2853a39..54bd094 100644 --- a/modules/features/otter-launcher/config.toml +++ b/modules/features/otter-launcher/config.toml @@ -9,7 +9,7 @@ cheatsheet_viewer = "less -R; clear" # command to show cheatsheet; through pipin clear_screen_after_execution = false loop_mode = false # don't quit after executing a module, useful with scratchpads; stderr is hidden in loop mode external_editor = "nvim" # if set, press ctrl+x ctrl+ee (or v in vi normal mode) to edit prompt in the specified program -delay_startup = 0 # sometimes the otter runs too fast even before the terminal window is ready; this slows it down by milliseconds; useful when chafa image is skewed +delay_startup = 1 # sometimes the otter runs too fast even before the terminal window is ready; this slows it down by milliseconds; useful when chafa image is skewed [interface] # use three quotes to write longer codes @@ -21,7 +21,7 @@ header_cmd_trimmed_lines = 0 # remove trailing lines from header_cmd output, in place_holder = "execute" # at the input field suggestion_mode = "list" # available options: list, hint footer = "" # add a line after suggestion list -suggestion_lines = 8 # 0 to disable suggestions and tab completion +suggestion_lines = 7 # 0 to disable suggestions and tab completion list_prefix = " " selection_prefix = "\u001B[31;1m " prefix_padding = 3 # format prefixes to have a uniformed width diff --git a/modules/features/otter-launcher/default.nix b/modules/features/otter-launcher/default.nix index 13c35a6..f005a3e 100644 --- a/modules/features/otter-launcher/default.nix +++ b/modules/features/otter-launcher/default.nix @@ -19,14 +19,13 @@ otter-launcher = let extra-config = '' [overlay] - overlay_cmd = """ - ${lib.getExe pkgs.chafa} -s 20x20 ${./cat.png} - """ + overlay_cmd = "${lib.getExe pkgs.chafa} -s 20x ${./cat.png}" overlay_trimmed_lines = 1 ''; final-config = pkgs.writeText "config.toml" '' - ${builtins.readFile ./config.toml} ${extra-config} + + ${builtins.readFile ./config.toml} ''; in inputs.wrappers.lib.wrapPackage ({...}: { @@ -34,6 +33,7 @@ package = inputs'.otter-launcher.packages.default; runtimePkgs = with pkgs; [ fsel + chafa bluetui ]; flags = {