updated otter-launcher syntax
This commit is contained in:
@@ -10,27 +10,20 @@ 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
|
||||
height = 11
|
||||
|
||||
[interface]
|
||||
# use three quotes to write longer codes
|
||||
header = """
|
||||
\x1b[1;38;2;203;166;247m$USER@nixos\x1b[0m
|
||||
"""
|
||||
header_cmd = '' # run a command and print stdout above the header
|
||||
\x1b[1;38;2;203;166;247m$USER@nixos\x1b[0m
|
||||
"""
|
||||
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
|
||||
placeholder = "execute" # at the input field
|
||||
suggestion_mode = "list" # available options: list, hint
|
||||
separator = """
|
||||
$( \
|
||||
text=" "; \
|
||||
printf "\u001B[0;90m$text \
|
||||
$(printf -v line '%*s' \"$(( COLUMNS - $(printf "$text" | wc -m) - 3 ))\" ''; printf '%s' \"${line// /─}\")" \
|
||||
)"""
|
||||
suggestion_position = "bottom"
|
||||
seperator = true
|
||||
footer = "" # add a line after suggestion list
|
||||
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
|
||||
default_module_message = " \u001B[33mlaunch\u001B[0m app" # shown when the default module is in use
|
||||
empty_module_message = "" # shown when the empty module is in use
|
||||
customized_list_order = false # false to list modules alphabetically; true to list as per the configured order in the below [[modules]] section
|
||||
@@ -41,9 +34,8 @@ prefix_color = "\u001B[33m"
|
||||
description_color = "\u001B[39m"
|
||||
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
|
||||
# Pad interface
|
||||
padding = [0, 0, 0, 2]
|
||||
|
||||
[[modules]]
|
||||
description = "programs"
|
||||
|
||||
@@ -18,9 +18,12 @@
|
||||
packages = {
|
||||
otter-launcher = let
|
||||
extra-config = ''
|
||||
[overlay]
|
||||
overlay_cmd = "${lib.getExe pkgs.kitty} +kitten icat --fit height --align left --no-trailing-newline ${./cat.png}"
|
||||
overlay_trimmed_lines = 0
|
||||
[image]
|
||||
format = "kitty"
|
||||
path = "${./cat.png}"
|
||||
width = 20
|
||||
position = "left"
|
||||
|
||||
'';
|
||||
final-config = pkgs.writeText "config.toml" ''
|
||||
${extra-config}
|
||||
|
||||
Reference in New Issue
Block a user