docs/iamb.5.md
134 lines · 4220 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## USER OVERRIDES
86
87Overrides are mapped onto matrix User IDs such as _@user:matrix.org_ and are
88maps containing the following key value pairs.
89
90**name** (type: string)
91> Change the display name of the user.
92
93**color** (type: string)
94> Change the color the user is shown as. Possible values are: _black_,
95> _blue_, _cyan_, _dark-gray_, _gray_, _green_, _light-blue_,
96> _light-cyan_, _light-green_, _light-magenta_, _light-red_,
97> _light-yellow_, _magenta_, _none_, _red_, _white_, _yellow_
98
99# STARTUP LAYOUT
100
101Specifies what initial set of tabs and windows to show when starting the
102client. Configured as an object under the key *layout*.
103
104**style** (type: string)
105> Specifies what window layout to load when starting. Valid values are
106> _restore_ to restore the layout from the last time the client was exited,
107> _new_ to open a single window (uses the value of _default\_room_ if set), or
108> _config_ to open the layout described under _tabs_.
109
110**tabs** (type: array of window objects)
111> If **style** is set to _config_, then this value will be used to open a set
112> of tabs and windows at startup. Each object can contain either a **window**
113> key specifying a username, room identifier or room alias to show, or a
114> **split** key specifying an array of window objects.
115
116# DIRECTORIES
117
118Specifies the directories to save data in. Configured as a map under the key
119*dirs*.
120
121**cache** (type: string)
122> Specifies where to store assets and temporary data in.
123
124**logs** (type: string)
125> Specifies where to store log files.
126
127**downloads** (type: string)
128> Specifies where to store downloaded files.
129
130# SEE ALSO
131
132*iamb(1)*
133
134Full documentation is available online at \<https://iamb.chat\>