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
|
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 = 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]
|
[interface]
|
||||||
# use three quotes to write longer codes
|
# use three quotes to write longer codes
|
||||||
header = """
|
header = """
|
||||||
\x1b[1;38;2;203;166;247m$USER@nixos\x1b[0m
|
\x1b[1;38;2;203;166;247m$USER@nixos\x1b[0m
|
||||||
"""
|
"""
|
||||||
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
|
placeholder = "execute" # at the input field
|
||||||
suggestion_mode = "list" # available options: list, hint
|
suggestion_mode = "list" # available options: list, hint
|
||||||
separator = """
|
suggestion_position = "bottom"
|
||||||
$( \
|
seperator = true
|
||||||
text=" "; \
|
|
||||||
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
|
|
||||||
list_prefix = " "
|
|
||||||
selection_prefix = "\u001B[31;1m "
|
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
|
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
|
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
|
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"
|
description_color = "\u001B[39m"
|
||||||
place_holder_color = "\u001B[30m"
|
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
|
# Pad interface
|
||||||
move_interface_right = 21
|
padding = [0, 0, 0, 2]
|
||||||
move_interface_down = 0
|
|
||||||
|
|
||||||
[[modules]]
|
[[modules]]
|
||||||
description = "programs"
|
description = "programs"
|
||||||
|
|||||||
@@ -18,9 +18,12 @@
|
|||||||
packages = {
|
packages = {
|
||||||
otter-launcher = let
|
otter-launcher = let
|
||||||
extra-config = ''
|
extra-config = ''
|
||||||
[overlay]
|
[image]
|
||||||
overlay_cmd = "${lib.getExe pkgs.kitty} +kitten icat --fit height --align left --no-trailing-newline ${./cat.png}"
|
format = "kitty"
|
||||||
overlay_trimmed_lines = 0
|
path = "${./cat.png}"
|
||||||
|
width = 20
|
||||||
|
position = "left"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
final-config = pkgs.writeText "config.toml" ''
|
final-config = pkgs.writeText "config.toml" ''
|
||||||
${extra-config}
|
${extra-config}
|
||||||
|
|||||||
Reference in New Issue
Block a user