config.toml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. # Whether to focus the message input automatically when a channel is selected.
  2. # Set to false to preview channels without moving focus.
  3. auto_focus = true
  4. # Whether to enable mouse or not.
  5. mouse = true
  6. # The program to open when the `message_input.editor` keybind is pressed. Set the value to `"default"` to use `$EDITOR`.
  7. editor = "default"
  8. # "default" (unknown), "online", "dnd", "idle", "invisible", "offline"
  9. status = "default"
  10. hide_blocked_users = true
  11. show_attachment_links = true
  12. # Max members to be in the mention autocomplete suggestions list
  13. # Note: Use autocomplete_limit = 0 to disable.
  14. autocomplete_limit = 20
  15. # The number of messages to fetch when a text-based channel is selected from guilds tree. The minimum and maximum value is 1 and 100, respectively.
  16. messages_limit = 50
  17. [markdown]
  18. # Whether to parse and render markdown in messages or not.
  19. enabled = true
  20. # Theme for fenced code blocks. Available themes: https://xyproto.github.io/splash/docs
  21. theme = "monokai"
  22. [help]
  23. # Show compact key modifiers in help, e.g. "^x" instead of "ctrl+x".
  24. compact_modifiers = true
  25. # [left, right]
  26. padding = [1, 1]
  27. separator = " • "
  28. [picker]
  29. width = 60
  30. height = 20
  31. [timestamps]
  32. enabled = true
  33. # https://pkg.go.dev/time#Layout
  34. format = "3:04PM"
  35. [date_separator]
  36. enabled = true
  37. # https://pkg.go.dev/time#Layout
  38. format = "January 2, 2006"
  39. # The fill character used on both sides of the date label.
  40. character = "─"
  41. [notifications]
  42. enabled = true
  43. # The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows.
  44. duration = 0
  45. [notifications.sound]
  46. enabled = true
  47. only_on_ping = true
  48. [typing_indicator]
  49. # Whether to send typing status or not.
  50. send = true
  51. # Whether to receive typing status or not.
  52. receive = true
  53. [icons]
  54. guild_category = ""
  55. guild_text = "#"
  56. guild_voice = "♪ "
  57. guild_stage_voice = "♪ "
  58. guild_announcement_thread = "a-"
  59. guild_public_thread = "› "
  60. guild_private_thread = "› "
  61. guild_announcement = "a-"
  62. guild_forum = "≡ "
  63. guild_store = "s-"
  64. # Global shortcuts
  65. # Esc: Reset message selection or close the channel selection popup.
  66. [keybinds]
  67. toggle_help = "ctrl+."
  68. focus_guilds_tree = "ctrl+g"
  69. focus_messages_list = "ctrl+t"
  70. focus_message_input = "ctrl+i"
  71. # Cycle focus between the widgets.
  72. focus_previous = "ctrl+h"
  73. focus_next = "ctrl+l"
  74. # Hide/show the guilds tree.
  75. toggle_guilds_tree = "ctrl+b"
  76. # Log out and remove the authentication token from keyring.
  77. # Requires re-login upon restart.
  78. logout = "ctrl+d"
  79. suspend = "ctrl+z"
  80. quit = "ctrl+c"
  81. [keybinds.picker]
  82. toggle = "ctrl+k"
  83. cancel = "esc"
  84. up = "ctrl+p"
  85. down = "ctrl+n"
  86. top = "home"
  87. bottom = "end"
  88. select = "enter"
  89. # Only while focusing on the guilds tree
  90. [keybinds.guilds_tree]
  91. up = "k"
  92. down = "j"
  93. top = "g"
  94. bottom = "G"
  95. # Select the currently highlighted text-based channel or expand a guild or channel.
  96. select_current = "enter"
  97. yank_id = "i"
  98. collapse_parent_node = "-"
  99. move_to_parent_node = "p"
  100. # Only while focusing on sent messages
  101. [keybinds.messages_list]
  102. select_up = "k"
  103. select_down = "j"
  104. select_top = "g"
  105. select_bottom = "G"
  106. # Scroll the messages list without changing the selection.
  107. scroll_up = "K"
  108. scroll_down = "J"
  109. scroll_top = "home"
  110. scroll_bottom = "end"
  111. # Select the message reference (reply) of the selected channel.
  112. select_reply = "s"
  113. # Reply to the selected message.
  114. reply = "R"
  115. # Reply (with mention) to the selected message.
  116. reply_mention = "r"
  117. cancel = "esc"
  118. edit = "e"
  119. delete = "D"
  120. delete_confirm = "d"
  121. # Open the selected message's attachments or hyperlinks in the message
  122. # using the default browser application.
  123. open = "o"
  124. # Yank (copy) the selected message's content/url/id.
  125. yank_content = "y"
  126. yank_url = "u"
  127. yank_id = "i"
  128. # Only while typing a message
  129. # Alt+Enter: Insert a new line to the current text.
  130. [keybinds.message_input]
  131. # paste from clipboard (supports both text and images)
  132. paste = "ctrl+v"
  133. send = "enter"
  134. # Remove existing text or cancel reply.
  135. cancel = "esc"
  136. # Complete usernames when mentioning
  137. tab_complete = "tab"
  138. undo = "ctrl+u"
  139. open_editor = "ctrl+e"
  140. open_file_picker = "ctrl+\\"
  141. [keybinds.mentions_list]
  142. up = "ctrl+p"
  143. down = "ctrl+n"
  144. top = "home"
  145. bottom = "end"
  146. # style = { foreground = "", background = "", attributes = "" or [""] }
  147. [theme.title]
  148. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  149. normal_style = { attributes = "dim" }
  150. active_style = { foreground = "green", attributes = "bold" }
  151. [theme.footer]
  152. alignment = "left"
  153. normal_style = { attributes = "dim" }
  154. active_style = { foreground = "green", attributes = "bold" }
  155. [theme.border]
  156. enabled = true
  157. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  158. normal_style = { attributes = "dim" }
  159. active_style = { foreground = "green", attributes = "bold" }
  160. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  161. normal_set = "round"
  162. active_set = "round"
  163. [theme.guilds_tree]
  164. auto_expand_folders = true
  165. # Give tree-like shape
  166. graphics = true
  167. graphics_color = "default"
  168. [theme.scroll_bar]
  169. visibility = "auto"
  170. # "minimal", "box_drawing", or "unicode"
  171. glyph_set = "unicode"
  172. track_style = { attributes = "dim" }
  173. thumb_style = {}
  174. [theme.messages_list]
  175. reply_indicator = ">"
  176. forwarded_indicator = "<"
  177. mention_style = { foreground = "blue" }
  178. emoji_style = { foreground = "green" }
  179. url_style = { foreground = "blue" }
  180. attachment_style = { foreground = "yellow" }
  181. message_style = {}
  182. selected_message_style = { attributes = "reverse" }
  183. [theme.mentions_list]
  184. # Note: width and height are capped to the avaliable space
  185. # Minimum width
  186. # 0 = make the list as wide as possible
  187. min_width = 20
  188. # Maximum height
  189. # 0 = make the list as tall as needed
  190. max_height = 0
  191. [theme.dialog]
  192. style = {}
  193. # Background style: everything else behind the dialog
  194. background_style = { attributes = "dim" }
  195. [theme.help]
  196. short_key_style = { attributes = "dim" }
  197. short_desc_style = {}
  198. full_key_style = { attributes = "dim" }
  199. full_desc_style = {}