config.toml 7.5 KB

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