config.toml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. [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. # Yank (copy) the selected message's content/url/id.
  147. yank_content = "y"
  148. yank_url = "u"
  149. yank_id = "i"
  150. # Only while typing a message
  151. # Alt+Enter: Insert a new line to the current text.
  152. [keybinds.message_input]
  153. # paste from clipboard (supports both text and images)
  154. paste = "ctrl+v"
  155. send = "enter"
  156. # Remove existing text or cancel reply.
  157. cancel = "esc"
  158. # Complete usernames when mentioning
  159. tab_complete = "tab"
  160. undo = "ctrl+u"
  161. open_editor = "ctrl+e"
  162. open_file_picker = "ctrl+\\"
  163. [keybinds.mentions_list]
  164. up = "ctrl+p"
  165. down = "ctrl+n"
  166. top = "home"
  167. bottom = "end"
  168. # style = { foreground = "", background = "", attributes = "" or ["",""], underline = "", underline_color = "" }
  169. [theme.title]
  170. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  171. normal_style = { attributes = "dim" }
  172. active_style = { foreground = "green", attributes = "bold" }
  173. [theme.footer]
  174. alignment = "left"
  175. normal_style = { attributes = "dim" }
  176. active_style = { foreground = "green", attributes = "bold" }
  177. [theme.border]
  178. enabled = true
  179. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  180. normal_style = { attributes = "dim" }
  181. active_style = { foreground = "green", attributes = "bold" }
  182. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  183. normal_set = "round"
  184. active_set = "round"
  185. [theme.guilds_tree]
  186. auto_expand_folders = true
  187. # Give tree-like shape
  188. graphics = true
  189. graphics_color = "default"
  190. # Guilds tree indentation for different item types
  191. [theme.guilds_tree.indents]
  192. dm = 2
  193. group_dm = 1
  194. guild = 2 # server inside a folder
  195. category = 1
  196. channel = 2
  197. forum = 2
  198. [theme.scroll_bar]
  199. visibility = "auto"
  200. # "minimal", "box_drawing", or "unicode"
  201. glyph_set = "unicode"
  202. track_style = { attributes = "dim" }
  203. thumb_style = {}
  204. [theme.messages_list]
  205. reply_indicator = ">"
  206. forwarded_indicator = "<"
  207. mention_style = { foreground = "blue", attributes = "bold" }
  208. emoji_style = { foreground = "green" }
  209. url_style = { foreground = "blue" }
  210. attachment_style = { foreground = "yellow" }
  211. message_style = {}
  212. selected_message_style = { attributes = "reverse" }
  213. [theme.messages_list.embeds]
  214. provider_style = { attributes = ["dim", "italic"] }
  215. author_style = { attributes = "italic" }
  216. title_style = { foreground = "blue", attributes = "bold" }
  217. description_style = { attributes = "dim" }
  218. field_name_style = { attributes = ["bold", "underline"] }
  219. field_value_style = {}
  220. footer_style = { attributes = ["dim", "italic"] }
  221. url_style = { foreground = "blue", underline = "solid" }
  222. [theme.mentions_list]
  223. # Note: width and height are capped to the avaliable space
  224. # Minimum width
  225. # 0 = make the list as wide as possible
  226. min_width = 20
  227. # Maximum height
  228. # 0 = make the list as tall as needed
  229. max_height = 0
  230. [theme.dialog]
  231. style = {}
  232. # Background style: everything else behind the dialog
  233. background_style = { attributes = "dim" }
  234. [theme.help]
  235. short_key_style = { attributes = "dim" }
  236. short_desc_style = {}
  237. full_key_style = { attributes = "dim" }
  238. full_desc_style = {}