docs/iamb.5.md

113 lines · 3294 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**dirs** (type: XDG overrides object)
 40> Overwrite general settings for this account. The fields are identical to
 41> those in *DIRECTORIES*.
 42
 43# TUNABLES
 44
 45These options are configured as a map under the *settings* key and can be
 46overridden as described in *PROFILES*.
 47
 48**log_level** (type: string)
 49> Specifies the lowest log level that should be shown. Possible values
 50> are: _trace_, _debug_, _info_, _warn_, and _error_.
 51
 52**reaction_display** (type: boolean)
 53> Defines whether or not reactions should be shown.
 54
 55**reaction_shortcode_display** (type: boolean)
 56> Defines whether or not reactions should be shown as their respective
 57> shortcode.
 58
 59**read_receipt_send** (type: boolean)
 60> Defines whether or not read confirmations are sent.
 61
 62**read_receipt_display** (type: boolean)
 63> Defines whether or not read confirmations are displayed.
 64
 65**request_timeout** (type: uint64)
 66> Defines the maximum time per request in seconds.
 67
 68**typing_notice_send** (type: boolean)
 69> Defines whether or not the typing state is sent.
 70
 71**typing_notice_display** (type: boolean)
 72> Defines whether or not the typing state is displayed.
 73
 74**user** (type: map)
 75> Overrides values for the specified user. See *USER OVERRIDES* for
 76> details on the format.
 77
 78**default_room** (type: string)
 79> The room to show by default instead of a welcome-screen.
 80
 81## USER OVERRIDES
 82
 83Overrides are mapped onto matrix User IDs such as _@user:matrix.org_ and are
 84maps containing the following key value pairs.
 85
 86**name** (type: string)
 87> Change the display name of the user.
 88
 89**color** (type: string)
 90> Change the color the user is shown as. Possible values are: _black_,
 91> _blue_, _cyan_, _dark-gray_, _gray_, _green_, _light-blue_,
 92> _light-cyan_, _light-green_, _light-magenta_, _light-red_,
 93> _light-yellow_, _magenta_, _none_, _red_, _white_, _yellow_
 94
 95# DIRECTORIES
 96
 97Specifies the directories to save data in. Configured as a map under the key
 98*dirs*.
 99
100**cache** (type: string)
101> Specifies where to store assets and temporary data in.
102
103**logs** (type: string)
104> Specifies where to store log files.
105
106**downloads** (type: string)
107> Specifies where to store downloaded files.
108
109# SEE ALSO
110
111*iamb(1)*
112
113Full documentation is available online at \<https://iamb.chat\>