docs/iamb.5

1247 lines · 34571 bytes

   1.\" iamb(7) manual page
   2.\"
   3.\" This manual page is written using the mdoc(7) macros. For more
   4.\" information, see <https://manpages.bsd.lv/mdoc.html>.
   5.\"
   6.\" You can preview this file with:
   7.\"     $ man ./docs/iamb.5
   8.Dd Oct 21, 2026
   9.Dt IAMB 5
  10.Os
  11.Sh NAME
  12.Nm config.toml
  13.Nd configuration file for
  14.Sy iamb
  15.Sh DESCRIPTION
  16Configuration must be placed under
  17.Pa ~/.config/iamb/
  18and named
  19.Nm .
  20(If
  21.Ev $XDG_CONFIG_HOME
  22is set, then
  23.Sy iamb
  24will look for a directory named
  25.Pa iamb
  26there instead.)
  27.Pp
  28Example configuration usually comes bundled with your installation and can
  29typically be found in
  30.Pa /usr/share/iamb .
  31.Pp
  32As implied by the filename, the configuration is formatted in TOML.
  33It's structure and fields are described below.
  34.Sh CONFIGURATION
  35These options are sections at the top-level of the file.
  36.Bl -tag -width Ds
  37.It Sy include
  38A list of additional toml configs to include. Paths are either absolute or
  39relative to the config directory and support shell variable expansion. Configs
  40specified later take precedence. If the path is a directory all files ending in
  41".toml" are loaded. Transitive includes are not supported.
  42.It Sy profiles
  43A map of profile names containing per-account information.
  44See
  45.Sx PROFILES .
  46.It Sy default_profile
  47The name of the default profile to connect to, unless overwritten by a
  48commandline switch.
  49It should be one of the names defined in the
  50.Sy profiles
  51section.
  52.It Sy settings
  53Overwrite general settings for
  54.Sy iamb .
  55See
  56.Sx SETTINGS
  57for a description of possible values.
  58.It Sy layout
  59Configure the default window layout to use when starting
  60.Sy iamb .
  61See
  62.Sx "STARTUP LAYOUT"
  63for more information on how to configure this object.
  64.It Sy macros
  65Map keybindings to other keybindings.
  66See
  67.Sx "CUSTOM KEYBINDINGS"
  68for how to configure this object.
  69.It Sy dirs
  70Configure the directories to use for data, logs, and more.
  71See
  72.Sx DIRECTORIES
  73for the possible values you can set in this object.
  74.It Sy aliases
  75Configure custom aliases for existing commands.
  76See
  77.Sx "CUSTOM COMMAND ALIASES"
  78for the precise syntax.
  79.It Sy theme
  80Configure the colors used for different parts of the interface.
  81See
  82.Sx "THEME OVERRIDES"
  83for the possible values you can set in this object.
  84.El
  85.Sh PROFILES
  86These options are configured as fields in the
  87.Sy profiles
  88object.
  89.Bl -tag -width Ds
  90.It Sy user_id
  91The user ID to use when connecting to the server.
  92For example "user" in "@user:matrix.org".
  93.It Sy password_file
  94The path to the file containing the password to use when connecting to the server.
  95.It Sy url
  96The URL of the user's server.
  97(For example "https://matrix.org" for "@user:matrix.org".)
  98This is only needed when the server does not have a
  99.Pa /.well-known/matrix/client
 100entry.
 101.El
 102.Pp
 103In addition to the above fields, you can also reuse the following fields to set
 104per-profile overrides of their global values:
 105.Bl -bullet -offset indent -width 1m
 106.It
 107.Sy dirs
 108.It
 109.Sy layout
 110.It
 111.Sy macros
 112.It
 113.Sy settings
 114.El
 115.Ss Example 1: A single profile
 116.Bd -literal -offset indent
 117[profiles.personal]
 118user_id = "@user:matrix.org"
 119.Ed
 120.Ss Example 2: Two profiles with a default
 121In the following example, there are two profiles,
 122.Dq personal
 123(set to be the default) and
 124.Dq work .
 125The
 126.Dq work
 127profile has an explicit URL set for its homeserver.
 128.Bd -literal -offset indent
 129default_profile = "personal"
 130
 131[profiles.personal]
 132user_id = "@user:matrix.org"
 133
 134[profiles.work]
 135user_id = "@user:example.com"
 136url = "https://matrix.example.com"
 137.Ed
 138.Sh SETTINGS
 139These options are configured as an object under the
 140.Sy settings
 141key and can be overridden as described in
 142.Sx PROFILES .
 143.Bl -tag -width Ds
 144.It Sy cache_policy
 145Configure how downloaded files and image previews are cached internally.
 146Specifying this object will replace the upstream defaults and possibly lead to unconstrained cache growth.
 147Possible keys and their effect are documented at:
 148.br
 149.Lk https://docs.rs/matrix-sdk/latest/matrix_sdk/media/struct.MediaRetentionPolicy.html#fields
 150.It Sy date_format
 151A strftime format string for the date separator between messages from different days.
 152See
 153.Lk https://docs.rs/chrono/latest/chrono/format/strftime/index.html
 154for the conversion specifiers.
 155Defaults to
 156.Dq "%A, %B %d %Y" .
 157.It Sy default_markup
 158Controls how text in the message bar is interpreted by default.
 159Possible values are
 160.Dq Sy html ,
 161.Dq Sy markdown
 162(the default) and
 163.Dq Sy plaintext .
 164.It Sy default_register
 165The default register to read and write to when one isn't specified.
 166This defaults to the unnamed register,
 167.Sy \(dq ,
 168but you can set it to something like
 169.Sy +
 170if you want to read and write from the system clipboard by default.
 171.It Sy default_room
 172The room to show by default instead of the
 173.Sy :welcome
 174window.
 175.It Sy default_split
 176Controls which direction
 177.Sy <C-W>f
 178and
 179.Sy <C-W><C-F>
 180open a new split when following a room identifier under the cursor.
 181Possible values are
 182.Dq Sy horizontal
 183(the default) and
 184.Dq Sy vertical .
 185.It Sy default_via
 186The servers to use to join a room if the homeserver cannot figure out how to join it.
 187This defaults to
 188.Sy ["matrix.org"] .
 189.It Sy encryption
 190Configuration subsection for specific settings related to room encryption.
 191See
 192.Sx ENCRYPTION
 193for more details.
 194.It Sy external_edit_file_suffix
 195Suffix to append to temporary file names when using the :editor command. Defaults to .md.
 196.It Sy image_preview
 197Subsection for configuring image previews. See
 198.Sx "IMAGE PREVIEWS"
 199for more details.
 200.It Sy ignorecase
 201Defines whether searches ignore case. Defaults to false.
 202.It Sy input_prompt
 203Override the default message bar prompt.
 204.It Sy log_level
 205Specifies the lowest log level that should be shown.
 206Possible values are:
 207.Dq Sy trace ,
 208.Dq Sy debug ,
 209.Dq Sy info ,
 210.Dq Sy warn ,
 211.Dq Sy error ,
 212and
 213.Dq Sy off
 214(the default), which disables logging entirely.
 215Note that this means no log files are written unless you adjust the level yourself.
 216Also supports the syntax defined by
 217.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
 218.It Sy max_log_files
 219Specifies how many daily log files should be saved.
 220Set this to
 221.Sy 0
 222to disable automatically deleting log files.
 223Defaults to
 224.Sy 7 .
 225.It Sy mouse
 226Enable mouse support
 227See
 228.Sx MOUSE
 229for more details.
 230.It Sy message_formatted_display
 231Defines whether or not the formatted (HTML) body of a message should be rendered.
 232If
 233.Sy false ,
 234the plain text body is shown as it was sent, without any rich text rendering.
 235Defaults to
 236.Sy true .
 237.It Sy message_shortcode_display
 238Defines whether or not Emoji characters in messages should be replaced by their
 239respective shortcodes.
 240.It Sy members_split
 241When set, this forces the
 242.Sy :members
 243command to open in a new window split instead of in the same window.
 244Possible values are
 245.Dq Sy vertical
 246or
 247.Dq Sy horizontal ,
 248to control what kind of split is done.
 249.It Sy message_user_color
 250Defines whether or not the message body is colored like the username.
 251.It Sy normal_after_send
 252Defines whether to reset input to Normal mode after sending a message.
 253.It Sy notifications
 254When this subsection is present, you can enable and configure push notifications.
 255See
 256.Sx NOTIFICATIONS
 257for more details.
 258.It Sy open_command
 259Defines a custom  command and its arguments to run when handling
 260.Sy :open
 261instead of the default system behaviour.
 262(For example,
 263.Sy ["my-open",\ "--file"] . )
 264Keep in mind that
 265.Sy :open
 266can be used for more than just opening downloads:
 267this command may also be passed
 268.Sy http[s]://
 269and
 270.Sy geo:
 271URLs for relevant messages.
 272.It Sy proxy
 273When this subsection is present, you can configure how requests are proxied to the homeserver.
 274See
 275.Sx PROXYING
 276for more details.
 277.It Sy reaction_display
 278Defines whether or not reactions should be shown.
 279.It Sy reaction_shortcode_display
 280Defines whether or not reactions should be shown as their respective shortcode.
 281.It Sy read_receipt_send
 282Defines whether or not public read confirmations are sent.
 283.It Sy read_receipt_trigger
 284Defines under what conditions threads and rooms are marked read.
 285Possible values are:
 286.Bl -tag -width Ds
 287.It Sy focused
 288The room or thread must be focused and scrolled to the last message.
 289This is the default value.
 290.It Sy visible
 291The room or thread must be on screen and scrolled to the last message.
 292.It Sy scrollback
 293Some portion of the scrollback for the room or thread must be on screen, but
 294the room does not need to be scrolled to the last message.
 295.It Sy message
 296A message must be sent to the room before marking it read.
 297.El
 298.It Sy read_receipt_display
 299Defines whether or not read confirmations are displayed.
 300.It Sy request_timeout
 301Defines the maximum time per request in seconds.
 302.It Sy room_labels
 303Defines which kinds of labels to put next to room names and what order to show the information in.
 304This defaults to
 305.Sy ["unread",\ "membership",\ "tags",\ "muted",\ "type"] .
 306The possible values and the information shown are:
 307.Bl -tag -width Ds
 308.It Sy membership
 309Show whether you're not currently a room member, such as when you're invited to a room.
 310.It Sy muted
 311Show
 312.Dq Muted
 313and
 314.Dq Calmed
 315if the room doesn't notify for all new messages.
 316.It Sy tags
 317Show if the room has been tagged, such as a Favorite or Low Priority room.
 318.It Sy type
 319Show if this is a regular room, a DM or a space when the current window shows multiple kinds.
 320.It Sy unread
 321Show if a non-muted, non-calmed room has unread messages or mentions.
 322.El
 323.It Sy rooms
 324Overrides values for the specified room.
 325See
 326.Sx "ROOM OVERRIDES"
 327for details on the format.
 328.It Sy send_on_enter
 329If
 330.Sy true
 331(the default), pressing enter in insert mode will send the message instead of inserting a linebreak.
 332.It Sy sort
 333Configures how to sort the lists shown in windows like
 334.Sy :rooms
 335or
 336.Sy :members .
 337See
 338.Sx "SORTING LISTS"
 339for more details.
 340.It Sy state_event_display
 341Defines whether the state events like joined or left are shown.
 342.It Sy sync_delay_ms
 343How long to wait after a sync completes before doing the next one.
 344Defaults to 250 milliseconds.
 345.It Sy theme
 346Configure which theme to use at startup.
 347Defaults to
 348.Dq Sy "default" .
 349.It Sy terminal
 350Subsection for configuring how specific terminal features are used (or not used).
 351See
 352.Sx TERMINAL
 353for more details.
 354.It Sy time_format
 355A strftime format string for the time shown beside each message.
 356See
 357.Lk https://docs.rs/chrono/latest/chrono/format/strftime/index.html
 358for the conversion specifiers.
 359The value is the full gutter text, including any brackets or spacing.
 360Its display width, measured by rendering the format for a sample timestamp,
 361is the width of the time column and does not change from message to message.
 362An empty string disables the time display and reserves no columns.
 363Defaults to
 364.Dq "  [%T]" ,
 365which renders as
 366.Dq "  [HH:MM:SS]" .
 367.It Sy typing_notice_send
 368Defines whether or not the typing state is sent.
 369.It Sy typing_notice_display
 370Defines whether or not the typing state is displayed.
 371.It Sy users
 372Overrides values for the specified user.
 373See
 374.Sx "USER OVERRIDES"
 375for details on the format.
 376.It Sy username_display
 377Defines how usernames are shown for message senders.
 378Possible values are
 379.Dq Sy username ,
 380.Dq Sy localpart ,
 381or
 382.Dq Sy displayname .
 383.It Sy user_gutter_width
 384Specify the width of the column where usernames are displayed in a room.
 385Usernames that are too long are truncated.
 386If this value is less than 3, the usernames are displayed in an extra line at the top of the message
 387and this value is only used to indent the message.
 388Defaults to 30.
 389.It Sy tabstop
 390Number of spaces that a <Tab> counts for.
 391Defaults to 4.
 392.It Sy ssl_verify
 393Enable SSL verification for the HTTP requests.
 394Defaults to true.
 395.El
 396.Ss Example 1: Avoid showing Emojis (useful for terminals w/o support)
 397.Bd -literal -offset indent
 398[settings]
 399username = "username"
 400message_shortcode_display = true
 401reaction_shortcode_display = true
 402.Ed
 403.Ss Example 2: Increase request timeout to 2 minutes for a slow homeserver
 404.Bd -literal -offset indent
 405[settings]
 406request_timeout = 120
 407.Ed
 408.Sh ENCRYPTION
 409The
 410.Sy settings.encryption
 411subsection allows controlling how encrypted rooms are presented.
 412.Pp
 413The available fields in this subsection are:
 414.Bl -tag -width Ds
 415.It Sy icon_encrypted
 416Override the encrypted room icon used in the message bar prompt or title.
 417Defaults to a green
 418.Sy [E] .
 419.It Sy icon_unencrypted
 420Override the unencrypted room icon used in the message bar prompt or title.
 421Defaults to a red
 422.Sy [U] .
 423.It Sy icon_unknown
 424Override the unknown encryption status icon used in the message bar prompt or title.
 425Defaults to a yellow
 426.Sy [?] .
 427.It Sy indicator
 428Defines when an encryption status indicator is shown.
 429Possible values are:
 430.Dq Sy enabled
 431(default, always indicate status),
 432.Dq Sy disabled
 433(never indicate status),
 434.Dq Sy only-unencrypted ,
 435and
 436.Dq Sy only-encrypted .
 437.It Sy indicator_location
 438Defines where the encryption status indicator is shown when relevant.
 439Possible values are:
 440.Dq Sy title ,
 441and
 442.Dq Sy prompt
 443(the default).
 444Both can be used via
 445.Dq Sy title|prompt .
 446.El
 447.Sh COLORS
 448The
 449.Sy settings.users
 450and
 451.Sy theme
 452subsections allows configuring the appearance of many elements.
 453For settings that take a color value, you can use either a named color, an 8-bit color value or a hex value.
 454.Pp
 455The named colors are:
 456.Dq Sy black ,
 457.Dq Sy red ,
 458.Dq Sy green ,
 459.Dq Sy yellow ,
 460.Dq Sy blue ,
 461.Dq Sy magenta ,
 462.Dq Sy cyan ,
 463.Dq Sy gray ,
 464.Dq Sy dark-gray ,
 465.Dq Sy light-red ,
 466.Dq Sy light-green ,
 467.Dq Sy light-yellow ,
 468.Dq Sy light-blue ,
 469.Dq Sy light-magenta ,
 470.Dq Sy light-cyan ,
 471.Dq Sy white ,
 472and
 473.Dq Sy reset .
 474The 8-bit ANSI color must in the range of 0 to 255 where the first 16 colors correspond to the named colors.
 475The hex value is given as
 476.Dq Sy #RRGGBB .
 477If the terminal does not support truecolor, all hex colors will fall back to the default text color.
 478All values must be given as a string.
 479.Sh IMAGE PREVIEWS
 480The
 481.Sy settings.image_preview
 482subsection allows configuring image previews.
 483.Pp
 484The available fields in this subsection are:
 485.Bl -tag -width Ds
 486.It Sy enabled
 487Defaults to
 488.Sy true .
 489.It Sy size
 490An optional object with
 491.Sy width
 492and
 493.Sy height
 494fields to specify the preview size in cells.
 495Defaults to 66 and 10.
 496.It Sy protocol
 497An optional object to override settings that will normally be guessed automatically:
 498.Bl -tag -width Ds
 499.It Sy type
 500An optional string set to one of the protocol types:
 501.Dq Sy sixel ,
 502.Dq Sy kitty ,
 503.Dq Sy iterm2 ,
 504and
 505.Dq Sy halfblocks .
 506.It Sy font_size
 507An optional list of two numbers representing font width and height in pixels.
 508.It Sy filter
 509The sample filter used to scale images.
 510Possible values are:
 511.Dq Sy Nearest ,
 512.Dq Sy Triangle
 513(default) ,
 514.Dq Sy CatmullRom ,
 515.Dq Sy Gaussian ,
 516and
 517.Dq Sy Lanczos3 .
 518See
 519.Lk https://docs.rs/image/0.25.10/image/imageops/enum.FilterType.html
 520for more information.
 521.El
 522.El
 523.Sh MOUSE
 524The
 525.Sy settings.mouse
 526subsection allows enabling mouse support.
 527Currently the only difference is that scrolling moves the window view instead of changing the selection.
 528.Pp
 529The available fields in this subsection are:
 530.Bl -tag -width Ds
 531.It Sy enabled
 532Defaults to
 533.Sy false .
 534Setting this field to
 535.Sy true
 536enables mouse support.
 537.El
 538.Sh NOTIFICATIONS
 539The
 540.Sy settings.notifications
 541subsection allows configuring how notifications for new messages behave.
 542.Pp
 543The available fields in this subsection are:
 544.Bl -tag -width Ds
 545.It Sy enabled
 546Defaults to
 547.Sy false .
 548Setting this field to
 549.Sy true
 550enables notifications.
 551.It Sy via
 552Defaults to
 553.Dq Sy desktop
 554to use the desktop mechanism (default).
 555Setting this field to
 556.Dq Sy bell
 557will use the terminal bell instead.
 558Both can be used via
 559.Dq Sy desktop|bell .
 560.It Sy show_message
 561controls whether to show the message in the desktop notification, and defaults to
 562.Sy true .
 563Messages are truncated beyond a small length.
 564The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb.
 565In other words, you can simply change the rules with another client.
 566.It Sy sound_hint
 567Controls the notification sound name that is passed as a hint to the notification daemon.
 568.El
 569.Ss Example 1: Enable notifications with default options
 570.Bd -literal -offset indent
 571[settings.notifications]
 572enabled = true
 573.Ed
 574.Ss Example 2: Enable notifications using terminal bell
 575.Bd -literal -offset indent
 576[settings.notifications]
 577enabled = true
 578via = "bell"
 579show_message = false
 580.Ed
 581.Ss Example 3: Enable notifications using the instant message sound
 582.Bd -literal -offset indent
 583[settings.notifications]
 584enabled = true
 585sound_hint = "message-new-instant" # Linux
 586sound_hint = "IM"                  # Windows
 587.Ed
 588.Sh "PROXYING"
 589The
 590.Sy settings.proxy
 591subsection allows configuring proxying for requests to the homeserver.
 592.Pp
 593Fields available within this subsection are:
 594.Bl -tag -width Ds
 595.It Sy url
 596Either a
 597.Sy socks5://IP:PORT
 598URL for a SOCKS server to proxy request through,
 599or a
 600.Sy http[s]://[USER:PASS@]HOST[:PORT]/
 601URL to do HTTP(S) proxying through.
 602Setting this to the empty string will explicitly disable proxying, and any environment variables will be ignored.
 603.It Sy auth
 604A value to send in a
 605.Sy Proxy-Authorization
 606header if your HTTP(S) proxy requires it,
 607such as for doing Bearer authentication with a token.
 608.It Sy headers
 609A subsection for specifying additional headers and values to include in requests sent to the proxy.
 610For example, custom HTTPS proxy server software may require specifying a
 611.Sy User-Agent
 612or a custom header like
 613.Sy X-Proxy-Token
 614in order to be allowed to send request through it.
 615.El
 616.Sh "SORTING LISTS"
 617The
 618.Sy settings.sort
 619subsection allows configuring how different windows have their contents sorted.
 620.Pp
 621Fields available within this subsection are:
 622.Bl -tag -width Ds
 623.It Sy rooms
 624How to sort the
 625.Sy :rooms
 626window.
 627Defaults to
 628.Sy ["favorite",\ "invite",\ "lowpriority",\ "mentions",\ "notifications",\ "marked_unread",\ "joined",\ "space",\ "dm",\ "recent",\ "name"] .
 629.It Sy chats
 630How to sort the
 631.Sy :chats
 632window.
 633Defaults to the
 634.Sy rooms
 635value.
 636.It Sy dms
 637How to sort the
 638.Sy :dms
 639window.
 640Defaults to the
 641.Sy rooms
 642value.
 643.It Sy spaces
 644How to sort the
 645.Sy :spaces
 646window.
 647Defaults to the
 648.Sy rooms
 649value.
 650.It Sy space
 651How to sort rooms in a space.
 652Defaults to
 653.Sy ["space",\ "joined",\ "spaceorder"] .
 654.It Sy members
 655How to sort the
 656.Sy :members
 657window.
 658Defaults to
 659.Sy ["power",\ "knock",\ "~invite",\ "id"] .
 660.El
 661.Pp
 662The available values for sorting rooms are:
 663.Bl -tag -width Ds
 664.It Sy alias
 665Sort rooms by alphabetically ascending canonical room alias.
 666.It Sy dm
 667Put direct messages before other rooms.
 668.It Sy favorite
 669Put favorite rooms before other rooms.
 670.It Sy id
 671Sort rooms by alphabetically ascending Matrix room identifier.
 672.It Sy invite
 673Put invites before other rooms.
 674.It Sy joined
 675Put joined rooms before unjoined rooms.
 676.It Sy lowpriority
 677Put lowpriority rooms after other rooms.
 678.It Sy mentions
 679Put rooms with unread mentions before other rooms.
 680.It Sy name
 681Sort rooms by alphabetically ascending room name.
 682.It Sy notifications
 683Put rooms with unread notifications before other rooms.
 684.It Sy marked_unread
 685Put rooms that were manually marked as unread before other rooms.
 686.It Sy recent
 687Sort rooms by most recent message timestamp.
 688.It Sy server
 689Sort rooms by alphabetically ascending server name from the room alias.
 690This will fall back to the server from the room identifier if there is
 691no canonical alias for the room.
 692.It Sy unread
 693Put rooms with unread messages before other rooms.
 694.It Sy recent
 695Sort rooms by most recent message timestamp.
 696.It Sy space
 697Put spaces before other rooms.
 698.El
 699The available values for sorting space members are the same as for sorting rooms with the addition:
 700.Bl -tag -width Ds
 701.It Sy spaceorder
 702Sort rooms according to the relative order defined by the space admins.
 703.El
 704.Pp
 705The available values for sorting users are:
 706.Bl -tag -width Ds
 707.It Sy power
 708Put users with higher power level before other users.
 709.It Sy id
 710Sort users by alphabetically ascending Matrix user identifier.
 711.It Sy localpart
 712Sort users by alphabetically ascending local part of the user identifier.
 713.It Sy server
 714Sort users by alphabetically ascending server name from the user identifier.
 715.It Sy invite
 716Put invited users before other members.
 717.It Sy knock
 718Put knocking users before other members.
 719.El
 720.Pp
 721Add a
 722.Dq Sy ~
 723in front of any value to flip the order.
 724.Ss Example 1: Group room members by their server first and descending localpart second
 725.Bd -literal -offset indent
 726[settings.sort]
 727members = ["server", "~localpart"]
 728.Ed
 729.Sh TERMINAL
 730The
 731.Sy settings.terminal
 732subsection allows overriding how
 733.Sy iamb
 734interacts with your terminal.
 735.Pp
 736The available fields in this subsection are:
 737.Bl -tag -width Ds
 738.It Sy cursor_shape
 739Control the terminal cursor shape used by iamb.
 740Possible values are:
 741.Dq Sy default ,
 742.Dq Sy auto ,
 743.Dq Sy block ,
 744.Dq Sy line , and
 745.Dq Sy underline .
 746The mode
 747.Dq Sy auto
 748switches between
 749.Dq Sy block
 750in normal mode,
 751.Dq Sy line
 752in insert mode, and
 753.Dq Sy underline
 754in replace mode.
 755Defaults to
 756.Dq Sy auto .
 757.It Sy enable_extended_keys
 758Defines whether to explicitly enable or disable requesting extended keypresses from your terminal.
 759By default, when unset,
 760.Sy iamb
 761will attempt to auto-detect support in your terminal and request extended keypresses from the terminal if supported.
 762.It Sy enable_title
 763Whether to set the title of the terminal window to
 764.Dq Sy iamb (<user_id>) .
 765Defaults to true.
 766.El
 767.Sh "THEME OVERRIDES"
 768The
 769.Sy theme
 770subsection allows you to override the colors used for different parts of the user interface.
 771Individual, stylable UI elements have the following properties:
 772.Bl -tag -width Ds
 773.It Sy color
 774Configure the foreground color for text.
 775See the
 776.Sx "COLORS"
 777section for the supported color format.
 778.It Sy background
 779Configure the background color for text.
 780See the
 781.Sx "COLORS"
 782section for the supported color format.
 783.It Sy modifiers
 784An array of strings specifying modifiers to how the text is styled.
 785Possible values are
 786.Dq Sy "bold" ,
 787.Dq Sy "crossed-out" ,
 788.Dq Sy "dim" ,
 789.Dq Sy "hidden" ,
 790.Dq Sy "italic" ,
 791.Dq Sy "rapid-blink" ,
 792.Dq Sy "reversed" ,
 793.Dq Sy "slow-blink" ,
 794and
 795.Dq Sy "underlined" .
 796Modifier names prefixed with
 797.Sy ~
 798will remove the modifier if it was inherited from another default, global config, etc.
 799.El
 800.Pp
 801Some special UI elements also have additional properties available:
 802.Bl -tag -width Ds
 803.It Sy line
 804For UI elements that draw a block, such as
 805.Sy "theme.windows.border" ,
 806.Sy "theme.windows.border_focused" ,
 807.Sy "theme.messages.code_block" ,
 808or
 809.Sy "theme.messages.table" ,
 810you can specify what characters should be used to draw the bounding line.
 811.Pp
 812Possible values are
 813.Dq Sy "plain" ,
 814.Dq Sy "rounded" ,
 815.Dq Sy "double" ,
 816.Dq Sy "thick" ,
 817.Dq Sy "double-dashed-light" ,
 818.Dq Sy "double-dashed-heavy" ,
 819.Dq Sy "triple-dashed-light" ,
 820.Dq Sy "triple-dashed-heavy" ,
 821.Dq Sy "quadruple-dashed-light" ,
 822and
 823.Dq Sy "quadruple-dashed-heavy" .
 824.It Sy colors
 825For UI elements that can use multiple colors, like
 826.Sy "theme.users"
 827for usernames, you can specify an array of colors that make up the pallete to pick from.
 828.El
 829.Pp
 830Within
 831.Sy theme ,
 832there are several subsections for specific UI areas:
 833.Bl -tag -width Ds
 834.It Sy default
 835The base, default style that everything else should inherit.
 836.It Sy selected
 837Additional options for how to style selected items in lists and timelines.
 838.It Sy cmdbar
 839For controlling how the text in the command bar is styled.
 840.Bl -tag -width Ds
 841.It Sy default
 842Configure the default styling for the command bar.
 843.It Sy prompt
 844Configure the styling for the prompt in the command bar.
 845.It Sy completions
 846Configure the styling for displaying possible command bar completions.
 847.It Sy error
 848Configure the styling for error messages shown in the command bar.
 849.It Sy info
 850Configure the styling for info messages shown in the command bar.
 851.El
 852.It Sy encryption
 853For controlling how the encryption indicators are styled.
 854UI elements you can set within this subsection are:
 855.Bl -tag -width Ds
 856.It Sy default
 857Configure the default styling for the encryption status indicators.
 858.It Sy icon_encrypted
 859Configure the styling for the encrypted indicator.
 860.It Sy icon_unencrypted
 861Configure the styling for the unencrypted indicator.
 862.It Sy icon_unknown
 863Configure the styling for the unknown encryption status indicator.
 864.El
 865.It Sy msgbar
 866For controlling how the text in the message bar is styled.
 867UI elements you can set within this subsection are:
 868.Bl -tag -width Ds
 869.It Sy default
 870Configure the default styling for the message bar.
 871.El
 872.It Sy messages
 873For controlling how the bodies of messages are styled.
 874UI elements you can set within this subsection are:
 875.Bl -tag -width Ds
 876.It Sy default
 877Configure the default styling for messages.
 878.It Sy "blockquote"
 879Configure the styling for the line used for indenting
 880.Sy "<blockquote>"
 881elements in formatted message bodies.
 882.It Sy code
 883Configure the styling for
 884.Sy "<code>"
 885elements in formatted message bodies.
 886.It Sy "code_block"
 887Configure the styling for
 888.Sy "<pre>"
 889elements in formatted message bodies.
 890.It Sy "emphasis"
 891Configure the styling for
 892.Sy "<em>"
 893and
 894.Sy "<i>"
 895elements in formatted message bodies.
 896.It Sy "ruler"
 897Configure the styling for the line used for drawing
 898.Sy "<ruler>"
 899elements in formatted message bodies.
 900.It Sy "strikethrough"
 901Configure the styling for
 902.Sy "<del>" ,
 903.Sy "<s>" ,
 904and
 905.Sy "<strike>"
 906elements in formatted message bodies.
 907.It Sy "strong"
 908Configure the styling for
 909.Sy "<strong>"
 910and
 911.Sy "<b>"
 912elements in formatted message bodies.
 913.It Sy "table"
 914Configure the styling for the line used for drawing the cells for
 915.Sy "<table>"
 916elements in formatted message bodies.
 917.It Sy "underlined"
 918Configure the styling for
 919.Sy "<u>"
 920elements in formatted message bodies.
 921.El
 922.It Sy timeline
 923For controlling how other elements within the timeline are styled.
 924UI elements you can set within this subsection are:
 925.Bl -tag -width Ds
 926.It Sy default
 927Configure the default styling for text in the timeline.
 928.It Sy date
 929Configure the how the dates for messages are styled.
 930.It Sy time
 931Configure the how the time a message was sent is styled.
 932.It Sy unread_marker
 933Configure the style of the bar for marking the start of unread messages.
 934.It Sy state
 935Configure how the text shown for state events is styled.
 936.It Sy sticker
 937Configure how any text shown for stickers is styled.
 938.It Sy poll
 939Configure how the text in polls is styled.
 940.It Sy notice
 941Configure how server notices is styled.
 942.It Sy redacted
 943Configure how redacted events in the timeline is styled.
 944.El
 945.It Sy users
 946For controlling how usernames and identifiers are styled.
 947.Pp
 948In addition to the common
 949.Sy color ,
 950.Sy background ,
 951and
 952.Sy modifiers
 953properties, you can also specify a
 954.Sy colors
 955field for providing a broad palette of colors from which to style usernames.
 956You 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
 957.Sy "rainbow-light"
 958or
 959.Sy "rainbow-dark"
 960to use a large light- or dark-colored rainbow palette for usernames.
 961.Pp
 962By default, this is a selection of 13 standard ANSI colors that should look okay on both light and dark backgrounds.
 963You can set this array to
 964.Sy "[]"
 965to force all usernames to use the value in
 966.Sy color
 967or its inherited value from
 968.Sy "theme.default" .
 969.It Sy completion
 970For controlling how the completion menu is styled.
 971.Bl -tag -width Ds
 972.It Sy default
 973Configure the default style for entries in the menu.
 974.It Sy selected
 975Configure how the selected entry is styled.
 976.El
 977.It Sy windows
 978For controlling how the windows are styled.
 979.Bl -tag -width Ds
 980.It Sy default
 981Configure the default style for characters that draw the window border or title.
 982.It Sy border
 983Configure how the border characters are styled.
 984.It Sy border_focused
 985Configure how the border characters for focused window are styled.
 986.It Sy title
 987Configure how the window titles are styled.
 988.El
 989.It Sy tabs
 990For controlling how tabs are styled.
 991UI elements you can set within this subsection are:
 992.Bl -tag -width Ds
 993.It Sy title
 994Configure how tab titles are styled.
 995.It Sy title_focused
 996Configure how the title of the focused tab is styled.
 997.El
 998.It Sy rooms
 999For controlling how lists of rooms like
1000.Sy :unreads
1001or
1002.Sy :chats
1003are styled.
1004UI elements you can set within this subsection are:
1005.Bl -tag -width Ds
1006.It Sy default
1007Configure the default style for text in room lists.
1008.It Sy labels
1009Configure the style for the labels following room names in lists.
1010.It Sy notification
1011Configure how rooms with unread notifications are displayed.
1012.Bl -tag -width Ds
1013.It Sy number
1014Configure the style of the number showing how many unread notifications a room has.
1015.It Sy name
1016Configure the style for rooms with unread notifications.
1017.It Sy labels
1018Configure the style for the labels of rooms with unread notifications.
1019.El
1020.It Sy mention
1021Configure how rooms with unread mentions are displayed.
1022Accepts the same values as
1023.Sy notification .
1024.It Sy unread
1025Configure how rooms with unread muted messages are displayed.
1026Accepts the same values as
1027.Sy notification .
1028.It Sy marked_unread .
1029Configure how rooms that are manually marked as unread are displayed.
1030Accepts the same values as
1031.Sy notification .
1032.El
1033.El
1034.Ss Example 1: Make code blocks a lighter gray background and state events red
1035.Bd -literal -offset indent
1036[theme.messages]
1037code_block.background = "245"
1038
1039[theme.timeline]
1040state.color = "cyan"
1041.Ed
1042.Ss Example 2: Replace default bold style in window and tab titles with italic
1043.Bd -literal -offset indent
1044[theme]
1045tabs.title.modifiers = ["~bold", "italic"]
1046windows.title.modifiers = ["~bold", "italic"]
1047.Ed
1048.Sh "ROOM OVERRIDES"
1049The
1050.Sy settings.rooms
1051subsections allows overriding how specific rooms are displayed.
1052Overrides are mapped onto Matrix Room IDs, Matrix Room Aliases, or User IDs for DMs.
1053They are typically written as inline tables containing the following keys:
1054.Bl -tag -width Ds
1055.It Sy name
1056Change the display name of the room.
1057.El
1058.Ss Example 1: Override how the iamb rooms appear in the room list
1059.Bd -literal -offset indent
1060[settings.rooms]
1061"#iamb-users:0x.badd.cafe".name = "iamb user discussion"
1062"!EpWjxfRMnoLQPCKZei:0x.badd.cafe".name = "iamb developers"
1063"@ada:example.com".name = "My DM with Ada Lovelace"
1064.Ed
1065.Sh "USER OVERRIDES"
1066The
1067.Sy settings.users
1068subsections allows overriding how specific senders are displayed.
1069Overrides are mapped onto Matrix User IDs such as
1070.Sy @user:matrix.org ,
1071and are typically written as inline tables containing the following keys:
1072.Bl -tag -width Ds
1073.It Sy name
1074Change the display name of the user.
1075.It Sy color
1076Change the color the user is shown as.
1077See the
1078.Sx "COLORS"
1079section for the supported color format.
1080.El
1081.Ss Example 1: Override how @ada:example.com appears in chat
1082.Bd -literal -offset indent
1083[settings.users]
1084"@ada:example.com" = { name = "Ada Lovelace", color = "light-red" }
1085.Ed
1086.Sh STARTUP LAYOUT
1087The
1088.Sy layout
1089section allows configuring the initial set of tabs and windows to show when
1090starting the client.
1091.Bl -tag -width Ds
1092.It Sy style
1093Specifies what window layout to load when starting.
1094Valid values are
1095.Dq Sy restore
1096to restore the layout from the last time the client was exited,
1097.Dq Sy new
1098to open a single window (uses the value of
1099.Sy default_room
1100if set), or
1101.Dq Sy config
1102to open the layout described under
1103.Sy tabs .
1104.It Sy tabs
1105If
1106.Sy style
1107is set to
1108.Sy config ,
1109then this value will be used to open a set of tabs and windows at startup.
1110Each object can contain either a
1111.Sy window
1112key specifying a username, room identifier or room alias to show, or a
1113.Sy split
1114key specifying an array of window objects.
1115.El
1116.Ss Example 1: Show a single room every startup
1117.Bd -literal -offset indent
1118[settings]
1119default_room = "#iamb-users:0x.badd.cafe"
1120
1121[layout]
1122style = "new"
1123.Ed
1124.Ss Example 2: Show a specific layout every startup
1125.Bd -literal -offset indent
1126[layout]
1127style = "config"
1128
1129[[layout.tabs]]
1130window = "iamb://dms"
1131
1132[[layout.tabs]]
1133window = "iamb://rooms"
1134
1135[[layout.tabs]]
1136split = [
1137    { "window" = "#iamb-users:0x.badd.cafe" },
1138    { "window" = "#iamb-dev:0x.badd.cafe" }
1139]
1140.Ed
1141.Sh "CUSTOM COMMAND ALIASES"
1142The
1143.Sy aliases
1144subsections allow configuring custom aliases.
1145.Ss Example 1: Alias commands to single-letter versions
1146.Bd -literal -offset indent
1147[aliases]
1148"c" = "chats"
1149"d" = "download"
1150"e" = "edit"
1151"o" = "open"
1152"r" = "rooms"
1153.Ed
1154.Sh "CUSTOM KEYBINDINGS"
1155The
1156.Sy macros
1157subsections allow configuring custom keybindings.
1158Available subsections are:
1159.Bl -tag -width Ds
1160.It Sy insert , Sy i
1161Map the key sequences in this section in
1162.Sy Insert
1163mode.
1164.It Sy normal , Sy n
1165Map the key sequences in this section in
1166.Sy Normal
1167mode.
1168.It Sy visual , Sy v
1169Map the key sequences in this section in
1170.Sy Visual
1171mode.
1172.It Sy select
1173Map the key sequences in this section in
1174.Sy Select
1175mode.
1176.It Sy command , Sy c
1177Map the key sequences in this section in
1178.Sy Visual
1179mode.
1180.It Sy operator-pending
1181Map the key sequences in this section in
1182.Sy "Operator Pending"
1183mode.
1184.El
1185.Pp
1186Multiple modes can be given together by separating their names with
1187.Dq Sy | .
1188.Ss Example 1: Use "jj" to exit Insert mode
1189.Bd -literal -offset indent
1190[macros.insert]
1191"jj" = "<Esc>"
1192.Ed
1193.Ss Example 2: Use "V" for switching between message bar and room history
1194.Bd -literal -offset indent
1195[macros."normal|visual"]
1196"V" = "<C-W>m"
1197.Ed
1198.Sh DIRECTORIES
1199Specifies the directories to save data in.
1200Configured as an object under the key
1201.Sy dirs .
1202.Bl -tag -width Ds
1203.It Sy cache
1204Specifies where to store assets and temporary data in.
1205(For example,
1206.Sy logs
1207will also go in here by default.)
1208Defaults to
1209.Ev $XDG_CACHE_HOME/iamb .
1210.It Sy data
1211Specifies where to store persistent data in, such as E2EE room keys.
1212Defaults to
1213.Ev $XDG_DATA_HOME/iamb .
1214.It Sy downloads
1215Specifies where to store downloaded files.
1216Defaults to
1217.Ev $XDG_DOWNLOAD_DIR .
1218.It Sy logs
1219Specifies where to store log files.
1220Defaults to
1221.Ev ${cache}/logs .
1222.El
1223.Sh FILES
1224.Bl -tag -width Ds
1225.It Pa ~/.config/iamb/config.toml
1226The TOML configuration file that
1227.Sy iamb
1228loads by default.
1229.It Pa ~/.config/iamb/config.json
1230A JSON configuration file that
1231.Sy iamb
1232will load if the TOML one is not found.
1233.It Pa /usr/share/iamb/config.example.toml
1234A sample configuration file showing the basic values needed to get started.
1235.It Pa /usr/share/iamb/config.full.toml
1236A sample configuration file with examples of how to set many different values.
1237.El
1238.Sh "REPORTING BUGS"
1239Please report bugs in
1240.Sy iamb
1241or its manual pages at
1242.Lk https://github.com/ulyssa/iamb/issues
1243.Sh SEE ALSO
1244.Xr iamb 1
1245.Pp
1246Extended documentation is available online at
1247.Lk https://iamb.chat