.\" iamb(7) manual page .\" .\" This manual page is written using the mdoc(7) macros. For more .\" information, see . .\" .\" You can preview this file with: .\" $ man ./docs/iamb.5 .Dd Oct 21, 2026 .Dt IAMB 5 .Os .Sh NAME .Nm config.toml .Nd configuration file for .Sy iamb .Sh DESCRIPTION Configuration must be placed under .Pa ~/.config/iamb/ and named .Nm . (If .Ev $XDG_CONFIG_HOME is set, then .Sy iamb will look for a directory named .Pa iamb there instead.) .Pp Example configuration usually comes bundled with your installation and can typically be found in .Pa /usr/share/iamb . .Pp As implied by the filename, the configuration is formatted in TOML. It's structure and fields are described below. .Sh CONFIGURATION These options are sections at the top-level of the file. .Bl -tag -width Ds .It Sy include A list of additional toml configs to include. Paths are either absolute or relative to the config directory and support shell variable expansion. Configs specified later take precedence. If the path is a directory all files ending in ".toml" are loaded. Transitive includes are not supported. .It Sy profiles A map of profile names containing per-account information. See .Sx PROFILES . .It Sy default_profile The name of the default profile to connect to, unless overwritten by a commandline switch. It should be one of the names defined in the .Sy profiles section. .It Sy settings Overwrite general settings for .Sy iamb . See .Sx SETTINGS for a description of possible values. .It Sy layout Configure the default window layout to use when starting .Sy iamb . See .Sx "STARTUP LAYOUT" for more information on how to configure this object. .It Sy macros Map keybindings to other keybindings. See .Sx "CUSTOM KEYBINDINGS" for how to configure this object. .It Sy dirs Configure the directories to use for data, logs, and more. See .Sx DIRECTORIES for the possible values you can set in this object. .It Sy aliases Configure custom aliases for existing commands. See .Sx "CUSTOM COMMAND ALIASES" for the precise syntax. .It Sy theme Configure the colors used for different parts of the interface. See .Sx "THEME OVERRIDES" for the possible values you can set in this object. .El .Sh PROFILES These options are configured as fields in the .Sy profiles object. .Bl -tag -width Ds .It Sy user_id The user ID to use when connecting to the server. For example "user" in "@user:matrix.org". .It Sy password_file The path to the file containing the password to use when connecting to the server. .It Sy url The URL of the user's server. (For example "https://matrix.org" for "@user:matrix.org".) This is only needed when the server does not have a .Pa /.well-known/matrix/client entry. .El .Pp In addition to the above fields, you can also reuse the following fields to set per-profile overrides of their global values: .Bl -bullet -offset indent -width 1m .It .Sy dirs .It .Sy layout .It .Sy macros .It .Sy settings .El .Ss Example 1: A single profile .Bd -literal -offset indent [profiles.personal] user_id = "@user:matrix.org" .Ed .Ss Example 2: Two profiles with a default In the following example, there are two profiles, .Dq personal (set to be the default) and .Dq work . The .Dq work profile has an explicit URL set for its homeserver. .Bd -literal -offset indent default_profile = "personal" [profiles.personal] user_id = "@user:matrix.org" [profiles.work] user_id = "@user:example.com" url = "https://matrix.example.com" .Ed .Sh SETTINGS These options are configured as an object under the .Sy settings key and can be overridden as described in .Sx PROFILES . .Bl -tag -width Ds .It Sy cache_policy Configure how downloaded files and image previews are cached internally. Specifying this object will replace the upstream defaults and possibly lead to unconstrained cache growth. Possible keys and their effect are documented at: .br .Lk https://docs.rs/matrix-sdk/latest/matrix_sdk/media/struct.MediaRetentionPolicy.html#fields .It Sy date_format A strftime format string for the date separator between messages from different days. See .Lk https://docs.rs/chrono/latest/chrono/format/strftime/index.html for the conversion specifiers. Defaults to .Dq "%A, %B %d %Y" . .It Sy default_markup Controls how text in the message bar is interpreted by default. Possible values are .Dq Sy html , .Dq Sy markdown (the default) and .Dq Sy plaintext . .It Sy default_register The default register to read and write to when one isn't specified. This defaults to the unnamed register, .Sy \(dq , but you can set it to something like .Sy + if you want to read and write from the system clipboard by default. .It Sy default_room The room to show by default instead of the .Sy :welcome window. .It Sy default_split Controls which direction .Sy f and .Sy open a new split when following a room identifier under the cursor. Possible values are .Dq Sy horizontal (the default) and .Dq Sy vertical . .It Sy default_via The servers to use to join a room if the homeserver cannot figure out how to join it. This defaults to .Sy ["matrix.org"] . .It Sy encryption Configuration subsection for specific settings related to room encryption. See .Sx ENCRYPTION for more details. .It Sy external_edit_file_suffix Suffix to append to temporary file names when using the :editor command. Defaults to .md. .It Sy image_preview Subsection for configuring image previews. See .Sx "IMAGE PREVIEWS" for more details. .It Sy ignorecase Defines whether searches ignore case. Defaults to false. .It Sy input_prompt Override the default message bar prompt. .It Sy log_level Specifies the lowest log level that should be shown. Possible values are: .Dq Sy trace , .Dq Sy debug , .Dq Sy info , .Dq Sy warn , .Dq Sy error , and .Dq Sy off (the default), which disables logging entirely. Note that this means no log files are written unless you adjust the level yourself. Also supports the syntax defined by .Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html .It Sy max_log_files Specifies how many daily log files should be saved. Set this to .Sy 0 to disable automatically deleting log files. Defaults to .Sy 7 . .It Sy mouse Enable mouse support See .Sx MOUSE for more details. .It Sy message_formatted_display Defines whether or not the formatted (HTML) body of a message should be rendered. If .Sy false , the plain text body is shown as it was sent, without any rich text rendering. Defaults to .Sy true . .It Sy message_shortcode_display Defines whether or not Emoji characters in messages should be replaced by their respective shortcodes. .It Sy members_split When set, this forces the .Sy :members command to open in a new window split instead of in the same window. Possible values are .Dq Sy vertical or .Dq Sy horizontal , to control what kind of split is done. .It Sy message_user_color Defines whether or not the message body is colored like the username. .It Sy normal_after_send Defines whether to reset input to Normal mode after sending a message. .It Sy notifications When this subsection is present, you can enable and configure push notifications. See .Sx NOTIFICATIONS for more details. .It Sy open_command Defines a custom command and its arguments to run when handling .Sy :open instead of the default system behaviour. (For example, .Sy ["my-open",\ "--file"] . ) Keep in mind that .Sy :open can be used for more than just opening downloads: this command may also be passed .Sy http[s]:// and .Sy geo: URLs for relevant messages. .It Sy proxy When this subsection is present, you can configure how requests are proxied to the homeserver. See .Sx PROXYING for more details. .It Sy reaction_display Defines whether or not reactions should be shown. .It Sy reaction_shortcode_display Defines whether or not reactions should be shown as their respective shortcode. .It Sy read_receipt_send Defines whether or not public read confirmations are sent. .It Sy read_receipt_trigger Defines under what conditions threads and rooms are marked read. Possible values are: .Bl -tag -width Ds .It Sy focused The room or thread must be focused and scrolled to the last message. This is the default value. .It Sy visible The room or thread must be on screen and scrolled to the last message. .It Sy scrollback Some portion of the scrollback for the room or thread must be on screen, but the room does not need to be scrolled to the last message. .It Sy message A message must be sent to the room before marking it read. .El .It Sy read_receipt_display Defines whether or not read confirmations are displayed. .It Sy reply_on_insert If enabled entering insert mode while a message is selected will reply to that message (unless you are already writing another message). .It Sy request_timeout Defines the maximum time per request in seconds. .It Sy room_labels Defines which kinds of labels to put next to room names and what order to show the information in. This defaults to .Sy ["unread",\ "membership",\ "tags",\ "muted",\ "type"] . The possible values and the information shown are: .Bl -tag -width Ds .It Sy membership Show whether you're not currently a room member, such as when you're invited to a room. .It Sy muted Show .Dq Muted and .Dq Calmed if the room doesn't notify for all new messages. .It Sy tags Show if the room has been tagged, such as a Favorite or Low Priority room. .It Sy type Show if this is a regular room, a DM or a space when the current window shows multiple kinds. .It Sy unread Show if a non-muted, non-calmed room has unread messages or mentions. .El .It Sy rooms Overrides values for the specified room. See .Sx "ROOM OVERRIDES" for details on the format. .It Sy send_on_enter If .Sy true (the default), pressing enter in insert mode will send the message instead of inserting a linebreak. .It Sy sort Configures how to sort the lists shown in windows like .Sy :rooms or .Sy :members . See .Sx "SORTING LISTS" for more details. .It Sy state_event_display Defines whether the state events like joined or left are shown. .It Sy sync_delay_ms How long to wait after a sync completes before doing the next one. Defaults to 250 milliseconds. .It Sy theme Configure which theme to use at startup. Defaults to .Dq Sy "default" . .It Sy terminal Subsection for configuring how specific terminal features are used (or not used). See .Sx TERMINAL for more details. .It Sy time_format A strftime format string for the time shown beside each message. See .Lk https://docs.rs/chrono/latest/chrono/format/strftime/index.html for the conversion specifiers. The value is the full gutter text, including any brackets or spacing. Its display width, measured by rendering the format for a sample timestamp, is the width of the time column and does not change from message to message. An empty string disables the time display and reserves no columns. Defaults to .Dq " [%T]" , which renders as .Dq " [HH:MM:SS]" . .It Sy typing_notice_send Defines whether or not the typing state is sent. .It Sy typing_notice_display Defines whether or not the typing state is displayed. .It Sy users Overrides values for the specified user. See .Sx "USER OVERRIDES" for details on the format. .It Sy username_display Defines how usernames are shown for message senders. Possible values are .Dq Sy username , .Dq Sy localpart , or .Dq Sy displayname . .It Sy user_gutter_width Specify the width of the column where usernames are displayed in a room. Usernames that are too long are truncated. If this value is less than 3, the usernames are displayed in an extra line at the top of the message and this value is only used to indent the message. Defaults to 30. .It Sy tabstop Number of spaces that a counts for. Defaults to 4. .It Sy ssl_verify Enable SSL verification for the HTTP requests. Defaults to true. .El .Ss Example 1: Avoid showing Emojis (useful for terminals w/o support) .Bd -literal -offset indent [settings] username = "username" message_shortcode_display = true reaction_shortcode_display = true .Ed .Ss Example 2: Increase request timeout to 2 minutes for a slow homeserver .Bd -literal -offset indent [settings] request_timeout = 120 .Ed .Sh ENCRYPTION The .Sy settings.encryption subsection allows controlling how encrypted rooms are presented. .Pp The available fields in this subsection are: .Bl -tag -width Ds .It Sy icon_encrypted Override the encrypted room icon used in the message bar prompt or title. Defaults to a green .Sy [E] . .It Sy icon_unencrypted Override the unencrypted room icon used in the message bar prompt or title. Defaults to a red .Sy [U] . .It Sy icon_unknown Override the unknown encryption status icon used in the message bar prompt or title. Defaults to a yellow .Sy [?] . .It Sy indicator Defines when an encryption status indicator is shown. Possible values are: .Dq Sy enabled (default, always indicate status), .Dq Sy disabled (never indicate status), .Dq Sy only-unencrypted , and .Dq Sy only-encrypted . .It Sy indicator_location Defines where the encryption status indicator is shown when relevant. Possible values are: .Dq Sy title , and .Dq Sy prompt (the default). Both can be used via .Dq Sy title|prompt . .El .Sh COLORS The .Sy settings.users and .Sy theme subsections allows configuring the appearance of many elements. For settings that take a color value, you can use either a named color, an 8-bit color value or a hex value. .Pp The named colors are: .Dq Sy black , .Dq Sy red , .Dq Sy green , .Dq Sy yellow , .Dq Sy blue , .Dq Sy magenta , .Dq Sy cyan , .Dq Sy gray , .Dq Sy dark-gray , .Dq Sy light-red , .Dq Sy light-green , .Dq Sy light-yellow , .Dq Sy light-blue , .Dq Sy light-magenta , .Dq Sy light-cyan , .Dq Sy white , and .Dq Sy reset . The 8-bit ANSI color must in the range of 0 to 255 where the first 16 colors correspond to the named colors. The hex value is given as .Dq Sy #RRGGBB . If the terminal does not support truecolor, all hex colors will fall back to the default text color. All values must be given as a string. .Sh IMAGE PREVIEWS The .Sy settings.image_preview subsection allows configuring image previews. .Pp The available fields in this subsection are: .Bl -tag -width Ds .It Sy enabled Defaults to .Sy true . .It Sy size An optional object with .Sy width and .Sy height fields to specify the preview size in cells. Defaults to 66 and 10. .It Sy protocol An optional object to override settings that will normally be guessed automatically: .Bl -tag -width Ds .It Sy type An optional string set to one of the protocol types: .Dq Sy sixel , .Dq Sy kitty , .Dq Sy iterm2 , and .Dq Sy halfblocks . .It Sy font_size An optional list of two numbers representing font width and height in pixels. .It Sy filter The sample filter used to scale images. Possible values are: .Dq Sy Nearest , .Dq Sy Triangle (default) , .Dq Sy CatmullRom , .Dq Sy Gaussian , and .Dq Sy Lanczos3 . See .Lk https://docs.rs/image/0.25.10/image/imageops/enum.FilterType.html for more information. .El .El .Sh MOUSE The .Sy settings.mouse subsection allows enabling mouse support. Currently the only difference is that scrolling moves the window view instead of changing the selection. .Pp The available fields in this subsection are: .Bl -tag -width Ds .It Sy enabled Defaults to .Sy false . Setting this field to .Sy true enables mouse support. .El .Sh NOTIFICATIONS The .Sy settings.notifications subsection allows configuring how notifications for new messages behave. .Pp The available fields in this subsection are: .Bl -tag -width Ds .It Sy enabled Defaults to .Sy false . Setting this field to .Sy true enables notifications. .It Sy via Defaults to .Dq Sy desktop to use the desktop mechanism (default). Setting this field to .Dq Sy bell will use the terminal bell instead. Both can be used via .Dq Sy desktop|bell . .It Sy show_message controls whether to show the message in the desktop notification, and defaults to .Sy true . Messages are truncated beyond a small length. The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb. In other words, you can simply change the rules with another client. .It Sy sound_hint Controls the notification sound name that is passed as a hint to the notification daemon. .El .Ss Example 1: Enable notifications with default options .Bd -literal -offset indent [settings.notifications] enabled = true .Ed .Ss Example 2: Enable notifications using terminal bell .Bd -literal -offset indent [settings.notifications] enabled = true via = "bell" show_message = false .Ed .Ss Example 3: Enable notifications using the instant message sound .Bd -literal -offset indent [settings.notifications] enabled = true sound_hint = "message-new-instant" # Linux sound_hint = "IM" # Windows .Ed .Sh "PROXYING" The .Sy settings.proxy subsection allows configuring proxying for requests to the homeserver. .Pp Fields available within this subsection are: .Bl -tag -width Ds .It Sy url Either a .Sy socks5://IP:PORT URL for a SOCKS server to proxy request through, or a .Sy http[s]://[USER:PASS@]HOST[:PORT]/ URL to do HTTP(S) proxying through. Setting this to the empty string will explicitly disable proxying, and any environment variables will be ignored. .It Sy auth A value to send in a .Sy Proxy-Authorization header if your HTTP(S) proxy requires it, such as for doing Bearer authentication with a token. .It Sy headers A subsection for specifying additional headers and values to include in requests sent to the proxy. For example, custom HTTPS proxy server software may require specifying a .Sy User-Agent or a custom header like .Sy X-Proxy-Token in order to be allowed to send request through it. .El .Sh "SORTING LISTS" The .Sy settings.sort subsection allows configuring how different windows have their contents sorted. .Pp Fields available within this subsection are: .Bl -tag -width Ds .It Sy rooms How to sort the .Sy :rooms window. Defaults to .Sy ["favorite",\ "invite",\ "lowpriority",\ "mentions",\ "notifications",\ "marked_unread",\ "joined",\ "space",\ "dm",\ "recent",\ "name"] . .It Sy chats How to sort the .Sy :chats window. Defaults to the .Sy rooms value. .It Sy dms How to sort the .Sy :dms window. Defaults to the .Sy rooms value. .It Sy spaces How to sort the .Sy :spaces window. Defaults to the .Sy rooms value. .It Sy space How to sort rooms in a space. Defaults to .Sy ["space",\ "joined",\ "spaceorder"] . .It Sy members How to sort the .Sy :members window. Defaults to .Sy ["power",\ "knock",\ "~invite",\ "id"] . .El .Pp The available values for sorting rooms are: .Bl -tag -width Ds .It Sy alias Sort rooms by alphabetically ascending canonical room alias. .It Sy dm Put direct messages before other rooms. .It Sy favorite Put favorite rooms before other rooms. .It Sy id Sort rooms by alphabetically ascending Matrix room identifier. .It Sy invite Put invites before other rooms. .It Sy joined Put joined rooms before unjoined rooms. .It Sy lowpriority Put lowpriority rooms after other rooms. .It Sy mentions Put rooms with unread mentions before other rooms. .It Sy name Sort rooms by alphabetically ascending room name. .It Sy notifications Put rooms with unread notifications before other rooms. .It Sy marked_unread Put rooms that were manually marked as unread before other rooms. .It Sy recent Sort rooms by most recent message timestamp. .It Sy server Sort rooms by alphabetically ascending server name from the room alias. This will fall back to the server from the room identifier if there is no canonical alias for the room. .It Sy unread Put rooms with unread messages before other rooms. .It Sy recent Sort rooms by most recent message timestamp. .It Sy space Put spaces before other rooms. .El The available values for sorting space members are the same as for sorting rooms with the addition: .Bl -tag -width Ds .It Sy spaceorder Sort rooms according to the relative order defined by the space admins. .El .Pp The available values for sorting users are: .Bl -tag -width Ds .It Sy power Put users with higher power level before other users. .It Sy id Sort users by alphabetically ascending Matrix user identifier. .It Sy localpart Sort users by alphabetically ascending local part of the user identifier. .It Sy server Sort users by alphabetically ascending server name from the user identifier. .It Sy invite Put invited users before other members. .It Sy knock Put knocking users before other members. .El .Pp Add a .Dq Sy ~ in front of any value to flip the order. .Ss Example 1: Group room members by their server first and descending localpart second .Bd -literal -offset indent [settings.sort] members = ["server", "~localpart"] .Ed .Sh TERMINAL The .Sy settings.terminal subsection allows overriding how .Sy iamb interacts with your terminal. .Pp The available fields in this subsection are: .Bl -tag -width Ds .It Sy cursor_shape Control the terminal cursor shape used by iamb. Possible values are: .Dq Sy default , .Dq Sy auto , .Dq Sy block , .Dq Sy line , and .Dq Sy underline . The mode .Dq Sy auto switches between .Dq Sy block in normal mode, .Dq Sy line in insert mode, and .Dq Sy underline in replace mode. Defaults to .Dq Sy auto . .It Sy enable_extended_keys Defines whether to explicitly enable or disable requesting extended keypresses from your terminal. By default, when unset, .Sy iamb will attempt to auto-detect support in your terminal and request extended keypresses from the terminal if supported. .It Sy enable_title Whether to set the title of the terminal window to .Dq Sy iamb () . Defaults to true. .El .Sh "THEME OVERRIDES" The .Sy theme subsection allows you to override the colors used for different parts of the user interface. Individual, stylable UI elements have the following properties: .Bl -tag -width Ds .It Sy color Configure the foreground color for text. See the .Sx "COLORS" section for the supported color format. .It Sy background Configure the background color for text. See the .Sx "COLORS" section for the supported color format. .It Sy modifiers An array of strings specifying modifiers to how the text is styled. Possible values are .Dq Sy "bold" , .Dq Sy "crossed-out" , .Dq Sy "dim" , .Dq Sy "hidden" , .Dq Sy "italic" , .Dq Sy "rapid-blink" , .Dq Sy "reversed" , .Dq Sy "slow-blink" , and .Dq Sy "underlined" . Modifier names prefixed with .Sy ~ will remove the modifier if it was inherited from another default, global config, etc. .El .Pp Some special UI elements also have additional properties available: .Bl -tag -width Ds .It Sy line For UI elements that draw a block, such as .Sy "theme.windows.border" , .Sy "theme.windows.border_focused" , .Sy "theme.messages.code_block" , or .Sy "theme.messages.table" , you can specify what characters should be used to draw the bounding line. .Pp Possible values are .Dq Sy "plain" , .Dq Sy "rounded" , .Dq Sy "double" , .Dq Sy "thick" , .Dq Sy "double-dashed-light" , .Dq Sy "double-dashed-heavy" , .Dq Sy "triple-dashed-light" , .Dq Sy "triple-dashed-heavy" , .Dq Sy "quadruple-dashed-light" , and .Dq Sy "quadruple-dashed-heavy" . .It Sy colors For UI elements that can use multiple colors, like .Sy "theme.users" for usernames, you can specify an array of colors that make up the pallete to pick from. .El .Pp Within .Sy theme , there are several subsections for specific UI areas: .Bl -tag -width Ds .It Sy default The base, default style that everything else should inherit. .It Sy selected Additional options for how to style selected items in lists and timelines. .It Sy cmdbar For controlling how the text in the command bar is styled. .Bl -tag -width Ds .It Sy default Configure the default styling for the command bar. .It Sy prompt Configure the styling for the prompt in the command bar. .It Sy completions Configure the styling for displaying possible command bar completions. .It Sy error Configure the styling for error messages shown in the command bar. .It Sy info Configure the styling for info messages shown in the command bar. .El .It Sy encryption For controlling how the encryption indicators are styled. UI elements you can set within this subsection are: .Bl -tag -width Ds .It Sy default Configure the default styling for the encryption status indicators. .It Sy icon_encrypted Configure the styling for the encrypted indicator. .It Sy icon_unencrypted Configure the styling for the unencrypted indicator. .It Sy icon_unknown Configure the styling for the unknown encryption status indicator. .El .It Sy msgbar For controlling how the text in the message bar is styled. UI elements you can set within this subsection are: .Bl -tag -width Ds .It Sy default Configure the default styling for the message bar. .El .It Sy messages For controlling how the bodies of messages are styled. UI elements you can set within this subsection are: .Bl -tag -width Ds .It Sy default Configure the default styling for messages. .It Sy "blockquote" Configure the styling for the line used for indenting .Sy "
" elements in formatted message bodies. .It Sy code Configure the styling for .Sy "" elements in formatted message bodies. .It Sy "code_block" Configure the styling for .Sy "
"
elements in formatted message bodies.
.It Sy "emphasis"
Configure the styling for
.Sy ""
and
.Sy ""
elements in formatted message bodies.
.It Sy "ruler"
Configure the styling for the line used for drawing
.Sy ""
elements in formatted message bodies.
.It Sy "strikethrough"
Configure the styling for
.Sy "" ,
.Sy "" ,
and
.Sy ""
elements in formatted message bodies.
.It Sy "strong"
Configure the styling for
.Sy ""
and
.Sy ""
elements in formatted message bodies.
.It Sy "table"
Configure the styling for the line used for drawing the cells for
.Sy ""
elements in formatted message bodies.
.It Sy "underlined"
Configure the styling for
.Sy ""
elements in formatted message bodies.
.El
.It Sy timeline
For controlling how other elements within the timeline are styled.
UI elements you can set within this subsection are:
.Bl -tag -width Ds
.It Sy default
Configure the default styling for text in the timeline.
.It Sy date
Configure the how the dates for messages are styled.
.It Sy time
Configure the how the time a message was sent is styled.
.It Sy unread_marker
Configure the style of the bar for marking the start of unread messages.
.It Sy state
Configure how the text shown for state events is styled.
.It Sy sticker
Configure how any text shown for stickers is styled.
.It Sy poll
Configure how the text in polls is styled.
.It Sy notice
Configure how server notices is styled.
.It Sy redacted
Configure how redacted events in the timeline is styled.
.El
.It Sy users
For controlling how usernames and identifiers are styled.
.Pp
In addition to the common
.Sy color ,
.Sy background ,
and
.Sy modifiers
properties, you can also specify a
.Sy colors
field for providing a broad palette of colors from which to style usernames.
You can provide an array of specific colors, which you may want if you have a list of specific colors that work for your theme, but you can also set it to
.Sy "rainbow-light"
or
.Sy "rainbow-dark"
to use a large light- or dark-colored rainbow palette for usernames.
.Pp
By default, this is a selection of 13 standard ANSI colors that should look okay on both light and dark backgrounds.
You can set this array to
.Sy "[]"
to force all usernames to use the value in
.Sy color
or its inherited value from
.Sy "theme.default" .
.It Sy completion
For controlling how the completion menu is styled.
.Bl -tag -width Ds
.It Sy default
Configure the default style for entries in the menu.
.It Sy selected
Configure how the selected entry is styled.
.El
.It Sy windows
For controlling how the windows are styled.
.Bl -tag -width Ds
.It Sy default
Configure the default style for characters that draw the window border or title.
.It Sy border
Configure how the border characters are styled.
.It Sy border_focused
Configure how the border characters for focused window are styled.
.It Sy title
Configure how the window titles are styled.
.El
.It Sy tabs
For controlling how tabs are styled.
UI elements you can set within this subsection are:
.Bl -tag -width Ds
.It Sy title
Configure how tab titles are styled.
.It Sy title_focused
Configure how the title of the focused tab is styled.
.El
.It Sy rooms
For controlling how lists of rooms like
.Sy :unreads
or
.Sy :chats
are styled.
UI elements you can set within this subsection are:
.Bl -tag -width Ds
.It Sy default
Configure the default style for text in room lists.
.It Sy labels
Configure the style for the labels following room names in lists.
.It Sy notification
Configure how rooms with unread notifications are displayed.
.Bl -tag -width Ds
.It Sy number
Configure the style of the number showing how many unread notifications a room has.
.It Sy name
Configure the style for rooms with unread notifications.
.It Sy labels
Configure the style for the labels of rooms with unread notifications.
.El
.It Sy mention
Configure how rooms with unread mentions are displayed.
Accepts the same values as
.Sy notification .
.It Sy unread
Configure how rooms with unread muted messages are displayed.
Accepts the same values as
.Sy notification .
.It Sy marked_unread .
Configure how rooms that are manually marked as unread are displayed.
Accepts the same values as
.Sy notification .
.El
.El
.Ss Example 1: Make code blocks a lighter gray background and state events red
.Bd -literal -offset indent
[theme.messages]
code_block.background = "245"

[theme.timeline]
state.color = "cyan"
.Ed
.Ss Example 2: Replace default bold style in window and tab titles with italic
.Bd -literal -offset indent
[theme]
tabs.title.modifiers = ["~bold", "italic"]
windows.title.modifiers = ["~bold", "italic"]
.Ed
.Sh "ROOM OVERRIDES"
The
.Sy settings.rooms
subsections allows overriding how specific rooms are displayed.
Overrides are mapped onto Matrix Room IDs, Matrix Room Aliases, or User IDs for DMs.
They are typically written as inline tables containing the following keys:
.Bl -tag -width Ds
.It Sy name
Change the display name of the room.
.El
.Ss Example 1: Override how the iamb rooms appear in the room list
.Bd -literal -offset indent
[settings.rooms]
"#iamb-users:0x.badd.cafe".name = "iamb user discussion"
"!EpWjxfRMnoLQPCKZei:0x.badd.cafe".name = "iamb developers"
"@ada:example.com".name = "My DM with Ada Lovelace"
.Ed
.Sh "USER OVERRIDES"
The
.Sy settings.users
subsections allows overriding how specific senders are displayed.
Overrides are mapped onto Matrix User IDs such as
.Sy @user:matrix.org ,
and are typically written as inline tables containing the following keys:
.Bl -tag -width Ds
.It Sy name
Change the display name of the user.
.It Sy color
Change the color the user is shown as.
See the
.Sx "COLORS"
section for the supported color format.
.El
.Ss Example 1: Override how @ada:example.com appears in chat
.Bd -literal -offset indent
[settings.users]
"@ada:example.com" = { name = "Ada Lovelace", color = "light-red" }
.Ed
.Sh STARTUP LAYOUT
The
.Sy layout
section allows configuring the initial set of tabs and windows to show when
starting the client.
.Bl -tag -width Ds
.It Sy style
Specifies what window layout to load when starting.
Valid values are
.Dq Sy restore
to restore the layout from the last time the client was exited,
.Dq Sy new
to open a single window (uses the value of
.Sy default_room
if set), or
.Dq Sy config
to open the layout described under
.Sy tabs .
.It Sy tabs
If
.Sy style
is set to
.Sy config ,
then this value will be used to open a set of tabs and windows at startup.
Each object can contain either a
.Sy window
key specifying a username, room identifier or room alias to show, or a
.Sy split
key specifying an array of window objects.
.El
.Ss Example 1: Show a single room every startup
.Bd -literal -offset indent
[settings]
default_room = "#iamb-users:0x.badd.cafe"

[layout]
style = "new"
.Ed
.Ss Example 2: Show a specific layout every startup
.Bd -literal -offset indent
[layout]
style = "config"

[[layout.tabs]]
window = "iamb://dms"

[[layout.tabs]]
window = "iamb://rooms"

[[layout.tabs]]
split = [
    { "window" = "#iamb-users:0x.badd.cafe" },
    { "window" = "#iamb-dev:0x.badd.cafe" }
]
.Ed
.Sh "CUSTOM COMMAND ALIASES"
The
.Sy aliases
subsections allow configuring custom aliases.
.Ss Example 1: Alias commands to single-letter versions
.Bd -literal -offset indent
[aliases]
"c" = "chats"
"d" = "download"
"e" = "edit"
"o" = "open"
"r" = "rooms"
.Ed
.Sh "CUSTOM KEYBINDINGS"
The
.Sy macros
subsections allow configuring custom keybindings.
Available subsections are:
.Bl -tag -width Ds
.It Sy insert , Sy i
Map the key sequences in this section in
.Sy Insert
mode.
.It Sy normal , Sy n
Map the key sequences in this section in
.Sy Normal
mode.
.It Sy visual , Sy v
Map the key sequences in this section in
.Sy Visual
mode.
.It Sy select
Map the key sequences in this section in
.Sy Select
mode.
.It Sy command , Sy c
Map the key sequences in this section in
.Sy Visual
mode.
.It Sy operator-pending
Map the key sequences in this section in
.Sy "Operator Pending"
mode.
.El
.Pp
Multiple modes can be given together by separating their names with
.Dq Sy | .
.Ss Example 1: Use "jj" to exit Insert mode
.Bd -literal -offset indent
[macros.insert]
"jj" = ""
.Ed
.Ss Example 2: Use "V" for switching between message bar and room history
.Bd -literal -offset indent
[macros."normal|visual"]
"V" = "m"
.Ed
.Sh DIRECTORIES
Specifies the directories to save data in.
Configured as an object under the key
.Sy dirs .
.Bl -tag -width Ds
.It Sy cache
Specifies where to store assets and temporary data in.
(For example,
.Sy logs
will also go in here by default.)
Defaults to
.Ev $XDG_CACHE_HOME/iamb .
.It Sy data
Specifies where to store persistent data in, such as E2EE room keys.
Defaults to
.Ev $XDG_DATA_HOME/iamb .
.It Sy downloads
Specifies where to store downloaded files.
Defaults to
.Ev $XDG_DOWNLOAD_DIR .
.It Sy logs
Specifies where to store log files.
Defaults to
.Ev ${cache}/logs .
.El
.Sh FILES
.Bl -tag -width Ds
.It Pa ~/.config/iamb/config.toml
The TOML configuration file that
.Sy iamb
loads by default.
.It Pa ~/.config/iamb/config.json
A JSON configuration file that
.Sy iamb
will load if the TOML one is not found.
.It Pa /usr/share/iamb/config.example.toml
A sample configuration file showing the basic values needed to get started.
.It Pa /usr/share/iamb/config.full.toml
A sample configuration file with examples of how to set many different values.
.El
.Sh "REPORTING BUGS"
Please report bugs in
.Sy iamb
or its manual pages at
.Lk https://github.com/ulyssa/iamb/issues
.Sh SEE ALSO
.Xr iamb 1
.Pp
Extended documentation is available online at
.Lk https://iamb.chat