diff --git a/matrix-send.1 b/matrix-send.1 index 13eccd0..d1b11d6 100644 --- a/matrix-send.1 +++ b/matrix-send.1 @@ -10,7 +10,7 @@ .Op Fl t Ar type .Op Fl c .Op Fl h -.Op Fl v +.Op Fl V .Ar message room .Ek .Sh DESCRIPTION @@ -69,9 +69,8 @@ At its most basic, matrix-send.conf is a shell script. This means you could replace the .Em Password line with something similar to this -.Bd -literal -offset indent -Password $(gpg -d /path/to/passwd.gpg) -.Ed +.Pp +.Dl Password $(gpg -d /path/to/passwd.gpg) .Pp where .Em /path/to/passwd.gpg @@ -91,11 +90,10 @@ This will be something like Type the Room ID as the argument after the message you wish to send. You may have to escape the exclamation mark with a backslash. For example: -.Bd -literal -offset indent -matrix-send "Hello world!" \\!zyxwvutsrq:example.org -.Ed .Pp -That should send a message saying +.Dl matrix-send "Hello world!" \\!zyxwvutsrq:example.org +.Pp +That would send a message saying .Em Hello world! to the room with the Room ID !zyxwvutsrq:example.org. .Pp @@ -120,5 +118,11 @@ configuration file for access token cache file .El +.Sh EXAMPLES +Send a message saying "How are you?" to the Matrix room !TfbDbeqp:example.org: +.Pp +.Dl matrix-send "How are you?" !TfbDbeqp:example.org +.Pp + .Sh SEE ALSO .Xr matrix-send.conf 5 diff --git a/matrix-send.conf.5 b/matrix-send.conf.5 index 1d88483..2a49980 100644 --- a/matrix-send.conf.5 +++ b/matrix-send.conf.5 @@ -60,5 +60,16 @@ configuration file for default access token cache file .El +.Sh EXAMPLES +This configuration would sign into matrix.org under the user +.Em johndoe +using the password +.Em supersecretpassword : +.Bd -literal -offset indent +Server matrix-client.matrix.org +Username johndoe +Password supersecretpassword +.Ed + .Sh SEE ALSO .Xr matrix-send 1