diff --git a/CONFIG/discordo/config.toml b/CONFIG/discordo/config.toml index aab4d45..b48fb8f 100644 --- a/CONFIG/discordo/config.toml +++ b/CONFIG/discordo/config.toml @@ -1,58 +1,144 @@ +# Whether to enable mouse or not. mouse = true -hide_blocked_users = true -messages_limit = 50 +# The program to open when the `keys.message_input.editor` keymap is pressed. Set the value to `"default"` to use `$EDITOR`. editor = "default" -timestamps = true -timestamps_format = "01-02 15:04:05 (Z07:00)" -show_attachment_links = false -[keys] - focus_guilds_tree = "Ctrl+O" - focus_messages_text = "Ctrl+P" - focus_message_input = "Ctrl+N" - toggle_guilds_tree = "Ctrl+P" - select_previous = "Rune[k]" - select_next = "Rune[j]" - select_first = "Rune[g]" - select_last = "Rune[G]" - logout = "Ctrl+Shift+D" - quit = "Ctrl+C" - [keys.guilds_tree] - select_current = "Enter" - [keys.messages_text] - select_reply = "Rune[s]" - select_pin = "Rune[p]" - reply = "Rune[r]" - reply_mention = "Rune[R]" - delete = "Rune[d]" - yank = "Rune[y]" - open = "Rune[o]" - [keys.message_input] - send = "Enter" - editor = "Ctrl+E" - cancel = "Ctrl+D" +# "default" (unknown), "online", "dnd", "idle", "invisible", "offline" +status = "default" + +# Whether to parse and render markdown in messages or not. +markdown = true +hide_blocked_users = true +show_attachment_links = true + +# Use autocomplete_limit = 0 to disable autocompleting mentions +# Note: tab completion will still work, but it won't show any list. +autocomplete_limit = 20 + +# The number of messages to fetch when a text-based channel is selected from guilds tree. The minimum and maximum value is 0 and 100, respectively. +messages_limit = 50 + +[timestamps] +enabled = true +# https://pkg.go.dev/time#Layout +format = "01-02 15:04:05 (Z07:00)" [notifications] - enabled = true - duration = 500 - [notifications.sound] - enabled = true - only_on_ping = false +enabled = true +# The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows. +duration = 0 +[notifications.sound] +enabled = true +only_on_ping = true -[theme] - border_color = "default" - border_padding = [0, 0, 1, 1] - title_color = "default" - background_color = "default" - [theme.guilds_tree] - auto_expand_folders = true - channel_color = "white" - graphics = true - guild_color = "white" - private_channel_color = "white" - [theme.messages_text] - author_color = "aqua" - content_color = "white" - emoji_color = "green" - link_color = "blue" - attachment_color = "yellow" +# Global shortcuts +# Esc: Reset message selection or close the channel selection popup. +[keys] +focus_guilds_tree = "Ctrl+G" +focus_messages_list = "Ctrl+T" +focus_message_input = "Ctrl+Space" +# Cycle focus between the widgets. +focus_previous = "Ctrl+H" +focus_next = "Ctrl+L" +# Hide/show the guilds tree. +toggle_guilds_tree = "Ctrl+B" +quit = "Ctrl+C" +# Log out and remove the authentication token from keyring. +# Requires re-login upon restart. +logout = "Ctrl+D" + +# Only while focusing on the guilds tree +[keys.guilds_tree] +select_previous = "Rune[k]" +select_next = "Rune[j]" +select_first = "Rune[g]" +select_last = "Rune[G]" +# Select the currently highlighted text-based channel or expand a guild or channel. +select_current = "Enter" +yank_id = "Rune[i]" +collapse_parent_node = "Rune[-]" +move_to_parent_node = "Rune[p]" + +# Only while focusing on sent messages +[keys.messages_list] +select_previous = "Rune[k]" +select_next = "Rune[j]" +select_first = "Rune[g]" +select_last = "Rune[G]" +# Select the message reference (reply) of the selected channel. +select_reply = "Rune[s]" +# Reply to the selected message. +reply = "Rune[r]" +# Reply (with mention) to the selected message. +reply_mention = "Rune[R]" +cancel = "Esc" +edit = "Rune[e]" +delete = "Rune[D]" +delete_confirm = "Rune[d]" +# Open the selected message's attachments or hyperlinks in the message +# using the default browser application. +open = "Rune[o]" +# Yank (copy) the selected message's content/url/id. +yank_content = "Rune[y]" +yank_url = "Rune[u]" +yank_id = "Rune[i]" + +# Only while typing a message +# Alt+Enter: Insert a new line to the current text. +[keys.message_input] +# paste from clipboard (supports both text and images) +paste = "Ctrl+V" +send = "Enter" +# Remove existing text or cancel reply. +cancel = "Esc" +# Complete usernames when mentioning +tab_complete = "Tab" + +open_editor = "Ctrl+E" +open_file_picker = "Ctrl+\\" + +[keys.mentions_list] +up = "Ctrl+P" +down = "Ctrl+N" + +# style = { foreground = "", background = "", attributes = "" or [""] } +[theme.title] +alignment = "left" # `"left"`, `"center"`, or `"right"`. + +normal_style = { attributes = "dim" } +active_style = { foreground = "green", attributes = "bold" } + +[theme.border] +enabled = true +padding = [0, 0, 1, 1] # [top, bottom, left, right] + +normal_style = { attributes = "dim" } +active_style = { foreground = "green", attributes = "bold" } + +# `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`. +normal_set = "round" +active_set = "round" + +[theme.guilds_tree] +auto_expand_folders = true +# Give tree-like shape +graphics = true +graphics_color = "default" + +[theme.messages_list] +reply_indicator = ">" +forwarded_indicator = "<" + +mention_style = { foreground = "blue" } +emoji_style = { foreground = "green" } +url_style = { foreground = "blue" } +attachment_style = { foreground = "yellow" } + +[theme.mentions_list] +# Note: width and height are capped to the avaliable space +# Minimum width +# 0 = make the list as wide as possible +min_width = 20 +# Maximum height +# 0 = make the list as tall as needed +max_height = 0