clone url: git://git.m455.casa/m455.casa
html/posts/weechat-tips.html
1 | <!DOCTYPE html> |
2 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
3 | <head> |
4 | <meta charset="utf-8" /> |
5 | <meta name="generator" content="pandoc" /> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> |
7 | <title>WeeChat tips</title> |
8 | <style> |
9 | code{white-space: pre-wrap;} |
10 | span.smallcaps{font-variant: small-caps;} |
11 | span.underline{text-decoration: underline;} |
12 | div.column{display: inline-block; vertical-align: top; width: 50%;} |
13 | div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} |
14 | ul.task-list{list-style: none;} |
15 | </style> |
16 | <link rel="stylesheet" href="/assets/archive.css"> |
17 | </head> |
18 | <body> |
19 | <main> |
20 | <h2 id="weechat-tips">WeeChat tips</h2> |
21 | <p>2021-01-19 00:00</p> |
22 | <p>Here are some handy things I learned from using WeeChat that might be valuable to some people.</p> |
23 | <h3 id="page-overview">Page overview</h3> |
24 | <!-- vim-markdown-toc GFM --> |
25 | <ul> |
26 | <li><a href="#adding-an-irc-network-securely">Adding an IRC network securely</a> |
27 | <ul> |
28 | <li><a href="#registering-your-nickname">Registering your nickname</a></li> |
29 | <li><a href="#adding-servers-and-credentials">Adding servers and credentials</a></li> |
30 | <li><a href="#changing-your-password">Changing your password</a></li> |
31 | </ul></li> |
32 | <li><a href="#adding-an-irc-network-insecurely">Adding an IRC network insecurely</a> |
33 | <ul> |
34 | <li><a href="#registering-your-nickname-1">Registering your nickname</a></li> |
35 | <li><a href="#adding-servers-and-credentials-1">Adding servers and credentials</a></li> |
36 | <li><a href="#changing-your-password-1">Changing your password</a></li> |
37 | </ul></li> |
38 | <li><a href="#tweaks-and-tricks">Tweaks and tricks</a></li> |
39 | </ul> |
40 | <!-- vim-markdown-toc --> |
41 | <h3 id="adding-an-irc-network-securely">Adding an IRC network securely</h3> |
42 | <p>The tips in this section won’t leave plaintext passwords in <code>~/.weechat/irc.conf</code>.</p> |
43 | <h4 id="registering-your-nickname">Registering your nickname</h4> |
44 | <pre><code>/msg nickserv register <your-password> <your-email@example.com></code></pre> |
45 | <h4 id="adding-servers-and-credentials">Adding servers and credentials</h4> |
46 | <pre><code>/secure passphrase <your-password-to-unlock-all-passwords> |
47 | /secure set libera.chat_password <your-password> |
48 | /server add libera.chat libera.chat/6697 -ssl |
49 | /set irc.server.libera.chat.sasl_username "<username>" |
50 | /set irc.server.libera.chat.sasl_password "${sec.data.libera.chat_password}" |
51 | /set irc.server.libera.chat.autoconnect on |
52 | /set irc.server.libera.chat.autojoin "#coolchannel,#anothercoolchannel"</code></pre> |
53 | <h4 id="changing-your-password">Changing your password</h4> |
54 | <pre><code>/secure set libera.chat_password <new-password> |
55 | /save</code></pre> |
56 | <h3 id="adding-an-irc-network-insecurely">Adding an IRC network insecurely</h3> |
57 | <p>The tips in this section will leave plaintext passwords in <code>~/.weechat/irc.conf</code>.</p> |
58 | <h4 id="registering-your-nickname-1">Registering your nickname</h4> |
59 | <pre><code>/msg nickserv register <your-password> <your-email@example.com></code></pre> |
60 | <h4 id="adding-servers-and-credentials-1">Adding servers and credentials</h4> |
61 | <pre><code>/secure set libera.chat_password <your-password> |
62 | /server add libera.chat libera.chat/6697 -ssl |
63 | /set irc.server.libera.chat.username "<username>" |
64 | /set irc.server.libera.chat.password <your-password> |
65 | /set irc.server.libera.chat.autoconnect on |
66 | /set irc.server.libera.chat.autojoin "#coolchannel,#anothercoolchannel"</code></pre> |
67 | <h4 id="changing-your-password-1">Changing your password</h4> |
68 | <pre><code>/set irc.server.libera.chat.password <your-new-password> |
69 | /save</code></pre> |
70 | <h3 id="tweaks-and-tricks">Tweaks and tricks</h3> |
71 | <ul> |
72 | <li>Marking all buffers as read: <code>alt-h</code></li> |
73 | <li>Changing to an unread buffer: <code>alt-a</code></li> |
74 | <li>Scrolling up and down a buffer: <code>page up</code>/<code>page down</code></li> |
75 | <li>Scrolling through your mentions: <code>alt-n</code>/<code>alt-p</code></li> |
76 | <li>Redraw WeeChat: <code>ctrl-l</code></li> |
77 | <li>Click a link in the terminal: <code>ctrl click</code></li> |
78 | <li>Make long, wrapped links clickable: <code>alt-l</code> (Press <code>alt-l</code> again to return to the normal view)</li> |
79 | <li>Changing from buffers 1-9: <code>alt-<number></code></li> |
80 | <li>Changing from buffers 10-99: <code>alt-j <number></code></li> |
81 | <li>Changing to a buffer by name (allows tab-completion for names): |
82 | <ul> |
83 | <li><code>/buffer #friends-hangout</code></li> |
84 | <li><code>/buffer friends-hangout</code></li> |
85 | </ul></li> |
86 | <li>Setting an alias for <code>/buffer</code>: <code>/alias add b /buffer</code></li> |
87 | <li>Shortening timestamps: <code>/set weechat.look.buffer_time_format "%H:%M"</code></li> |
88 | <li>Disabling notifications for users who join and part a channel: <code>/set weechat.look.buffer_notify_default message</code></li> |
89 | <li>Limiting username length: <code>/set weechat.look.prefix_align_max 12</code></li> |
90 | <li>Limiting buffer name length: <code>/set weechat.bar.buflist.size_max 15</code></li> |
91 | <li>Limiting nickname length in the nickname list: <code>/set weechat.bar.nicklist.size_max 12</code></li> |
92 | <li>Turn off chat logging: <code>/set logger.level.irc 0</code> (Great if you run WeeChat on a server with limited storage)</li> |
93 | <li>Show/hide the buffer list: <code>/bar toggle buflist</code></li> |
94 | <li>Show/hide the nickname list: <code>/bar toggle nicklist</code></li> |
95 | </ul> |
96 | </main> |
97 | </body> |
98 | </html> |