config.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # Whether to enable mouse or not.
  2. mouse = true
  3. # The program to open when the `keys.message_input.editor` keymap is pressed. Set the value to `"default"` to use `$EDITOR`.
  4. editor = "default"
  5. # Whether to parse and render markdown in messages or not.
  6. markdown = true
  7. hide_blocked_users = true
  8. show_attachment_links = true
  9. # Use autocomplete_limit = 0 to disable autocompleting mentions
  10. # Note: tab completion will still work, but it won't show any list.
  11. autocomplete_limit = 20
  12. # 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.
  13. messages_limit = 50
  14. [timestamps]
  15. enabled = true
  16. # https://pkg.go.dev/time#Layout
  17. format = "3:04PM"
  18. [notifications]
  19. enabled = true
  20. # The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows.
  21. duration = 0
  22. [notifications.sound]
  23. enabled = true
  24. only_on_ping = true
  25. # How Discord sees us.
  26. # status: "online", "idle", "dnd" (Do Not Disturb), "" (invisible),
  27. # note: does not seem to work
  28. [identify]
  29. status = "online"
  30. browser = "default"
  31. browser_version = "default"
  32. user_agent = "default"
  33. # Global shortcuts
  34. # Esc: Reset message selection or close the channel selection popup.
  35. [keys]
  36. focus_guilds_tree = "Ctrl+G"
  37. focus_messages_list = "Ctrl+T"
  38. focus_message_input = "Ctrl+P"
  39. # Hide/show the guilds tree.
  40. toggle_guilds_tree = "Ctrl+B"
  41. quit = "Ctrl+C"
  42. # Log out and remove the authentication token from keyring.
  43. # Requires re-login upon restart.
  44. logout = "Ctrl+D"
  45. # Only while focusing on the guilds tree
  46. [keys.guilds_tree]
  47. select_previous = "Rune[k]"
  48. select_next = "Rune[j]"
  49. select_first = "Rune[g]"
  50. select_last = "Rune[G]"
  51. # Select the currently highlighted text-based channel or expand a guild or channel.
  52. select_current = "Enter"
  53. yank_id = "Rune[i]"
  54. collapse_parent_node = "Rune[-]"
  55. move_to_parent_node = "Rune[p]"
  56. # Only while focusing on sent messages
  57. [keys.messages_list]
  58. select_previous = "Rune[k]"
  59. select_next = "Rune[j]"
  60. select_first = "Rune[g]"
  61. select_last = "Rune[G]"
  62. # Select the message reference (reply) of the selected channel.
  63. select_reply = "Rune[s]"
  64. # Reply to the selected message.
  65. reply = "Rune[r]"
  66. # Reply (with mention) to the selected message.
  67. reply_mention = "Rune[R]"
  68. cancel = "Esc"
  69. delete = "Rune[d]"
  70. # Open the selected message's attachments or hyperlinks in the message
  71. # using the default browser application.
  72. open = "Rune[o]"
  73. # Yank (copy) the selected message's content/url/id.
  74. yank_content = "Rune[y]"
  75. yank_url = "Rune[u]"
  76. yank_id = "Rune[i]"
  77. # Only while typing a message
  78. # Alt+Enter: Insert a new line to the current text.
  79. [keys.message_input]
  80. send = "Enter"
  81. # Remove existing text or cancel reply.
  82. cancel = "Esc"
  83. # Complete usernames when mentioning
  84. tab_complete = "Tab"
  85. open_editor = "Ctrl+E"
  86. open_file_picker = "Ctrl+\\"
  87. [keys.mentions_list]
  88. up = "Up"
  89. down = "Down"
  90. # style = { foreground = "", background = "", attributes = "" or [""] }
  91. [theme.title]
  92. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  93. normal_style = { attributes = "dim" }
  94. active_style = { attributes = "bold" }
  95. [theme.border]
  96. enabled = true
  97. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  98. normal_style = { attributes = "dim" }
  99. active_style = { attributes = "bold" }
  100. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  101. normal_set = "plain"
  102. active_set = "thick"
  103. [theme.guilds_tree]
  104. auto_expand_folders = true
  105. # Give tree-like shape
  106. graphics = true
  107. graphics_color = "default"
  108. private_channel_style = { foreground = "default" }
  109. guild_style = { foreground = "default" }
  110. channel_style = { foreground = "default" }
  111. [theme.messages_list]
  112. reply_indicator = ">"
  113. forwarded_indicator = "<"
  114. author_style = { foreground = "aqua" }
  115. mention_style = { foreground = "blue" }
  116. emoji_style = { foreground = "green" }
  117. url_style = { foreground = "blue" }
  118. attachment_style = { foreground = "yellow" }
  119. [theme.mentions_list]
  120. # Note: width and height are capped to the avaliable space
  121. # Minimum width
  122. # 0 = make the list as wide as possible
  123. min_width = 20
  124. # Maximum height
  125. # 0 = make the list as tall as needed
  126. max_height = 0