fixed weird chafa behaviour
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user