config.toml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # Whether to enable mouse or not.
  2. mouse = true
  3. # The program to open when the `keys.message_input.editor` keymap is pressed. Set the value to `"default"` to use `$EDITOR`.
  4. editor = "default"
  5. # Whether to parse and render markdown in messages or not.
  6. markdown = true
  7. hide_blocked_users = true
  8. show_attachment_links = true
  9. # The number of messages to fetch when a text-based channel is selected from guilds tree. The minimum and maximum value is 0 and 100, respectively.
  10. messages_limit = 50
  11. [timestamps]
  12. enabled = true
  13. # https://pkg.go.dev/time#Layout
  14. format = "3:04PM"
  15. [notifications]
  16. enabled = true
  17. # The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows.
  18. duration = 0
  19. [notifications.sound]
  20. enabled = true
  21. only_on_ping = true
  22. # How Discord sees us.
  23. # status: "online", "idle", "dnd" (Do Not Disturb), "" (invisible),
  24. # note: does not seem to work
  25. [identify]
  26. status = "online"
  27. browser = "default"
  28. browser_version = "default"
  29. user_agent = "default"
  30. # Global shortcuts
  31. # Esc: Reset message selection or close the channel selection popup.
  32. [keys]
  33. focus_guilds_tree = "Ctrl+G"
  34. focus_messages_text = "Ctrl+T"
  35. focus_message_input = "Ctrl+P"
  36. # Hide/show the guilds tree.
  37. toggle_guilds_tree = "Ctrl+B"
  38. quit = "Ctrl+C"
  39. # Log out and remove the authentication token from keyring.
  40. # Requires re-login upon restart.
  41. logout = "Ctrl+D"
  42. # Only while focusing on the guilds tree
  43. [keys.guilds_tree]
  44. select_previous = "Rune[k]"
  45. select_next = "Rune[j]"
  46. select_first = "Rune[g]"
  47. select_last = "Rune[G]"
  48. # Select the currently highlighted text-based channel or expand a guild or channel.
  49. select_current = "Enter"
  50. yank_id = "Rune[i]"
  51. collapse_parent_node = "Rune[-]"
  52. move_to_parent_node = "Rune[p]"
  53. # Only while focusing on sent messages
  54. [keys.messages_text]
  55. select_previous = "Rune[k]"
  56. select_next = "Rune[j]"
  57. select_first = "Rune[g]"
  58. select_last = "Rune[G]"
  59. # Select the message reference (reply) of the selected channel.
  60. select_reply = "Rune[s]"
  61. # Reply to the selected message.
  62. reply = "Rune[r]"
  63. # Reply (with mention) to the selected message.
  64. reply_mention = "Rune[R]"
  65. cancel = "Esc"
  66. delete = "Rune[d]"
  67. # Open the selected message's attachments or hyperlinks in the message
  68. # using the default browser application.
  69. open = "Rune[o]"
  70. # Yank (copy) the selected message's content/url/id.
  71. yank_content = "Rune[y]"
  72. yank_url = "Rune[u]"
  73. yank_id = "Rune[i]"
  74. # Only while typing a message
  75. # Alt+Enter: Insert a new line to the current text.
  76. [keys.message_input]
  77. # Send the message.
  78. send = "Enter"
  79. # Open message input in your editor.
  80. editor = "Ctrl+E"
  81. # Remove existing text or cancel reply.
  82. cancel = "Esc"
  83. # Applies to all
  84. [theme]
  85. background_color = "default"
  86. [theme.title]
  87. # The values can be one of the following: `"left"`, `"center"`, and `"right"`.
  88. alignment = "left"
  89. # style supports foreground and background.
  90. style = { foreground = "default" }
  91. active_style = { foreground = "green" }
  92. [theme.border]
  93. enabled = true
  94. # [top, bottom, left, right]
  95. padding = [0, 0, 1, 1]
  96. # The values can be one of the following: `"plain"`, `"round"`, `"thick"`, and `"double"`.
  97. set = "plain"
  98. style = { foreground = "default" }
  99. active_style = { foreground = "green" }
  100. [theme.guilds_tree]
  101. auto_expand_folders = true
  102. # Give tree-like shape
  103. graphics = true
  104. graphics_color = "default"
  105. private_channel_color = "white"
  106. guild_color = "white"
  107. channel_color = "white"
  108. [theme.messages_text]
  109. # Set to false to show messages with usernames instead of nicknames
  110. show_user_nicks = true
  111. show_user_colors = true
  112. reply_indicator = ">"
  113. forwarded_indicator = "<"
  114. author_style = { foreground = "aqua" }
  115. mention_style = { foreground = "blue" }
  116. emoji_style = { foreground = "green" }
  117. url_style = { foreground = "blue" }
  118. attachment_style = { foreground = "yellow" }