MATRIX-SEND-CONFIG(5) File Formats Manual MATRIX-SEND-CONFIG(5)

config.luaconfiguration file for matrix-send(1)

matrix-send(1) sends messages to Matrix rooms. In order to send a message however, it needs credentials for the account sending the message. These credentials are provided in the config.lua configuration file, as well as other options if you need them.

The configuration file is in Lua format, meaning you can write whatever Lua code you wish inside.

The following configuration options are available:

server
The address of the Matrix server being used.
username
The username of the account being used.
password
The password for the account being used.
token
Instead of authenticating via username and password to obtain an access token, use token as the access token.
location
Use location as the cache location.
Don't cache anything.
type
Modify the default event type from the default (m.text) to type. Supported types are m.text, and m.notice.

~/.config/matrix-send/config.lua
matrix-send(1) configuration file
~/.cache/matrix-send
default cache directory

The following example logs into the user 'john' of the server matrix.org, and the password 'supersecretpassword', and sets the default event type to m.notice.

login = {
	server = "matrix.org",
	username = "john",
	password = "supersecretpassword"
}

advanced.event = "m.notice"

matrix-send(1)

January 1, 2023 OpenBSD 7.4