paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d71d7cfe940bddbb5f4521d2ea994c6a54a686a7
parent a2c29a6d8aa1395f2e147dbd64e1fc322f088baa
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sun, 23 Aug 2020 00:10:28 -0400

Add my solution to problem #2 of weechat-matrix

Diffstat:
Mpages/blog/setting-up-weechat-again.md | 4+++-
Mpublic/feeds/sitewide-feed.xml | 8++++----
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/pages/blog/setting-up-weechat-again.md b/pages/blog/setting-up-weechat-again.md @@ -74,7 +74,9 @@ it's a bit annoying when you're sending a series of messages and all of a sudden you can't. It seems that to fix this I'd have to [enable HTTP/2 connections on my Matrix server and reverse proxy](https://github.com/poljar/weechat-matrix/issues/123) which I don't -particularly care to do. +particularly care to do. Instead, I fixed this with: `/set +matrix.server.paritybit.ca.autoreconnect_delay 1`. A lazy solution... but it +works I guess? Also, uploading and downloading files is a huge pain in the butt. It has to be done through helper scripts which is far less convenient than just seeing the diff --git a/public/feeds/sitewide-feed.xml b/public/feeds/sitewide-feed.xml @@ -16,7 +16,7 @@ <p><b>Written By:</b> Jake Bauer | <b>Posted:</b> 2020-08-22 | <b>Last Updated:</b> 2020-08-22</p> </div> <p>I used to have WeeChat set up and configured for IRC, but I really don’t have much of a reason to use IRC. If I’m getting more into FOSS development though, I’d want to have my preferred client up and running again. Plus, if I want to access support resources offered through IRC or get into communicating more with the communities present on IRC—since those tend to be quite technical and are filled with people I think I might enjoy associating with—I’d want to be able to jump in quickly with a client already set up.</p> -<p>I used to use irssi, but found WeeChat to have saner defaults out of the box and be easier to work with in general. Plus, I can use plugins like weechat-matrix to be able to use the matrix protocol in WeeChat without needing to use a bloated, slow, memory-hungry electron app like Element.</p> +<p>I used to use irssi, but found WeeChat to have saner defaults out of the box and be easier to work with in general. Plus, I can use plugins like weechat-matrix to be able to use the Matrix protocol in WeeChat without needing to use a bloated, slow, memory-hungry electron app like Element.</p> <p>I already have a Freenode account from my previous IRC adventures so I set it up in WeeChat with:</p> <pre><code>/server add freenode chat.freenode.net/6697 -ssl /set irc.server.freenode.nicks &quot;jbauer&quot; @@ -30,9 +30,9 @@ /set buflist.format.buffer_current &quot;${color:,236}${format_buffer}&quot; /alias add b /buffer</code></pre> <p>In addition to that, I installed the <a href="https://github.com/s3rvac/weechat-notify-send">weechat-notify-send</a> plugin which allows me to receive desktop notifications when I get a new message in WeeChat.</p> -<p>Another thing I wanted to try was <a href="https://github.com/poljar/weechat-matrix">weechat-matrix</a>, a set of Python scripts which allows one to use a Matrix server in WeeChat. Following the instructions in the Git repository made installation easy enough. Adding my matrix server and logging in was also easy. However, I’ve come across three issues which I want to highlight in case anybody else is thinking of using weechat-matrix:</p> -<p>The matrix client I normally use (Element) supports device cross-signing. This means that if I add a new device to my list of devices, I can verify that device using one of my other devices which have already been set up. This allows me to add as many devices I want, mark them as trusted from my own devices, and other people won’t need to individually verify each of the devices that I add. weechat-matrix doesn’t have this which means I pretty much have to do a <code>/olm verify * *</code> unless I want to sit there for an hour verifying everyone’s devices individually.</p> -<p>Furthermore, it seems that the connection to my matrix server randomly drops out about every dozen minutes or so. It always reconnects in about 10 seconds but it’s a bit annoying when you’re sending a series of messages and all of a sudden you can’t. It seems that to fix this I’d have to <a href="https://github.com/poljar/weechat-matrix/issues/123">enable HTTP/2 connections on my Matrix server and reverse proxy</a> which I don’t particularly care to do.</p> +<p>Another thing I wanted to try was <a href="https://github.com/poljar/weechat-matrix">weechat-matrix</a>, a set of Python scripts which allows one to use a Matrix server in WeeChat. Following the instructions in the Git repository made installation easy enough. Adding my Matrix server and logging in was also easy. However, I’ve come across three issues which I want to highlight in case anybody else is thinking of using weechat-matrix:</p> +<p>The Matrix client I normally use (Element) supports device cross-signing. This means that if I add a new device to my list of devices, I can verify that device using one of my other devices which have already been set up. This allows me to add as many devices I want, mark them as trusted from my own devices, and other people won’t need to individually verify each of the devices that I add. weechat-matrix doesn’t have this which means I pretty much have to do a <code>/olm verify * *</code> unless I want to sit there for an hour verifying everyone’s devices individually.</p> +<p>Furthermore, it seems that the connection to my Matrix server randomly drops out about every dozen minutes or so. It always reconnects in about 10 seconds but it’s a bit annoying when you’re sending a series of messages and all of a sudden you can’t. It seems that to fix this I’d have to <a href="https://github.com/poljar/weechat-matrix/issues/123">enable HTTP/2 connections on my Matrix server and reverse proxy</a> which I don’t particularly care to do. Instead, I fixed this with: <code>/set matrix.server.paritybit.ca.autoreconnect_delay 1</code>. A lazy solution… but it works I guess?</p> <p>Also, uploading and downloading files is a huge pain in the butt. It has to be done through helper scripts which is far less convenient than just seeing the file or being able to type a quick command such as <code>upload ~/image.png</code> or <code>download secret_codes.txt</code> from within the WeeChat window.</p> <p>Anyhow, a complete rewrite of weechat-matrix is coming in the form of <a href="https://github.com/poljar/weechat-matrix-rs">weechat-matrix-rs</a>, a Rust implementation as a WeeChat <em>plugin</em> instead of a series of WeeChat <em>scripts</em>. This will allow much better integration and much more powerful stuff like device cross-signing to be done.</p> <p>For now, I’m definitely glad I got it up and running again for use with IRC, but I’m not 100% sure I’ll stick with using it for Matrix. As much as I would prefer to use a nice CLI application instead of an Electron one, the current state of it seems to be more hassle than it’s worth. I may go back to using Element and just wait for the Rust rewrite to be ready :/</p>