Scroll to navigation

IAMB(5) File Formats Manual IAMB(5)

NAME

config.tomlconfiguration file for iamb

DESCRIPTION

Configuration must be placed under ~/.config/iamb/ and named config.toml. (If $XDG_CONFIG_HOME is set, then iamb will look for a directory named iamb there instead.)

Example configuration usually comes bundled with your installation and can typically be found in /usr/share/iamb.

As implied by the filename, the configuration is formatted in TOML. It's structure and fields are described below.

CONFIGURATION

These options are sections at the top-level of the file.

A map of profile names containing per-account information. See PROFILES.
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 profiles section.
Overwrite general settings for iamb. See SETTINGS for a description of possible values.
Configure the default window layout to use when starting iamb. See STARTUP LAYOUT for more information on how to configure this object.
Map keybindings to other keybindings. See CUSTOM KEYBINDINGS for how to configure this object.
Configure the directories to use for data, logs, and more. See DIRECTORIES for the possible values you can set in this object.

PROFILES

These options are configured as fields in the profiles object.

The user ID to use when connecting to the server. For example "user" in "@user:matrix.org".
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 /.well-known/matrix/client entry.

In addition to the above fields, you can also reuse the following fields to set per-profile overrides of their global values:

Example 1: A single profile

[profiles.personal]
user_id = "@user:matrix.org"

Example 2: Two profiles with a default

In the following example, there are two profiles, “personal” (set to be the default) and “work”. The “work” profile has an explicit URL set for its homeserver.

default_profile = "personal"

[profiles.personal]
user_id = "@user:matrix.org"

[profiles.work]
user_id = "@user:example.com"
url = "https://matrix.example.com"

SETTINGS

These options are configured as an object under the settings key and can be overridden as described in PROFILES.

Suffix to append to temporary file names when using the :editor command. Defaults to .md.

The room to show by default instead of the window.

Enable image previews and configure it. An empty object will enable the feature with default settings, omitting it will disable the feature. The available fields in this object are:
An optional object with and fields to specify the preview size in cells. Defaults to 66 and 10.
An optional object to override settings that will normally be guessed automatically:
An optional string set to one of the protocol types: “”, “, and” “”.
An optional list of two numbers representing font width and height in pixels.
Specifies the lowest log level that should be shown. Possible values are: “”, “”, “”, “, and” “”.

Defines whether or not Emoji characters in messages should be replaced by their respective shortcodes.

Defines whether or not the message body is colored like the username.

When this subsection is present, you can enable and configure push notifications. See NOTIFICATIONS for more details.

Defines a custom command and its arguments to run when opening downloads instead of the default. (For example, .)

Defines whether or not reactions should be shown.

Defines whether or not reactions should be shown as their respective shortcode.

Defines whether or not read confirmations are sent.

Defines whether or not read confirmations are displayed.

Defines the maximum time per request in seconds.

Configures how to sort the lists shown in windows like :rooms or :members. See SORTING LISTS for more details.

Defines whether or not the typing state is sent.

Defines whether or not the typing state is displayed.

Overrides values for the specified user. See USER OVERRIDES for details on the format.

Defines how usernames are shown for message senders. Possible values are “”, “, ” “”.

Specify the width of the column where usernames are displayed in a room. Usernames that are too long are truncated. Defaults to 30.

Example 1: Avoid showing Emojis (useful for terminals w/o support)

[settings]
username = "username"
message_shortcode_display = true
reaction_shortcode_display = true

Example 2: Increase request timeout to 2 minutes for a slow homeserver

[settings]
request_timeout = 120

NOTIFICATIONS

The subsection allows configuring how notifications for new messages behave.

The available fields in this subsection are:

Defaults to . Setting this field to true enables notifications.

Defaults to “” to use the desktop mechanism (default). Setting this field to “” will use the terminal bell instead.

controls whether to show the message in the desktop notification, and defaults to 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.

Example 1: Enable notifications with default options

[settings]
notifications = {}

Example 2: Enable notifications using terminal bell

[settings.notifications]
via = "bell"
show_message = false

SORTING LISTS

The subsection allows configuring how different windows have their contents sorted.

Fields available within this subsection are:

How to sort the :rooms window. Defaults to .
How to sort the window. Defaults to the rooms value.
How to sort the window. Defaults to the rooms value.
How to sort the window. Defaults to the rooms value.
How to sort the :members window. Defaults to .

Example 1: Group room members by ther server first

[settings.sort]
members = ["server", "localpart"]

USER OVERRIDES

The subsections allows overriding how specific senders are displayed. Overrides are mapped onto Matrix User IDs such as , and are typically written as inline tables containing the following keys:

Change the display name of the user.

Change the color the user is shown as. Possible values are: “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, and “”.

Example 1: Override how @ada:example.com appears in chat

[settings.users]
"@ada:example.com" = { name = "Ada Lovelace", color = "light-red" }

STARTUP LAYOUT

The layout section allows configuring the initial set of tabs and windows to show when starting the client.

Specifies what window layout to load when starting. Valid values are “” to restore the layout from the last time the client was exited, “” to open a single window (uses the value of default_room if set), or “config” to open the layout described under tabs.

If style is set to config, then this value will be used to open a set of tabs and windows at startup. Each object can contain either a key specifying a username, room identifier or room alias to show, or a key specifying an array of window objects.

Example 1: Show a single room every startup

[settings]
default_room = "#iamb-users:0x.badd.cafe"

[layout]
style = "new"

Example 2: Show a specific layout every startup

[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" }
]

CUSTOM KEYBINDINGS

The macros subsections allow configuring custom keybindings. Available subsections are:

,
Map the key sequences in this section in mode.

,
Map the key sequences in this section in mode.

,
Map the key sequences in this section in Visual mode.

Map the key sequences in this section in mode.

,
Map the key sequences in this section in Visual mode.

Map the key sequences in this section in mode.

Multiple modes can be given together by separating their names with “|” .

Example 1: Use jj to exit Insert mode

[macros.insert]
"jj" = "<Esc>"

Example 2: Use V for switching between message bar and room history

[macros."normal|visual"]
"V" = "<C-W>m"

DIRECTORIES

Specifies the directories to save data in. Configured as an object under the key dirs.

Specifies where to store assets and temporary data in. (For example, image_preview and logs will also go in here by default.) Defaults to $XDG_CACHE_HOME/iamb.

Specifies where to store persistent data in, such as E2EE room keys. Defaults to $XDG_DATA_HOME/iamb.

Specifies where to store downloaded files. Defaults to $XDG_DOWNLOAD_DIR.

Specifies where to store automatically downloaded image previews. Defaults to ${cache}/image_preview_downloads.

Specifies where to store log files. Defaults to ${cache}/logs.

FILES

~/.config/iamb/config.toml
The TOML configuration file that iamb loads by default.
~/.config/iamb/config.json
A JSON configuration file that iamb will load if the TOML one is not found.
/usr/share/iamb/config.example.toml
A sample configuration file with examples of how to set different values.

REPORTING BUGS

Please report bugs in iamb or its manual pages at https://github.com/ulyssa/iamb/issues

SEE ALSO

iamb(1)

Extended documentation is available online at https://iamb.chat

March 24, 2024 Linux 6.4.0-150600.23.25-default