# ============================================================================== # NOTE: This file demonstrates using most of the configuration options in iamb! # # While some of the options in here are set to their defaults, many of them are # not and might not actually be what you want to use! # # If you want to start with something simple, use `config.example.toml` and add # things in one-by-one as you need them. # ============================================================================== # Include other config files include = [ # load `~/.config/iamb/config.d/*.toml` in lexicographic order "config.d", # override all local settings with values from a global config "/etc/iamb/config.toml" ] default_profile = "default" # Specify a user profile to log in as. # # Usually `user_id` is sufficient, and you will be prompted for a password at # startup, but you can use `url` to override the typical homeserver discovery, # and `password_file` to avoid being prompted for a password at login. [profiles.default] user_id = "@user:matrix.org" password_file = "/path/to/password" url = "https://matrix-client.matrix.org" [settings] # strftime format for the date separator. See # https://docs.rs/chrono/latest/chrono/format/strftime/index.html # date_format = "%A, %B %d %Y" default_markup = "markdown" default_register = "\"" default_room = "#iamb-users:0x.badd.cafe" default_split = "vertical" external_edit_file_suffix = ".md" ignorecase = false input_prompt = "❯ " log_level = "warn" members_split = "vertical" message_formatted_display = true message_shortcode_display = false open_command = ["my-open", "--file"] reaction_display = true reaction_shortcode_display = false read_receipt_display = true read_receipt_send = true room_labels = ["membership", "muted", "tags"] request_timeout = 10000 sync_delay_ms = 1000 # strftime format for the per-message time gutter (same specifier reference as # date_format). This string is the full gutter text, including brackets and # spacing. Column width follows the rendered format. An empty string disables # the time display. # time_format = " [%T]" typing_notice_display = true typing_notice_send = true user_gutter_width = 30 username_display = "username" # Settings related to the encryption indicator: [settings.encryption] indicator = "only-encrypted" indicator_location = "title|prompt" # Settings related to showing image previews in the terminal: [settings.image_preview] protocol = { type = "sixel", filter = "Nearest" } size = { "width" = 66, "height" = 10 } # Settings related to proxying homeserver requests: [settings.proxy] url = "" # An empty string disables any proxying auth = "Bearer abcd1234" headers.X-Proxy-Config = "foobar" # Settings related to overriding how lists of rooms are sorted: [settings.sort] rooms = ["favorite", "lowpriority", "unread", "name"] members = ["power", "id"] # Settings related to how iamb interacts with the terminal: [settings.terminal] cursor_shape = "default" enable_extended_keys = false enable_title = true # Settings related to overriding how specific users are shown: [settings.users] "@user:matrix.org" = { "name" = "John Doe", "color" = "magenta" } # Settings to override room names [settings.rooms] "#room:matrix.org".name = "Some different room name" "@user:matrix.org".name = "My dm with John" # Specify a specific tab and window layout to use every time iamb starts: [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" } ] # Map specific key inputs to other keys: [macros.insert] "jj" = "" [macros."normal|visual"] "V" = "m" # Map command aliases to to other commands: [aliases] "c" = "chats" "d" = "download" "e" = "edit" "o" = "open" "r" = "rooms" "ed" = "editor" "ca" = "cancel" "red" = "redact" # Specify different directories to use instead of the system defaults: [dirs] cache = "/home/user/.cache/iamb/" logs = "/home/user/.local/share/iamb/logs/" downloads = "/home/user/Downloads/" # Override default colors: [theme] timeline.state.color = "cyan" timeline.redacted.color = "245" # light gray timeline.redacted.modifiers = ["bold"] # make redacted messages bold # How to use truecolor for terminals that support it: # rooms.unread.color = "#ff55bb" # pink