config.toml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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 = 80
  30. height = 25
  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. [sidebar.markers]
  54. expanded = "▾ "
  55. collapsed = "▸ "
  56. leaf = ""
  57. [icons]
  58. guild_category = ""
  59. guild_text = "#"
  60. guild_voice = "♪ "
  61. guild_stage_voice = "♪ "
  62. guild_announcement_thread = "a-"
  63. guild_public_thread = "› "
  64. guild_private_thread = "› "
  65. guild_announcement = "a-"
  66. guild_forum = "≡ "
  67. guild_store = "s-"
  68. # Global shortcuts
  69. # Esc: Reset message selection or close the channel selection popup.
  70. [keybinds]
  71. toggle_help = "ctrl+."
  72. focus_guilds_tree = "ctrl+g"
  73. focus_messages_list = "ctrl+t"
  74. focus_message_input = "ctrl+i"
  75. # Cycle focus between the widgets.
  76. focus_previous = "ctrl+h"
  77. focus_next = "ctrl+l"
  78. # Hide/show the guilds tree.
  79. toggle_guilds_tree = "ctrl+b"
  80. # Log out and remove the authentication token from keyring.
  81. # Requires re-login upon restart.
  82. logout = "ctrl+d"
  83. suspend = "ctrl+z"
  84. quit = "ctrl+c"
  85. [keybinds.picker]
  86. toggle = "ctrl+k"
  87. cancel = "esc"
  88. up = "ctrl+p"
  89. down = "ctrl+n"
  90. top = "home"
  91. bottom = "end"
  92. select = "enter"
  93. # Only while focusing on the guilds tree
  94. [keybinds.guilds_tree]
  95. up = "k"
  96. down = "j"
  97. top = "g"
  98. bottom = "G"
  99. # Select the currently highlighted text-based channel or expand a guild or channel.
  100. select_current = "enter"
  101. yank_id = "i"
  102. collapse_parent_node = "-"
  103. move_to_parent_node = "p"
  104. # Only while focusing on sent messages
  105. [keybinds.messages_list]
  106. select_up = "k"
  107. select_down = "j"
  108. select_top = "g"
  109. select_bottom = "G"
  110. # Scroll the messages list without changing the selection.
  111. scroll_up = "K"
  112. scroll_down = "J"
  113. scroll_top = "home"
  114. scroll_bottom = "end"
  115. # Select the message reference (reply) of the selected channel.
  116. select_reply = "s"
  117. # Reply to the selected message.
  118. reply = "R"
  119. # Reply (with mention) to the selected message.
  120. reply_mention = "r"
  121. cancel = "esc"
  122. edit = "e"
  123. delete = "D"
  124. delete_confirm = "d"
  125. # Open the selected message's attachments or hyperlinks in the message
  126. # using the default browser application.
  127. open = "o"
  128. # Yank (copy) the selected message's content/url/id.
  129. yank_content = "y"
  130. yank_url = "u"
  131. yank_id = "i"
  132. # Only while typing a message
  133. # Alt+Enter: Insert a new line to the current text.
  134. [keybinds.message_input]
  135. # paste from clipboard (supports both text and images)
  136. paste = "ctrl+v"
  137. send = "enter"
  138. # Remove existing text or cancel reply.
  139. cancel = "esc"
  140. # Complete usernames when mentioning
  141. tab_complete = "tab"
  142. undo = "ctrl+u"
  143. open_editor = "ctrl+e"
  144. open_file_picker = "ctrl+\\"
  145. [keybinds.mentions_list]
  146. up = "ctrl+p"
  147. down = "ctrl+n"
  148. top = "home"
  149. bottom = "end"
  150. # style = { foreground = "", background = "", attributes = "" or ["",""], underline = "", underline_color = "" }
  151. [theme.title]
  152. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  153. normal_style = { attributes = "dim" }
  154. active_style = { foreground = "green", attributes = "bold" }
  155. [theme.footer]
  156. alignment = "left"
  157. normal_style = { attributes = "dim" }
  158. active_style = { foreground = "green", attributes = "bold" }
  159. [theme.border]
  160. enabled = true
  161. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  162. normal_style = { attributes = "dim" }
  163. active_style = { foreground = "green", attributes = "bold" }
  164. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  165. normal_set = "round"
  166. active_set = "round"
  167. [theme.guilds_tree]
  168. auto_expand_folders = true
  169. # Give tree-like shape
  170. graphics = true
  171. graphics_color = "default"
  172. # Guilds tree indentation for different item types
  173. [theme.guilds_tree.indents]
  174. dm = 2
  175. group_dm = 1
  176. guild = 2 # server inside a folder
  177. category = 1
  178. channel = 2
  179. forum = 2
  180. [theme.scroll_bar]
  181. visibility = "auto"
  182. # "minimal", "box_drawing", or "unicode"
  183. glyph_set = "unicode"
  184. track_style = { attributes = "dim" }
  185. thumb_style = {}
  186. [theme.messages_list]
  187. reply_indicator = ">"
  188. forwarded_indicator = "<"
  189. mention_style = { foreground = "blue", attributes = "bold" }
  190. emoji_style = { foreground = "green" }
  191. url_style = { foreground = "blue" }
  192. attachment_style = { foreground = "yellow" }
  193. message_style = {}
  194. selected_message_style = { attributes = "reverse" }
  195. [theme.messages_list.embeds]
  196. provider_style = { attributes = ["dim", "italic"] }
  197. author_style = { attributes = "italic" }
  198. title_style = { foreground = "blue", attributes = "bold" }
  199. description_style = { attributes = "dim" }
  200. field_name_style = { attributes = ["bold", "underline"] }
  201. field_value_style = {}
  202. footer_style = { attributes = ["dim", "italic"] }
  203. url_style = { foreground = "blue", underline = "solid" }
  204. [theme.mentions_list]
  205. # Note: width and height are capped to the avaliable space
  206. # Minimum width
  207. # 0 = make the list as wide as possible
  208. min_width = 20
  209. # Maximum height
  210. # 0 = make the list as tall as needed
  211. max_height = 0
  212. [theme.dialog]
  213. style = {}
  214. # Background style: everything else behind the dialog
  215. background_style = { attributes = "dim" }
  216. [theme.help]
  217. short_key_style = { attributes = "dim" }
  218. short_desc_style = {}
  219. full_key_style = { attributes = "dim" }
  220. full_desc_style = {}