config.full.toml
132 lines · 4025 bytes
1# ==============================================================================
2# NOTE: This file demonstrates using most of the configuration options in iamb!
3#
4# While some of the options in here are set to their defaults, many of them are
5# not and might not actually be what you want to use!
6#
7# If you want to start with something simple, use `config.example.toml` and add
8# things in one-by-one as you need them.
9# ==============================================================================
10default_profile = "default"
11
12# Specify a user profile to log in as.
13#
14# Usually `user_id` is sufficient, and you will be prompted for a password at
15# startup, but you can use `url` to override the typical homeserver discovery,
16# and `password_file` to avoid being prompted for a password at login.
17[profiles.default]
18user_id = "@user:matrix.org"
19password_file = "/path/to/password"
20url = "https://matrix-client.matrix.org"
21
22[settings]
23# strftime format for the date separator. See
24# https://docs.rs/chrono/latest/chrono/format/strftime/index.html
25# date_format = "%A, %B %d %Y"
26default_markup = "markdown"
27default_register = "\""
28default_room = "#iamb-users:0x.badd.cafe"
29default_split = "vertical"
30external_edit_file_suffix = ".md"
31ignorecase = false
32input_prompt = "❯ "
33log_level = "warn"
34members_split = "vertical"
35message_formatted_display = true
36message_shortcode_display = false
37open_command = ["my-open", "--file"]
38reaction_display = true
39reaction_shortcode_display = false
40read_receipt_display = true
41read_receipt_send = true
42room_labels = ["membership", "muted", "tags"]
43request_timeout = 10000
44sync_delay_ms = 1000
45# strftime format for the per-message time gutter (same specifier reference as
46# date_format). This string is the full gutter text, including brackets and
47# spacing. Column width follows the rendered format. An empty string disables
48# the time display.
49# time_format = " [%T]"
50typing_notice_display = true
51typing_notice_send = true
52user_gutter_width = 30
53username_display = "username"
54
55# Settings related to the encryption indicator:
56[settings.encryption]
57indicator = "only-encrypted"
58indicator_location = "title|prompt"
59
60# Settings related to showing image previews in the terminal:
61[settings.image_preview]
62protocol = { type = "sixel", filter = "Nearest" }
63size = { "width" = 66, "height" = 10 }
64
65# Settings related to proxying homeserver requests:
66[settings.proxy]
67url = "" # An empty string disables any proxying
68auth = "Bearer abcd1234"
69headers.X-Proxy-Config = "foobar"
70
71# Settings related to overriding how lists of rooms are sorted:
72[settings.sort]
73rooms = ["favorite", "lowpriority", "unread", "name"]
74members = ["power", "id"]
75
76# Settings related to how iamb interacts with the terminal:
77[settings.terminal]
78cursor_shape = "default"
79enable_extended_keys = false
80enable_title = true
81
82# Settings related to overriding how specific users are shown:
83[settings.users]
84"@user:matrix.org" = { "name" = "John Doe", "color" = "magenta" }
85
86# Specify a specific tab and window layout to use every time iamb starts:
87[layout]
88style = "config"
89
90[[layout.tabs]]
91window = "iamb://dms"
92
93[[layout.tabs]]
94window = "iamb://rooms"
95
96[[layout.tabs]]
97split = [
98 { "window" = "#iamb-users:0x.badd.cafe" },
99 { "window" = "#iamb-dev:0x.badd.cafe" }
100]
101
102# Map specific key inputs to other keys:
103[macros.insert]
104"jj" = "<Esc>"
105
106[macros."normal|visual"]
107"V" = "<C-W>m"
108
109# Map command aliases to to other commands:
110[aliases]
111"c" = "chats"
112"d" = "download"
113"e" = "edit"
114"o" = "open"
115"r" = "rooms"
116"ed" = "editor"
117"ca" = "cancel"
118"red" = "redact"
119
120# Specify different directories to use instead of the system defaults:
121[dirs]
122cache = "/home/user/.cache/iamb/"
123logs = "/home/user/.local/share/iamb/logs/"
124downloads = "/home/user/Downloads/"
125
126# Override default colors:
127[theme]
128timeline.state.color = "cyan"
129timeline.redacted.color = "245" # light gray
130timeline.redacted.modifiers = ["bold"] # make redacted messages bold
131# How to use truecolor for terminals that support it:
132# rooms.unread.color = "#ff55bb" # pink