docs/iamb.5.md
152 lines · 5090 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**reaction_display** (type: boolean)
57> Defines whether or not reactions should be shown.
58
59**reaction_shortcode_display** (type: boolean)
60> Defines whether or not reactions should be shown as their respective
61> shortcode.
62
63**read_receipt_send** (type: boolean)
64> Defines whether or not read confirmations are sent.
65
66**read_receipt_display** (type: boolean)
67> Defines whether or not read confirmations are displayed.
68
69**request_timeout** (type: uint64)
70> Defines the maximum time per request in seconds.
71
72**typing_notice_send** (type: boolean)
73> Defines whether or not the typing state is sent.
74
75**typing_notice_display** (type: boolean)
76> Defines whether or not the typing state is displayed.
77
78**user** (type: map)
79> Overrides values for the specified user. See *USER OVERRIDES* for
80> details on the format.
81
82**default_room** (type: string)
83> The room to show by default instead of a welcome-screen.
84
85**message_user_color** (type: boolean)
86> Defines whether or not the message body is colored like the username.
87
88**image_preview** (type: image_preview object)
89> Enable image previews and configure it. An empty object will enable the
90> feature with default settings, omitting it will disable the feature.
91> *size* is an optional object with *width* and *height* numbers, which are
92> used to set the preview size in characters. Defaults to 66 and 10.
93> *protocol* is an optional object to override settings that should normally
94> be guessed automatically.
95> *protocol.type* is an optional string with one of the protocol types:
96> _sixel_, _kitty_, _halfblocks_.
97> *protocol.font_size* is an optional list of two numbers representing font
98> width and height in pixels.
99
100## USER OVERRIDES
101
102Overrides are mapped onto matrix User IDs such as _@user:matrix.org_ and are
103maps containing the following key value pairs.
104
105**name** (type: string)
106> Change the display name of the user.
107
108**color** (type: string)
109> Change the color the user is shown as. Possible values are: _black_,
110> _blue_, _cyan_, _dark-gray_, _gray_, _green_, _light-blue_,
111> _light-cyan_, _light-green_, _light-magenta_, _light-red_,
112> _light-yellow_, _magenta_, _none_, _red_, _white_, _yellow_
113
114# STARTUP LAYOUT
115
116Specifies what initial set of tabs and windows to show when starting the
117client. Configured as an object under the key *layout*.
118
119**style** (type: string)
120> Specifies what window layout to load when starting. Valid values are
121> _restore_ to restore the layout from the last time the client was exited,
122> _new_ to open a single window (uses the value of _default\_room_ if set), or
123> _config_ to open the layout described under _tabs_.
124
125**tabs** (type: array of window objects)
126> If **style** is set to _config_, then this value will be used to open a set
127> of tabs and windows at startup. Each object can contain either a **window**
128> key specifying a username, room identifier or room alias to show, or a
129> **split** key specifying an array of window objects.
130
131# DIRECTORIES
132
133Specifies the directories to save data in. Configured as a map under the key
134*dirs*.
135
136**cache** (type: string)
137> Specifies where to store assets and temporary data in.
138
139**logs** (type: string)
140> Specifies where to store log files.
141
142**downloads** (type: string)
143> Specifies where to store downloaded files.
144
145**image_previews** (type: string)
146> Specifies where to store automatically downloaded image previews.
147
148# SEE ALSO
149
150*iamb(1)*
151
152Full documentation is available online at \<https://iamb.chat\>