From 72a91337eec613badc731be427f0ad18d257d7b4 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 11 Jul 2026 15:00:13 +0100 Subject: [PATCH] fixed otter launcher somewhat --- modules/features/otter-launcher/config.toml | 10 ++++++++-- modules/features/otter-launcher/default.nix | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/features/otter-launcher/config.toml b/modules/features/otter-launcher/config.toml index 54bd094..6b124f4 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 = 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 +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 [interface] # use three quotes to write longer codes @@ -20,6 +20,12 @@ header_cmd = "" # run a command and print stdout above the header header_cmd_trimmed_lines = 0 # remove trailing lines from header_cmd output, in case of some programs appending excessive empty lines place_holder = "execute" # at the input field suggestion_mode = "list" # available options: list, hint +separator = """ +$( \ + text=" void"; \ + printf "\u001B[0;90m$text \ + $(printf -v line '%*s' \"$(( COLUMNS - $(printf "$text" | wc -m) - 3 ))\" ''; printf '%s' \"${line// /─}\")" \ +)""" footer = "" # add a line after suggestion list suggestion_lines = 7 # 0 to disable suggestions and tab completion list_prefix = " " @@ -37,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 = 0 +move_interface_down = 1 [[modules]] description = "programs" diff --git a/modules/features/otter-launcher/default.nix b/modules/features/otter-launcher/default.nix index f005a3e..b263d85 100644 --- a/modules/features/otter-launcher/default.nix +++ b/modules/features/otter-launcher/default.nix @@ -19,7 +19,7 @@ otter-launcher = let extra-config = '' [overlay] - overlay_cmd = "${lib.getExe pkgs.chafa} -s 20x ${./cat.png}" + overlay_cmd = "${lib.getExe pkgs.chafa} -s 20x ${./cat.png} --align=top,left" overlay_trimmed_lines = 1 ''; final-config = pkgs.writeText "config.toml" ''