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
|
clear_screen_after_execution = false
|
||||||
loop_mode = false # don't quit after executing a module, useful with scratchpads; stderr is hidden in loop mode
|
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
|
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]
|
[interface]
|
||||||
# use three quotes to write longer codes
|
# 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
|
place_holder = "execute" # at the input field
|
||||||
suggestion_mode = "list" # available options: list, hint
|
suggestion_mode = "list" # available options: list, hint
|
||||||
footer = "" # add a line after suggestion list
|
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 = " "
|
list_prefix = " "
|
||||||
selection_prefix = "\u001B[31;1m "
|
selection_prefix = "\u001B[31;1m "
|
||||||
prefix_padding = 3 # format prefixes to have a uniformed width
|
prefix_padding = 3 # format prefixes to have a uniformed width
|
||||||
|
|||||||
@@ -19,14 +19,13 @@
|
|||||||
otter-launcher = let
|
otter-launcher = let
|
||||||
extra-config = ''
|
extra-config = ''
|
||||||
[overlay]
|
[overlay]
|
||||||
overlay_cmd = """
|
overlay_cmd = "${lib.getExe pkgs.chafa} -s 20x ${./cat.png}"
|
||||||
${lib.getExe pkgs.chafa} -s 20x20 ${./cat.png}
|
|
||||||
"""
|
|
||||||
overlay_trimmed_lines = 1
|
overlay_trimmed_lines = 1
|
||||||
'';
|
'';
|
||||||
final-config = pkgs.writeText "config.toml" ''
|
final-config = pkgs.writeText "config.toml" ''
|
||||||
${builtins.readFile ./config.toml}
|
|
||||||
${extra-config}
|
${extra-config}
|
||||||
|
|
||||||
|
${builtins.readFile ./config.toml}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
inputs.wrappers.lib.wrapPackage ({...}: {
|
inputs.wrappers.lib.wrapPackage ({...}: {
|
||||||
@@ -34,6 +33,7 @@
|
|||||||
package = inputs'.otter-launcher.packages.default;
|
package = inputs'.otter-launcher.packages.default;
|
||||||
runtimePkgs = with pkgs; [
|
runtimePkgs = with pkgs; [
|
||||||
fsel
|
fsel
|
||||||
|
chafa
|
||||||
bluetui
|
bluetui
|
||||||
];
|
];
|
||||||
flags = {
|
flags = {
|
||||||
|
|||||||
Reference in New Issue
Block a user