docs/iamb.5
1249 lines · 34731 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 reply_on_insert
301If enabled entering insert mode while a message is selected will reply to that message (unless you are already writing another message).
302.It Sy request_timeout
303Defines the maximum time per request in seconds.
304.It Sy room_labels
305Defines which kinds of labels to put next to room names and what order to show the information in.
306This defaults to
307.Sy ["unread",\ "membership",\ "tags",\ "muted",\ "type"] .
308The possible values and the information shown are:
309.Bl -tag -width Ds
310.It Sy membership
311Show whether you're not currently a room member, such as when you're invited to a room.
312.It Sy muted
313Show
314.Dq Muted
315and
316.Dq Calmed
317if the room doesn't notify for all new messages.
318.It Sy tags
319Show if the room has been tagged, such as a Favorite or Low Priority room.
320.It Sy type
321Show if this is a regular room, a DM or a space when the current window shows multiple kinds.
322.It Sy unread
323Show if a non-muted, non-calmed room has unread messages or mentions.
324.El
325.It Sy rooms
326Overrides values for the specified room.
327See
328.Sx "ROOM OVERRIDES"
329for details on the format.
330.It Sy send_on_enter
331If
332.Sy true
333(the default), pressing enter in insert mode will send the message instead of inserting a linebreak.
334.It Sy sort
335Configures how to sort the lists shown in windows like
336.Sy :rooms
337or
338.Sy :members .
339See
340.Sx "SORTING LISTS"
341for more details.
342.It Sy state_event_display
343Defines whether the state events like joined or left are shown.
344.It Sy sync_delay_ms
345How long to wait after a sync completes before doing the next one.
346Defaults to 250 milliseconds.
347.It Sy theme
348Configure which theme to use at startup.
349Defaults to
350.Dq Sy "default" .
351.It Sy terminal
352Subsection for configuring how specific terminal features are used (or not used).
353See
354.Sx TERMINAL
355for more details.
356.It Sy time_format
357A strftime format string for the time shown beside each message.
358See
359.Lk https://docs.rs/chrono/latest/chrono/format/strftime/index.html
360for the conversion specifiers.
361The value is the full gutter text, including any brackets or spacing.
362Its display width, measured by rendering the format for a sample timestamp,
363is the width of the time column and does not change from message to message.
364An empty string disables the time display and reserves no columns.
365Defaults to
366.Dq " [%T]" ,
367which renders as
368.Dq " [HH:MM:SS]" .
369.It Sy typing_notice_send
370Defines whether or not the typing state is sent.
371.It Sy typing_notice_display
372Defines whether or not the typing state is displayed.
373.It Sy users
374Overrides values for the specified user.
375See
376.Sx "USER OVERRIDES"
377for details on the format.
378.It Sy username_display
379Defines how usernames are shown for message senders.
380Possible values are
381.Dq Sy username ,
382.Dq Sy localpart ,
383or
384.Dq Sy displayname .
385.It Sy user_gutter_width
386Specify the width of the column where usernames are displayed in a room.
387Usernames that are too long are truncated.
388If this value is less than 3, the usernames are displayed in an extra line at the top of the message
389and this value is only used to indent the message.
390Defaults to 30.
391.It Sy tabstop
392Number of spaces that a <Tab> counts for.
393Defaults to 4.
394.It Sy ssl_verify
395Enable SSL verification for the HTTP requests.
396Defaults to true.
397.El
398.Ss Example 1: Avoid showing Emojis (useful for terminals w/o support)
399.Bd -literal -offset indent
400[settings]
401username = "username"
402message_shortcode_display = true
403reaction_shortcode_display = true
404.Ed
405.Ss Example 2: Increase request timeout to 2 minutes for a slow homeserver
406.Bd -literal -offset indent
407[settings]
408request_timeout = 120
409.Ed
410.Sh ENCRYPTION
411The
412.Sy settings.encryption
413subsection allows controlling how encrypted rooms are presented.
414.Pp
415The available fields in this subsection are:
416.Bl -tag -width Ds
417.It Sy icon_encrypted
418Override the encrypted room icon used in the message bar prompt or title.
419Defaults to a green
420.Sy [E] .
421.It Sy icon_unencrypted
422Override the unencrypted room icon used in the message bar prompt or title.
423Defaults to a red
424.Sy [U] .
425.It Sy icon_unknown
426Override the unknown encryption status icon used in the message bar prompt or title.
427Defaults to a yellow
428.Sy [?] .
429.It Sy indicator
430Defines when an encryption status indicator is shown.
431Possible values are:
432.Dq Sy enabled
433(default, always indicate status),
434.Dq Sy disabled
435(never indicate status),
436.Dq Sy only-unencrypted ,
437and
438.Dq Sy only-encrypted .
439.It Sy indicator_location
440Defines where the encryption status indicator is shown when relevant.
441Possible values are:
442.Dq Sy title ,
443and
444.Dq Sy prompt
445(the default).
446Both can be used via
447.Dq Sy title|prompt .
448.El
449.Sh COLORS
450The
451.Sy settings.users
452and
453.Sy theme
454subsections allows configuring the appearance of many elements.
455For settings that take a color value, you can use either a named color, an 8-bit color value or a hex value.
456.Pp
457The named colors are:
458.Dq Sy black ,
459.Dq Sy red ,
460.Dq Sy green ,
461.Dq Sy yellow ,
462.Dq Sy blue ,
463.Dq Sy magenta ,
464.Dq Sy cyan ,
465.Dq Sy gray ,
466.Dq Sy dark-gray ,
467.Dq Sy light-red ,
468.Dq Sy light-green ,
469.Dq Sy light-yellow ,
470.Dq Sy light-blue ,
471.Dq Sy light-magenta ,
472.Dq Sy light-cyan ,
473.Dq Sy white ,
474and
475.Dq Sy reset .
476The 8-bit ANSI color must in the range of 0 to 255 where the first 16 colors correspond to the named colors.
477The hex value is given as
478.Dq Sy #RRGGBB .
479If the terminal does not support truecolor, all hex colors will fall back to the default text color.
480All values must be given as a string.
481.Sh IMAGE PREVIEWS
482The
483.Sy settings.image_preview
484subsection allows configuring image previews.
485.Pp
486The available fields in this subsection are:
487.Bl -tag -width Ds
488.It Sy enabled
489Defaults to
490.Sy true .
491.It Sy size
492An optional object with
493.Sy width
494and
495.Sy height
496fields to specify the preview size in cells.
497Defaults to 66 and 10.
498.It Sy protocol
499An optional object to override settings that will normally be guessed automatically:
500.Bl -tag -width Ds
501.It Sy type
502An optional string set to one of the protocol types:
503.Dq Sy sixel ,
504.Dq Sy kitty ,
505.Dq Sy iterm2 ,
506and
507.Dq Sy halfblocks .
508.It Sy font_size
509An optional list of two numbers representing font width and height in pixels.
510.It Sy filter
511The sample filter used to scale images.
512Possible values are:
513.Dq Sy Nearest ,
514.Dq Sy Triangle
515(default) ,
516.Dq Sy CatmullRom ,
517.Dq Sy Gaussian ,
518and
519.Dq Sy Lanczos3 .
520See
521.Lk https://docs.rs/image/0.25.10/image/imageops/enum.FilterType.html
522for more information.
523.El
524.El
525.Sh MOUSE
526The
527.Sy settings.mouse
528subsection allows enabling mouse support.
529Currently the only difference is that scrolling moves the window view instead of changing the selection.
530.Pp
531The available fields in this subsection are:
532.Bl -tag -width Ds
533.It Sy enabled
534Defaults to
535.Sy false .
536Setting this field to
537.Sy true
538enables mouse support.
539.El
540.Sh NOTIFICATIONS
541The
542.Sy settings.notifications
543subsection allows configuring how notifications for new messages behave.
544.Pp
545The available fields in this subsection are:
546.Bl -tag -width Ds
547.It Sy enabled
548Defaults to
549.Sy false .
550Setting this field to
551.Sy true
552enables notifications.
553.It Sy via
554Defaults to
555.Dq Sy desktop
556to use the desktop mechanism (default).
557Setting this field to
558.Dq Sy bell
559will use the terminal bell instead.
560Both can be used via
561.Dq Sy desktop|bell .
562.It Sy show_message
563controls whether to show the message in the desktop notification, and defaults to
564.Sy true .
565Messages are truncated beyond a small length.
566The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb.
567In other words, you can simply change the rules with another client.
568.It Sy sound_hint
569Controls the notification sound name that is passed as a hint to the notification daemon.
570.El
571.Ss Example 1: Enable notifications with default options
572.Bd -literal -offset indent
573[settings.notifications]
574enabled = true
575.Ed
576.Ss Example 2: Enable notifications using terminal bell
577.Bd -literal -offset indent
578[settings.notifications]
579enabled = true
580via = "bell"
581show_message = false
582.Ed
583.Ss Example 3: Enable notifications using the instant message sound
584.Bd -literal -offset indent
585[settings.notifications]
586enabled = true
587sound_hint = "message-new-instant" # Linux
588sound_hint = "IM" # Windows
589.Ed
590.Sh "PROXYING"
591The
592.Sy settings.proxy
593subsection allows configuring proxying for requests to the homeserver.
594.Pp
595Fields available within this subsection are:
596.Bl -tag -width Ds
597.It Sy url
598Either a
599.Sy socks5://IP:PORT
600URL for a SOCKS server to proxy request through,
601or a
602.Sy http[s]://[USER:PASS@]HOST[:PORT]/
603URL to do HTTP(S) proxying through.
604Setting this to the empty string will explicitly disable proxying, and any environment variables will be ignored.
605.It Sy auth
606A value to send in a
607.Sy Proxy-Authorization
608header if your HTTP(S) proxy requires it,
609such as for doing Bearer authentication with a token.
610.It Sy headers
611A subsection for specifying additional headers and values to include in requests sent to the proxy.
612For example, custom HTTPS proxy server software may require specifying a
613.Sy User-Agent
614or a custom header like
615.Sy X-Proxy-Token
616in order to be allowed to send request through it.
617.El
618.Sh "SORTING LISTS"
619The
620.Sy settings.sort
621subsection allows configuring how different windows have their contents sorted.
622.Pp
623Fields available within this subsection are:
624.Bl -tag -width Ds
625.It Sy rooms
626How to sort the
627.Sy :rooms
628window.
629Defaults to
630.Sy ["favorite",\ "invite",\ "lowpriority",\ "mentions",\ "notifications",\ "marked_unread",\ "joined",\ "space",\ "dm",\ "recent",\ "name"] .
631.It Sy chats
632How to sort the
633.Sy :chats
634window.
635Defaults to the
636.Sy rooms
637value.
638.It Sy dms
639How to sort the
640.Sy :dms
641window.
642Defaults to the
643.Sy rooms
644value.
645.It Sy spaces
646How to sort the
647.Sy :spaces
648window.
649Defaults to the
650.Sy rooms
651value.
652.It Sy space
653How to sort rooms in a space.
654Defaults to
655.Sy ["space",\ "joined",\ "spaceorder"] .
656.It Sy members
657How to sort the
658.Sy :members
659window.
660Defaults to
661.Sy ["power",\ "knock",\ "~invite",\ "id"] .
662.El
663.Pp
664The available values for sorting rooms are:
665.Bl -tag -width Ds
666.It Sy alias
667Sort rooms by alphabetically ascending canonical room alias.
668.It Sy dm
669Put direct messages before other rooms.
670.It Sy favorite
671Put favorite rooms before other rooms.
672.It Sy id
673Sort rooms by alphabetically ascending Matrix room identifier.
674.It Sy invite
675Put invites before other rooms.
676.It Sy joined
677Put joined rooms before unjoined rooms.
678.It Sy lowpriority
679Put lowpriority rooms after other rooms.
680.It Sy mentions
681Put rooms with unread mentions before other rooms.
682.It Sy name
683Sort rooms by alphabetically ascending room name.
684.It Sy notifications
685Put rooms with unread notifications before other rooms.
686.It Sy marked_unread
687Put rooms that were manually marked as unread before other rooms.
688.It Sy recent
689Sort rooms by most recent message timestamp.
690.It Sy server
691Sort rooms by alphabetically ascending server name from the room alias.
692This will fall back to the server from the room identifier if there is
693no canonical alias for the room.
694.It Sy unread
695Put rooms with unread messages before other rooms.
696.It Sy recent
697Sort rooms by most recent message timestamp.
698.It Sy space
699Put spaces before other rooms.
700.El
701The available values for sorting space members are the same as for sorting rooms with the addition:
702.Bl -tag -width Ds
703.It Sy spaceorder
704Sort rooms according to the relative order defined by the space admins.
705.El
706.Pp
707The available values for sorting users are:
708.Bl -tag -width Ds
709.It Sy power
710Put users with higher power level before other users.
711.It Sy id
712Sort users by alphabetically ascending Matrix user identifier.
713.It Sy localpart
714Sort users by alphabetically ascending local part of the user identifier.
715.It Sy server
716Sort users by alphabetically ascending server name from the user identifier.
717.It Sy invite
718Put invited users before other members.
719.It Sy knock
720Put knocking users before other members.
721.El
722.Pp
723Add a
724.Dq Sy ~
725in front of any value to flip the order.
726.Ss Example 1: Group room members by their server first and descending localpart second
727.Bd -literal -offset indent
728[settings.sort]
729members = ["server", "~localpart"]
730.Ed
731.Sh TERMINAL
732The
733.Sy settings.terminal
734subsection allows overriding how
735.Sy iamb
736interacts with your terminal.
737.Pp
738The available fields in this subsection are:
739.Bl -tag -width Ds
740.It Sy cursor_shape
741Control the terminal cursor shape used by iamb.
742Possible values are:
743.Dq Sy default ,
744.Dq Sy auto ,
745.Dq Sy block ,
746.Dq Sy line , and
747.Dq Sy underline .
748The mode
749.Dq Sy auto
750switches between
751.Dq Sy block
752in normal mode,
753.Dq Sy line
754in insert mode, and
755.Dq Sy underline
756in replace mode.
757Defaults to
758.Dq Sy auto .
759.It Sy enable_extended_keys
760Defines whether to explicitly enable or disable requesting extended keypresses from your terminal.
761By default, when unset,
762.Sy iamb
763will attempt to auto-detect support in your terminal and request extended keypresses from the terminal if supported.
764.It Sy enable_title
765Whether to set the title of the terminal window to
766.Dq Sy iamb (<user_id>) .
767Defaults to true.
768.El
769.Sh "THEME OVERRIDES"
770The
771.Sy theme
772subsection allows you to override the colors used for different parts of the user interface.
773Individual, stylable UI elements have the following properties:
774.Bl -tag -width Ds
775.It Sy color
776Configure the foreground color for text.
777See the
778.Sx "COLORS"
779section for the supported color format.
780.It Sy background
781Configure the background color for text.
782See the
783.Sx "COLORS"
784section for the supported color format.
785.It Sy modifiers
786An array of strings specifying modifiers to how the text is styled.
787Possible values are
788.Dq Sy "bold" ,
789.Dq Sy "crossed-out" ,
790.Dq Sy "dim" ,
791.Dq Sy "hidden" ,
792.Dq Sy "italic" ,
793.Dq Sy "rapid-blink" ,
794.Dq Sy "reversed" ,
795.Dq Sy "slow-blink" ,
796and
797.Dq Sy "underlined" .
798Modifier names prefixed with
799.Sy ~
800will remove the modifier if it was inherited from another default, global config, etc.
801.El
802.Pp
803Some special UI elements also have additional properties available:
804.Bl -tag -width Ds
805.It Sy line
806For UI elements that draw a block, such as
807.Sy "theme.windows.border" ,
808.Sy "theme.windows.border_focused" ,
809.Sy "theme.messages.code_block" ,
810or
811.Sy "theme.messages.table" ,
812you can specify what characters should be used to draw the bounding line.
813.Pp
814Possible values are
815.Dq Sy "plain" ,
816.Dq Sy "rounded" ,
817.Dq Sy "double" ,
818.Dq Sy "thick" ,
819.Dq Sy "double-dashed-light" ,
820.Dq Sy "double-dashed-heavy" ,
821.Dq Sy "triple-dashed-light" ,
822.Dq Sy "triple-dashed-heavy" ,
823.Dq Sy "quadruple-dashed-light" ,
824and
825.Dq Sy "quadruple-dashed-heavy" .
826.It Sy colors
827For UI elements that can use multiple colors, like
828.Sy "theme.users"
829for usernames, you can specify an array of colors that make up the pallete to pick from.
830.El
831.Pp
832Within
833.Sy theme ,
834there are several subsections for specific UI areas:
835.Bl -tag -width Ds
836.It Sy default
837The base, default style that everything else should inherit.
838.It Sy selected
839Additional options for how to style selected items in lists and timelines.
840.It Sy cmdbar
841For controlling how the text in the command bar is styled.
842.Bl -tag -width Ds
843.It Sy default
844Configure the default styling for the command bar.
845.It Sy prompt
846Configure the styling for the prompt in the command bar.
847.It Sy completions
848Configure the styling for displaying possible command bar completions.
849.It Sy error
850Configure the styling for error messages shown in the command bar.
851.It Sy info
852Configure the styling for info messages shown in the command bar.
853.El
854.It Sy encryption
855For controlling how the encryption indicators are styled.
856UI elements you can set within this subsection are:
857.Bl -tag -width Ds
858.It Sy default
859Configure the default styling for the encryption status indicators.
860.It Sy icon_encrypted
861Configure the styling for the encrypted indicator.
862.It Sy icon_unencrypted
863Configure the styling for the unencrypted indicator.
864.It Sy icon_unknown
865Configure the styling for the unknown encryption status indicator.
866.El
867.It Sy msgbar
868For controlling how the text in the message bar is styled.
869UI elements you can set within this subsection are:
870.Bl -tag -width Ds
871.It Sy default
872Configure the default styling for the message bar.
873.El
874.It Sy messages
875For controlling how the bodies of messages are styled.
876UI elements you can set within this subsection are:
877.Bl -tag -width Ds
878.It Sy default
879Configure the default styling for messages.
880.It Sy "blockquote"
881Configure the styling for the line used for indenting
882.Sy "<blockquote>"
883elements in formatted message bodies.
884.It Sy code
885Configure the styling for
886.Sy "<code>"
887elements in formatted message bodies.
888.It Sy "code_block"
889Configure the styling for
890.Sy "<pre>"
891elements in formatted message bodies.
892.It Sy "emphasis"
893Configure the styling for
894.Sy "<em>"
895and
896.Sy "<i>"
897elements in formatted message bodies.
898.It Sy "ruler"
899Configure the styling for the line used for drawing
900.Sy "<ruler>"
901elements in formatted message bodies.
902.It Sy "strikethrough"
903Configure the styling for
904.Sy "<del>" ,
905.Sy "<s>" ,
906and
907.Sy "<strike>"
908elements in formatted message bodies.
909.It Sy "strong"
910Configure the styling for
911.Sy "<strong>"
912and
913.Sy "<b>"
914elements in formatted message bodies.
915.It Sy "table"
916Configure the styling for the line used for drawing the cells for
917.Sy "<table>"
918elements in formatted message bodies.
919.It Sy "underlined"
920Configure the styling for
921.Sy "<u>"
922elements in formatted message bodies.
923.El
924.It Sy timeline
925For controlling how other elements within the timeline are styled.
926UI elements you can set within this subsection are:
927.Bl -tag -width Ds
928.It Sy default
929Configure the default styling for text in the timeline.
930.It Sy date
931Configure the how the dates for messages are styled.
932.It Sy time
933Configure the how the time a message was sent is styled.
934.It Sy unread_marker
935Configure the style of the bar for marking the start of unread messages.
936.It Sy state
937Configure how the text shown for state events is styled.
938.It Sy sticker
939Configure how any text shown for stickers is styled.
940.It Sy poll
941Configure how the text in polls is styled.
942.It Sy notice
943Configure how server notices is styled.
944.It Sy redacted
945Configure how redacted events in the timeline is styled.
946.El
947.It Sy users
948For controlling how usernames and identifiers are styled.
949.Pp
950In addition to the common
951.Sy color ,
952.Sy background ,
953and
954.Sy modifiers
955properties, you can also specify a
956.Sy colors
957field for providing a broad palette of colors from which to style usernames.
958You 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
959.Sy "rainbow-light"
960or
961.Sy "rainbow-dark"
962to use a large light- or dark-colored rainbow palette for usernames.
963.Pp
964By default, this is a selection of 13 standard ANSI colors that should look okay on both light and dark backgrounds.
965You can set this array to
966.Sy "[]"
967to force all usernames to use the value in
968.Sy color
969or its inherited value from
970.Sy "theme.default" .
971.It Sy completion
972For controlling how the completion menu is styled.
973.Bl -tag -width Ds
974.It Sy default
975Configure the default style for entries in the menu.
976.It Sy selected
977Configure how the selected entry is styled.
978.El
979.It Sy windows
980For controlling how the windows are styled.
981.Bl -tag -width Ds
982.It Sy default
983Configure the default style for characters that draw the window border or title.
984.It Sy border
985Configure how the border characters are styled.
986.It Sy border_focused
987Configure how the border characters for focused window are styled.
988.It Sy title
989Configure how the window titles are styled.
990.El
991.It Sy tabs
992For controlling how tabs are styled.
993UI elements you can set within this subsection are:
994.Bl -tag -width Ds
995.It Sy title
996Configure how tab titles are styled.
997.It Sy title_focused
998Configure how the title of the focused tab is styled.
999.El
1000.It Sy rooms
1001For controlling how lists of rooms like
1002.Sy :unreads
1003or
1004.Sy :chats
1005are styled.
1006UI elements you can set within this subsection are:
1007.Bl -tag -width Ds
1008.It Sy default
1009Configure the default style for text in room lists.
1010.It Sy labels
1011Configure the style for the labels following room names in lists.
1012.It Sy notification
1013Configure how rooms with unread notifications are displayed.
1014.Bl -tag -width Ds
1015.It Sy number
1016Configure the style of the number showing how many unread notifications a room has.
1017.It Sy name
1018Configure the style for rooms with unread notifications.
1019.It Sy labels
1020Configure the style for the labels of rooms with unread notifications.
1021.El
1022.It Sy mention
1023Configure how rooms with unread mentions are displayed.
1024Accepts the same values as
1025.Sy notification .
1026.It Sy unread
1027Configure how rooms with unread muted messages are displayed.
1028Accepts the same values as
1029.Sy notification .
1030.It Sy marked_unread .
1031Configure how rooms that are manually marked as unread are displayed.
1032Accepts the same values as
1033.Sy notification .
1034.El
1035.El
1036.Ss Example 1: Make code blocks a lighter gray background and state events red
1037.Bd -literal -offset indent
1038[theme.messages]
1039code_block.background = "245"
1040
1041[theme.timeline]
1042state.color = "cyan"
1043.Ed
1044.Ss Example 2: Replace default bold style in window and tab titles with italic
1045.Bd -literal -offset indent
1046[theme]
1047tabs.title.modifiers = ["~bold", "italic"]
1048windows.title.modifiers = ["~bold", "italic"]
1049.Ed
1050.Sh "ROOM OVERRIDES"
1051The
1052.Sy settings.rooms
1053subsections allows overriding how specific rooms are displayed.
1054Overrides are mapped onto Matrix Room IDs, Matrix Room Aliases, or User IDs for DMs.
1055They are typically written as inline tables containing the following keys:
1056.Bl -tag -width Ds
1057.It Sy name
1058Change the display name of the room.
1059.El
1060.Ss Example 1: Override how the iamb rooms appear in the room list
1061.Bd -literal -offset indent
1062[settings.rooms]
1063"#iamb-users:0x.badd.cafe".name = "iamb user discussion"
1064"!EpWjxfRMnoLQPCKZei:0x.badd.cafe".name = "iamb developers"
1065"@ada:example.com".name = "My DM with Ada Lovelace"
1066.Ed
1067.Sh "USER OVERRIDES"
1068The
1069.Sy settings.users
1070subsections allows overriding how specific senders are displayed.
1071Overrides are mapped onto Matrix User IDs such as
1072.Sy @user:matrix.org ,
1073and are typically written as inline tables containing the following keys:
1074.Bl -tag -width Ds
1075.It Sy name
1076Change the display name of the user.
1077.It Sy color
1078Change the color the user is shown as.
1079See the
1080.Sx "COLORS"
1081section for the supported color format.
1082.El
1083.Ss Example 1: Override how @ada:example.com appears in chat
1084.Bd -literal -offset indent
1085[settings.users]
1086"@ada:example.com" = { name = "Ada Lovelace", color = "light-red" }
1087.Ed
1088.Sh STARTUP LAYOUT
1089The
1090.Sy layout
1091section allows configuring the initial set of tabs and windows to show when
1092starting the client.
1093.Bl -tag -width Ds
1094.It Sy style
1095Specifies what window layout to load when starting.
1096Valid values are
1097.Dq Sy restore
1098to restore the layout from the last time the client was exited,
1099.Dq Sy new
1100to open a single window (uses the value of
1101.Sy default_room
1102if set), or
1103.Dq Sy config
1104to open the layout described under
1105.Sy tabs .
1106.It Sy tabs
1107If
1108.Sy style
1109is set to
1110.Sy config ,
1111then this value will be used to open a set of tabs and windows at startup.
1112Each object can contain either a
1113.Sy window
1114key specifying a username, room identifier or room alias to show, or a
1115.Sy split
1116key specifying an array of window objects.
1117.El
1118.Ss Example 1: Show a single room every startup
1119.Bd -literal -offset indent
1120[settings]
1121default_room = "#iamb-users:0x.badd.cafe"
1122
1123[layout]
1124style = "new"
1125.Ed
1126.Ss Example 2: Show a specific layout every startup
1127.Bd -literal -offset indent
1128[layout]
1129style = "config"
1130
1131[[layout.tabs]]
1132window = "iamb://dms"
1133
1134[[layout.tabs]]
1135window = "iamb://rooms"
1136
1137[[layout.tabs]]
1138split = [
1139 { "window" = "#iamb-users:0x.badd.cafe" },
1140 { "window" = "#iamb-dev:0x.badd.cafe" }
1141]
1142.Ed
1143.Sh "CUSTOM COMMAND ALIASES"
1144The
1145.Sy aliases
1146subsections allow configuring custom aliases.
1147.Ss Example 1: Alias commands to single-letter versions
1148.Bd -literal -offset indent
1149[aliases]
1150"c" = "chats"
1151"d" = "download"
1152"e" = "edit"
1153"o" = "open"
1154"r" = "rooms"
1155.Ed
1156.Sh "CUSTOM KEYBINDINGS"
1157The
1158.Sy macros
1159subsections allow configuring custom keybindings.
1160Available subsections are:
1161.Bl -tag -width Ds
1162.It Sy insert , Sy i
1163Map the key sequences in this section in
1164.Sy Insert
1165mode.
1166.It Sy normal , Sy n
1167Map the key sequences in this section in
1168.Sy Normal
1169mode.
1170.It Sy visual , Sy v
1171Map the key sequences in this section in
1172.Sy Visual
1173mode.
1174.It Sy select
1175Map the key sequences in this section in
1176.Sy Select
1177mode.
1178.It Sy command , Sy c
1179Map the key sequences in this section in
1180.Sy Visual
1181mode.
1182.It Sy operator-pending
1183Map the key sequences in this section in
1184.Sy "Operator Pending"
1185mode.
1186.El
1187.Pp
1188Multiple modes can be given together by separating their names with
1189.Dq Sy | .
1190.Ss Example 1: Use "jj" to exit Insert mode
1191.Bd -literal -offset indent
1192[macros.insert]
1193"jj" = "<Esc>"
1194.Ed
1195.Ss Example 2: Use "V" for switching between message bar and room history
1196.Bd -literal -offset indent
1197[macros."normal|visual"]
1198"V" = "<C-W>m"
1199.Ed
1200.Sh DIRECTORIES
1201Specifies the directories to save data in.
1202Configured as an object under the key
1203.Sy dirs .
1204.Bl -tag -width Ds
1205.It Sy cache
1206Specifies where to store assets and temporary data in.
1207(For example,
1208.Sy logs
1209will also go in here by default.)
1210Defaults to
1211.Ev $XDG_CACHE_HOME/iamb .
1212.It Sy data
1213Specifies where to store persistent data in, such as E2EE room keys.
1214Defaults to
1215.Ev $XDG_DATA_HOME/iamb .
1216.It Sy downloads
1217Specifies where to store downloaded files.
1218Defaults to
1219.Ev $XDG_DOWNLOAD_DIR .
1220.It Sy logs
1221Specifies where to store log files.
1222Defaults to
1223.Ev ${cache}/logs .
1224.El
1225.Sh FILES
1226.Bl -tag -width Ds
1227.It Pa ~/.config/iamb/config.toml
1228The TOML configuration file that
1229.Sy iamb
1230loads by default.
1231.It Pa ~/.config/iamb/config.json
1232A JSON configuration file that
1233.Sy iamb
1234will load if the TOML one is not found.
1235.It Pa /usr/share/iamb/config.example.toml
1236A sample configuration file showing the basic values needed to get started.
1237.It Pa /usr/share/iamb/config.full.toml
1238A sample configuration file with examples of how to set many different values.
1239.El
1240.Sh "REPORTING BUGS"
1241Please report bugs in
1242.Sy iamb
1243or its manual pages at
1244.Lk https://github.com/ulyssa/iamb/issues
1245.Sh SEE ALSO
1246.Xr iamb 1
1247.Pp
1248Extended documentation is available online at
1249.Lk https://iamb.chat