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