fixed otter launcher somewhat
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 = 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]
|
[interface]
|
||||||
# use three quotes to write longer codes
|
# 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
|
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
|
place_holder = "execute" # at the input field
|
||||||
suggestion_mode = "list" # available options: list, hint
|
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
|
footer = "" # add a line after suggestion list
|
||||||
suggestion_lines = 7 # 0 to disable suggestions and tab completion
|
suggestion_lines = 7 # 0 to disable suggestions and tab completion
|
||||||
list_prefix = " "
|
list_prefix = " "
|
||||||
@@ -37,7 +43,7 @@ place_holder_color = "\u001B[30m"
|
|||||||
hint_color = "\u001B[30m" # suggestion color in hint mode
|
hint_color = "\u001B[30m" # suggestion color in hint mode
|
||||||
# move the interface rightward or downward
|
# move the interface rightward or downward
|
||||||
move_interface_right = 21
|
move_interface_right = 21
|
||||||
move_interface_down = 0
|
move_interface_down = 1
|
||||||
|
|
||||||
[[modules]]
|
[[modules]]
|
||||||
description = "programs"
|
description = "programs"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
otter-launcher = let
|
otter-launcher = let
|
||||||
extra-config = ''
|
extra-config = ''
|
||||||
[overlay]
|
[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
|
overlay_trimmed_lines = 1
|
||||||
'';
|
'';
|
||||||
final-config = pkgs.writeText "config.toml" ''
|
final-config = pkgs.writeText "config.toml" ''
|
||||||
|
|||||||
Reference in New Issue
Block a user