config.toml 6.9 KB

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