feat: change log panel size, closes #50
This commit is contained in:
@@ -32,7 +32,7 @@ timezone = "Etc/UTC"
|
||||
|
||||
# Display the timestamp in a custom format, if given option is invalid, it will default to %Y-%m-%dT%H:%M:%S.%8f -> 2025-02-18T12:34:56.012345678Z
|
||||
# *Should* accept any valid strftime string up to 32 chars, see https://strftime.org/
|
||||
timestamp_format="%Y-%m-%dT%H:%M:%S.%8f"
|
||||
timestamp_format = "%Y-%m-%dT%H:%M:%S.%8f"
|
||||
|
||||
# Directory for saving exported logs, defaults to `$HOME`, this is automatically *correctly* calculated for Linux, Mac, and Windows
|
||||
# save_dir = "$HOME"
|
||||
@@ -40,6 +40,9 @@ timestamp_format="%Y-%m-%dT%H:%M:%S.%8f"
|
||||
# Force use of docker cli when execing into containers, honestly mostly pointless
|
||||
use_cli = false
|
||||
|
||||
# Show the logs section - this can be changed during operation with the container_height_decrease / container_height_increase keys
|
||||
show_logs = true
|
||||
|
||||
#################
|
||||
# Custom Keymap #
|
||||
#################
|
||||
@@ -56,52 +59,57 @@ use_cli = false
|
||||
|
||||
[keymap]
|
||||
# Clear any popup boxes, filter panel, or help panel
|
||||
clear=["c", "esc"]
|
||||
clear = ["c", "esc"]
|
||||
# Cancel delete - clear also works here
|
||||
delete_deny=["n"]
|
||||
delete_deny = ["n"]
|
||||
# Confirm Delete
|
||||
delete_confirm=["y"]
|
||||
delete_confirm = ["y"]
|
||||
# Exec into the selected container
|
||||
exec=["e"]
|
||||
exec = ["e"]
|
||||
# Enter filter mode
|
||||
filter_mode=["/", "F1"]
|
||||
filter_mode = ["/", "F1"]
|
||||
# Quit at anytime
|
||||
quit = ["q"]
|
||||
# Save logs of selected container to file on disk
|
||||
save_logs=["s"]
|
||||
save_logs = ["s"]
|
||||
# scroll down a list by many
|
||||
scroll_down_many=["pagedown"]
|
||||
scroll_down_many = ["pagedown"]
|
||||
# scroll down a list by one item
|
||||
scroll_down_one=["down", "j"]
|
||||
scroll_down_one = ["down", "j"]
|
||||
# scroll down to the end of a list
|
||||
scroll_end=["end"]
|
||||
scroll_end = ["end"]
|
||||
# scroll up to the start of a list
|
||||
scroll_start=["home"]
|
||||
scroll_start = ["home"]
|
||||
# scroll up a list by many
|
||||
scroll_up_many=["pageup"]
|
||||
scroll_up_many = ["pageup"]
|
||||
# scroll up a list by one item
|
||||
scroll_up_one=["up", "k"]
|
||||
scroll_up_one = ["up", "k"]
|
||||
# Select next panel
|
||||
select_next_panel=["tab"]
|
||||
select_next_panel = ["tab"]
|
||||
# Select previous panel
|
||||
select_previous_panel=["backtab"]
|
||||
select_previous_panel = ["backtab"]
|
||||
# Sort the containers based on specific column
|
||||
sort_by_name=["1"]
|
||||
sort_by_state=["2"]
|
||||
sort_by_status=["3"]
|
||||
sort_by_cpu=["4"]
|
||||
sort_by_memory=["5"]
|
||||
sort_by_id=["6"]
|
||||
sort_by_image=["7"]
|
||||
sort_by_rx=["8"]
|
||||
sort_by_tx=["9"]
|
||||
sort_by_name = ["1"]
|
||||
sort_by_state = ["2"]
|
||||
sort_by_status = ["3"]
|
||||
sort_by_cpu = ["4"]
|
||||
sort_by_memory = ["5"]
|
||||
sort_by_id = ["6"]
|
||||
sort_by_image = ["7"]
|
||||
sort_by_rx = ["8"]
|
||||
sort_by_tx = ["9"]
|
||||
# Reset the sorted containers
|
||||
sort_reset=["0"]
|
||||
sort_reset = ["0"]
|
||||
# Toggle the help panel
|
||||
toggle_help=["h"]
|
||||
toggle_help = ["h"]
|
||||
# Toggle mouse capture
|
||||
toggle_mouse_capture=["m"]
|
||||
|
||||
toggle_mouse_capture = ["m"]
|
||||
# Reduce the height of the logs list section
|
||||
log_section_height_decrease = ["-"]
|
||||
# Increase the height of the logs list section
|
||||
log_section_height_increase = ["+"]
|
||||
# Toggle visibility of the log section
|
||||
log_section_toggle = ["\\"]
|
||||
|
||||
#################
|
||||
# Custom Colors #
|
||||
@@ -119,7 +127,7 @@ toggle_mouse_capture=["m"]
|
||||
# Background color of the entire line
|
||||
background = "magenta"
|
||||
# Animated loading icon at the start of the bar
|
||||
loading_spinner="white"
|
||||
loading_spinner = "white"
|
||||
# Text color
|
||||
text = "black"
|
||||
# Text color of a selected header
|
||||
@@ -128,137 +136,136 @@ text_selected = "gray"
|
||||
# The borders around the selectable panels - Containers, Commands, Logs
|
||||
[colors.borders]
|
||||
# Border when selected
|
||||
selected="lightcyan"
|
||||
selected = "lightcyan"
|
||||
# Border when not selected
|
||||
unselected="grey"
|
||||
unselected = "grey"
|
||||
|
||||
# The containers sections, in the future more color customization options should be made available in this section
|
||||
[colors.containers]
|
||||
# The icon use to illustrate which container is currently selected - at the moment the TUI library, ratatui, doesn't seem allow changing the color of the highlight symbol
|
||||
icon="white"
|
||||
icon = "white"
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# At the moment, this will only change the color of the name, id, and image columns
|
||||
text="blue"
|
||||
text = "blue"
|
||||
# Text color of the RX column
|
||||
text_rx="#FFE9C1"
|
||||
text_rx = "#FFE9C1"
|
||||
# Text color of the TX column
|
||||
text_tx="#CD8C8C"
|
||||
text_tx = "#CD8C8C"
|
||||
|
||||
# The logs panel, will only be applied if color_logs is false
|
||||
[colors.logs]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# text color
|
||||
text="reset"
|
||||
text = "reset"
|
||||
|
||||
# Each state of a container has a color, which is used in multiple places, i.e. chart titles, state/status/cpu/memory columns in the container section
|
||||
[colors.container_state]
|
||||
dead="red"
|
||||
exited="red"
|
||||
dead = "red"
|
||||
exited = "red"
|
||||
paused = "yellow"
|
||||
removing ="lightred"
|
||||
restarting ="lightgreen"
|
||||
running_healthy ="green"
|
||||
running_unhealthy="#FFB224"
|
||||
unknown="red"
|
||||
removing = "lightred"
|
||||
restarting = "lightgreen"
|
||||
running_healthy = "green"
|
||||
running_unhealthy = "#FFB224"
|
||||
unknown = "red"
|
||||
|
||||
# The filter panel
|
||||
[colors.filter]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# color of text
|
||||
text="gray"
|
||||
text = "gray"
|
||||
# background color of the selected filter by item (Name/Image/Status/All)
|
||||
selected_filter_background="gray"
|
||||
selected_filter_background = "gray"
|
||||
# text color of the selected filter by item (Name/Image/Status/All)
|
||||
selected_filter_text="black"
|
||||
selected_filter_text = "black"
|
||||
# Highlighted text color
|
||||
highlight="magenta"
|
||||
|
||||
highlight = "magenta"
|
||||
|
||||
# The color the of Docker commands available for each container
|
||||
[colors.commands]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
pause="yellow"
|
||||
restart="magenta"
|
||||
pause = "yellow"
|
||||
restart = "magenta"
|
||||
stop = "red"
|
||||
delete ="gray"
|
||||
resume ="blue"
|
||||
start ="green"
|
||||
delete = "gray"
|
||||
resume = "blue"
|
||||
start = "green"
|
||||
|
||||
# The cpu chart
|
||||
[colors.chart_cpu]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# Border color
|
||||
border="white"
|
||||
border = "white"
|
||||
# Chart title - only whilst container is running, paused & stopped colors not yet customizable - or could just use state color?
|
||||
title="green"
|
||||
title = "green"
|
||||
# Maximum CPU percentage - again paused & stopped colors not yet customizable
|
||||
max="#FFB224"
|
||||
max = "#FFB224"
|
||||
# Points on the chart - again paused & stopped colors not yet customizable
|
||||
points="magenta"
|
||||
points = "magenta"
|
||||
# The charts y-axis
|
||||
y_axis="white"
|
||||
y_axis = "white"
|
||||
|
||||
# The memory chart
|
||||
[colors.chart_memory]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# Border color
|
||||
border="white"
|
||||
border = "white"
|
||||
# Chart title - only whilst container is running, paused & stopped will use colors.container_state
|
||||
title="green"
|
||||
title = "green"
|
||||
# Maximum memory use - again paused & stopped will use colors.container_state
|
||||
max="#FFB224"
|
||||
max = "#FFB224"
|
||||
# Points on the chart - again paused & stopped will use colors.container_state
|
||||
points="cyan"
|
||||
points = "cyan"
|
||||
# The charts y-axis
|
||||
y_axis="white"
|
||||
y_axis = "white"
|
||||
|
||||
# The ports chart
|
||||
[colors.chart_ports]
|
||||
# Background color of panel
|
||||
background = "reset"
|
||||
# Border color
|
||||
border="white"
|
||||
border = "white"
|
||||
# Chart title - only whilst container is running, paused & stopped will use colors.container_state
|
||||
title="green"
|
||||
title = "green"
|
||||
# Private/Public/IP headings
|
||||
headings="yellow"
|
||||
headings = "yellow"
|
||||
# Ports & IP listing text
|
||||
text="white"
|
||||
text = "white"
|
||||
|
||||
# The help popup
|
||||
[colors.popup_help]
|
||||
# Background color
|
||||
background="magenta"
|
||||
background = "magenta"
|
||||
# Text color
|
||||
text="black"
|
||||
text = "black"
|
||||
# Highlighted text color
|
||||
text_highlight="white"
|
||||
text_highlight = "white"
|
||||
|
||||
# The info popup - used to display small messages - such as saving logs to disk, or change of mouse capture settings
|
||||
[colors.popup_info]
|
||||
# Background color
|
||||
background="blue"
|
||||
background = "blue"
|
||||
# Text color
|
||||
text="white"
|
||||
text = "white"
|
||||
|
||||
# The delete popup - used to display a confirmation warning when about to delete a container
|
||||
[colors.popup_delete]
|
||||
# Background color
|
||||
background="white"
|
||||
background = "white"
|
||||
# Text color
|
||||
text="black"
|
||||
text = "black"
|
||||
# Highlighted text color
|
||||
text_highlight="red"
|
||||
text_highlight = "red"
|
||||
|
||||
# The error popup - hopefully you'll never have to see this
|
||||
[colors.popup_error]
|
||||
# Background color
|
||||
background="red"
|
||||
background = "red"
|
||||
# Text color
|
||||
text="white"
|
||||
text = "white"
|
||||
|
||||
Reference in New Issue
Block a user