docs/iamb.5.md
171 lines · 5963 bytes
1# NAME
2
3config.json – configuration file for iamb
4
5# SYNOPSIS
6
7Configuration must be placed under _~/.config/iamb/_ and is named config.json.
8
9Example configuration usually comes bundled with your installation and can
10typically be found in _/usr/share/iamb_.
11
12As implied by the filename, the configuration is formatted in JSON. It's
13structure and fields are described below.
14
15# BASIC SETTINGS
16
17These options are primitives at the top-level of the file.
18
19**default_profile** (type: string)
20> The default profile to connect to, unless overwritten by a commandline
21> switch. It has to be defined in the *PROFILES* section.
22
23# PROFILES
24
25These options are configured as a map under the profiles name.
26
27**user_id** (type: string)
28> The user ID to use when connecting to the server. For example "user" for
29> "@user:matrix.org".
30
31**url** (type: string)
32> The URL of the users server. For example "https://matrix.org" for
33> "@user:matrix.org".
34
35**settings** (type: settings object)
36> Overwrite general settings for this account. The fields are identical to
37> those in *TUNABLES*.
38
39**layout** (type: startup layout object)
40> Overwrite general settings for this account. The fields are identical to
41> those in *STARTUP LAYOUT*.
42
43**dirs** (type: XDG overrides object)
44> Overwrite general settings for this account. The fields are identical to
45> those in *DIRECTORIES*.
46
47# TUNABLES
48
49These options are configured as a map under the *settings* key and can be
50overridden as described in *PROFILES*.
51
52**log_level** (type: string)
53> Specifies the lowest log level that should be shown. Possible values
54> are: _trace_, _debug_, _info_, _warn_, and _error_.
55
56**message_shortcode_display** (type: boolean)
57> Defines whether or not emoji characters in messages should be replaced by
58> their respective shortcodes.
59
60**reaction_display** (type: boolean)
61> Defines whether or not reactions should be shown.
62
63**reaction_shortcode_display** (type: boolean)
64> Defines whether or not reactions should be shown as their respective
65> shortcode.
66
67**read_receipt_send** (type: boolean)
68> Defines whether or not read confirmations are sent.
69
70**read_receipt_display** (type: boolean)
71> Defines whether or not read confirmations are displayed.
72
73**request_timeout** (type: uint64)
74> Defines the maximum time per request in seconds.
75
76**typing_notice_send** (type: boolean)
77> Defines whether or not the typing state is sent.
78
79**typing_notice_display** (type: boolean)
80> Defines whether or not the typing state is displayed.
81
82**user** (type: map)
83> Overrides values for the specified user. See *USER OVERRIDES* for
84> details on the format.
85
86**default_room** (type: string)
87> The room to show by default instead of a welcome-screen.
88
89**message_user_color** (type: boolean)
90> Defines whether or not the message body is colored like the username.
91
92**notifications** (type: notifications object)
93> Configures push-notifications.
94> *enabled* `true` to enable the feature, defaults to `false`.
95> *via* `"desktop"` to use desktop mechanism (default), or `"bell"` to use
96> terminal bell.
97> *show_message* to show the message in the desktop notification. Defaults
98> to `true`. Messages are truncated beyond a small length.
99> The notification _rules_ are stored server side, loaded once at startup,
100> and are currently not configurable in iamb. In other words, you can
101> simply change the rules with another client.
102
103**image_preview** (type: image_preview object)
104> Enable image previews and configure it. An empty object will enable the
105> feature with default settings, omitting it will disable the feature.
106> *size* is an optional object with *width* and *height* numbers, which are
107> used to set the preview size in characters. Defaults to 66 and 10.
108> *protocol* is an optional object to override settings that should normally
109> be guessed automatically.
110> *protocol.type* is an optional string with one of the protocol types:
111> _sixel_, _kitty_, _halfblocks_.
112> *protocol.font_size* is an optional list of two numbers representing font
113> width and height in pixels.
114
115**user_gutter_width** (type: usize)
116> Specify the width of the column where usernames are displayed in a room.
117> Usernames that are too long are truncated.
118
119## USER OVERRIDES
120
121Overrides are mapped onto matrix User IDs such as _@user:matrix.org_ and are
122maps containing the following key value pairs.
123
124**name** (type: string)
125> Change the display name of the user.
126
127**color** (type: string)
128> Change the color the user is shown as. Possible values are: _black_,
129> _blue_, _cyan_, _dark-gray_, _gray_, _green_, _light-blue_,
130> _light-cyan_, _light-green_, _light-magenta_, _light-red_,
131> _light-yellow_, _magenta_, _none_, _red_, _white_, _yellow_
132
133# STARTUP LAYOUT
134
135Specifies what initial set of tabs and windows to show when starting the
136client. Configured as an object under the key *layout*.
137
138**style** (type: string)
139> Specifies what window layout to load when starting. Valid values are
140> _restore_ to restore the layout from the last time the client was exited,
141> _new_ to open a single window (uses the value of _default\_room_ if set), or
142> _config_ to open the layout described under _tabs_.
143
144**tabs** (type: array of window objects)
145> If **style** is set to _config_, then this value will be used to open a set
146> of tabs and windows at startup. Each object can contain either a **window**
147> key specifying a username, room identifier or room alias to show, or a
148> **split** key specifying an array of window objects.
149
150# DIRECTORIES
151
152Specifies the directories to save data in. Configured as a map under the key
153*dirs*.
154
155**cache** (type: string)
156> Specifies where to store assets and temporary data in.
157
158**logs** (type: string)
159> Specifies where to store log files.
160
161**downloads** (type: string)
162> Specifies where to store downloaded files.
163
164**image_previews** (type: string)
165> Specifies where to store automatically downloaded image previews.
166
167# SEE ALSO
168
169*iamb(1)*
170
171Full documentation is available online at \<https://iamb.chat\>