config.toml 7.5 KB

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