docs/iamb.5

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