paritybit.ca

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

commit c58d928ddb4c257f184781256c71589c54ad44da
parent d2f40ae00d0d61fd55f6cb5c778c3159b3f43e52
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat, 22 Aug 2020 23:56:43 -0400

Publish new blog post

Diffstat:
Mpages/blog.md | 1+
Apages/blog/setting-up-weechat-again.md | 99+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpages/home.md | 4++--
Mpublic/feeds/sitewide-feed.xml | 32++++++++++++++++++++++++++++++++
Mpublic/sitemap.xml | 1+
5 files changed, 135 insertions(+), 2 deletions(-)

diff --git a/pages/blog.md b/pages/blog.md @@ -27,6 +27,7 @@ href="https://pleroma.paritybit.ca/jbauer">Pleroma</a>. ### 2020 <ul> + <li>2020-08-22 <a href="blog/setting-up-weechat-again">Setting Up WeeChat Again with weechat-matrix</a></li> <li>2020-08-21 <a href="blog/my-top-10-most-used-commands">My Top 10 Most Used Commands</a></li> <li>2020-08-14 <a href="blog/the-hacker-quarterly-magazine">The Hacker Quarterly Magazine</a></li> <li>2020-08-13 <a href="blog/ethical-investing">Ethical Investing</a></li> diff --git a/pages/blog/setting-up-weechat-again.md b/pages/blog/setting-up-weechat-again.md @@ -0,0 +1,99 @@ +## Setting Up WeeChat Again with weechat-matrix + +[//]: # "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..." + +[//]: # "main.min.css" + +[//]: # + +<div class="byline"> +<b>Written By:</b> Jake Bauer | + <b>Posted:</b> 2020-08-22 | + <b>Last Updated:</b> 2020-08-22 +</div> + +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 +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. Also, if I need to go to IRC for support or something like +that, I want to make sure I'm set up and ready to go with a client. + +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. + +I already have a Freenode account from my previous IRC adventures so I set it up +in WeeChat with: + +``` +/server add freenode chat.freenode.net/6697 -ssl +/set irc.server.freenode.nicks "jbauer" +/set irc.server.freenode.command "/msg NickServ identify <my_password>" +``` + +I also made a couple of customizations to the look and feel of WeeChat: + +``` +/set weechat.bar.status.color_bg 235 +/set weechat.bar.title.color_bg 235 +/set weechat.color.separator grey +/set weechat.color.chat_nick_self _blue +/set weechat.color.status_time *white +/set buflist.format.buffer_current "${color:,236}${format_buffer}" +/alias add b /buffer +``` + +In addition to that, I installed the +[weechat-notify-send](https://github.com/s3rvac/weechat-notify-send) plugin +which allows me to receive desktop notifications when I get a new message in +WeeChat. + +Another thing I wanted to try was +[weechat-matrix](https://github.com/poljar/weechat-matrix), 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: + +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 `/olm +verify * *` unless I want to sit there for an hour verifying everyone's devices +individually. + +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 [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. + +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 `upload ~/image.png` or +`download secret_codes.txt` from within the WeeChat window. + +Anyhow, a complete rewrite of weechat-matrix is coming in the form of +[weechat-matrix-rs](https://github.com/poljar/weechat-matrix-rs), a Rust +implementation as a _plugin_ instead of a series of _scripts_ this will allow +much better integration and much more powerful stuff like device cross-signing +to be done. + +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 :/ + +_This is my ninety-sixth post for the +[#100DaysToOffload](https://social.paritybit.ca/tags/100DaysToOffload) +challenge. You can learn more about this challenge over at +[https://100daystooffload.com](https://100daystooffload.com)._ diff --git a/pages/home.md b/pages/home.md @@ -18,6 +18,8 @@ This site will soon™️ be available over Gopher and Gemini. <a class="rss-icon" href="/feeds/sitewide-feed.xml"> <img src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS Feed"/> </a> </div> +2020-08-22 <a class="feed-item" href="blog/setting-up-weechat-again">Setting Up WeeChat Again with weechat-matrix</a> + 2020-08-21 <a class="feed-item" href="blog/my-top-10-most-used-commands">My Top 10 Most Used Commands</a> 2020-08-14 <a class="feed-item" href="blog/the-hacker-quarterly-magazine">The Hacker Quarterly Magazine</a> @@ -36,8 +38,6 @@ This site will soon™️ be available over Gopher and Gemini. 2020-08-08 <a class="feed-item" href="blog/gentoo-isnt-for-me">Gentoo Isn't for Me</a> -2020-08-06 <a class="feed-item" href="blog/adding-image-optimization-to-my-static-site-generator">Adding Image Optimization to My Static Site Generator</a> - ### What is a Parity Bit? It is a bit (in the 1's and 0's sense) used in checking for errors in digital diff --git a/public/feeds/sitewide-feed.xml b/public/feeds/sitewide-feed.xml @@ -7,6 +7,38 @@ <description>The feed that covers all notable additions, updates, announcements, and other changes for the entire paritybit.ca website.</description> <item> + <title>Setting Up WeeChat Again with weechat-matrix</title> + <link>https://www.paritybit.ca/blog/setting-up-weechat-again</link> + <guid>https://www.paritybit.ca/blog/setting-up-weechat-again</guid> + <pubDate>Sat, 22 Aug 2020 23:55:18 -0400</pubDate> + <description><![CDATA[<h2 id="setting-up-weechat-again-with-weechat-matrix">Setting Up WeeChat Again with weechat-matrix</h2> +<div class="byline"> +<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 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. Also, if I need to go to IRC for support or something like that, I want to make sure I’m set up and ready to go with a client.</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; +/set irc.server.freenode.command &quot;/msg NickServ identify &lt;my_password&gt;&quot;</code></pre> +<p>I also made a couple of customizations to the look and feel of WeeChat:</p> +<pre><code>/set weechat.bar.status.color_bg 235 +/set weechat.bar.title.color_bg 235 +/set weechat.color.separator grey +/set weechat.color.chat_nick_self _blue +/set weechat.color.status_time *white +/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>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 <em>plugin</em> instead of a series of <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> +<p><em>This is my ninety-sixth post for the <a href="https://social.paritybit.ca/tags/100DaysToOffload">#100DaysToOffload</a> challenge. You can learn more about this challenge over at <a href="https://100daystooffload.com">https://100daystooffload.com</a>.</em></p>]]></description> + </item> +<item> <title>My Top 10 Most Used Commands</title> <link>https://www.paritybit.ca/blog/my-top-10-most-used-commands</link> <guid>https://www.paritybit.ca/blog/my-top-10-most-used-commands</guid> diff --git a/public/sitemap.xml b/public/sitemap.xml @@ -3,6 +3,7 @@ <url><loc>https://www.paritybit.ca</loc></url> <url><loc>https://www.paritybit.ca/home</loc></url> <url><loc>https://www.paritybit.ca/blog</loc></url> + <url><loc>https://www.paritybit.ca/blog/setting-up-weechat-again</loc></url> <url><loc>https://www.paritybit.ca/blog/my-top-10-most-used-commands</loc></url> <url><loc>https://www.paritybit.ca/blog/the-hacker-quarterly-magazine</loc></url> <url><loc>https://www.paritybit.ca/blog/ethical-investing</loc></url>