docs/iamb.5.md
162 lines · 5622 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**notifications** (type: notifications object)
89> Configures push-notifications, which are delivered as desktop
90> notifications if available.
91> *enabled* `true` to enable the feature, defaults to `false`.
92> *show_message* to show the message in the desktop notification. Defaults
93> to `true`. Messages are truncated beyond a small length.
94> The notification _rules_ are stored server side, loaded once at startup,
95> and are currently not configurable in iamb. In other words, you can
96> simply change the rules with another client.
97
98**image_preview** (type: image_preview object)
99> Enable image previews and configure it. An empty object will enable the
100> feature with default settings, omitting it will disable the feature.
101> *size* is an optional object with *width* and *height* numbers, which are
102> used to set the preview size in characters. Defaults to 66 and 10.
103> *protocol* is an optional object to override settings that should normally
104> be guessed automatically.
105> *protocol.type* is an optional string with one of the protocol types:
106> _sixel_, _kitty_, _halfblocks_.
107> *protocol.font_size* is an optional list of two numbers representing font
108> width and height in pixels.
109
110## USER OVERRIDES
111
112Overrides are mapped onto matrix User IDs such as _@user:matrix.org_ and are
113maps containing the following key value pairs.
114
115**name** (type: string)
116> Change the display name of the user.
117
118**color** (type: string)
119> Change the color the user is shown as. Possible values are: _black_,
120> _blue_, _cyan_, _dark-gray_, _gray_, _green_, _light-blue_,
121> _light-cyan_, _light-green_, _light-magenta_, _light-red_,
122> _light-yellow_, _magenta_, _none_, _red_, _white_, _yellow_
123
124# STARTUP LAYOUT
125
126Specifies what initial set of tabs and windows to show when starting the
127client. Configured as an object under the key *layout*.
128
129**style** (type: string)
130> Specifies what window layout to load when starting. Valid values are
131> _restore_ to restore the layout from the last time the client was exited,
132> _new_ to open a single window (uses the value of _default\_room_ if set), or
133> _config_ to open the layout described under _tabs_.
134
135**tabs** (type: array of window objects)
136> If **style** is set to _config_, then this value will be used to open a set
137> of tabs and windows at startup. Each object can contain either a **window**
138> key specifying a username, room identifier or room alias to show, or a
139> **split** key specifying an array of window objects.
140
141# DIRECTORIES
142
143Specifies the directories to save data in. Configured as a map under the key
144*dirs*.
145
146**cache** (type: string)
147> Specifies where to store assets and temporary data in.
148
149**logs** (type: string)
150> Specifies where to store log files.
151
152**downloads** (type: string)
153> Specifies where to store downloaded files.
154
155**image_previews** (type: string)
156> Specifies where to store automatically downloaded image previews.
157
158# SEE ALSO
159
160*iamb(1)*
161
162Full documentation is available online at \<https://iamb.chat\>