tilde/blog/weechat-setup.html

117 lines
5.9 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#00cc00">
<link rel="icon" type="image/png" sizes="192x192" href="https://tilde.team/apple-touch-icon-precomposed.png">
<link rel="icon" type="image/png" sizes="96x96" href="https://tilde.team/favicon-96x96.png">
<link rel="stylesheet" href="https://tilde.team/~ben/gruvbox/gruvbox.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="subscribe to this page..." href="feed.rss" />
<title>weechat setup</title>
</head><body>
<main>
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://tilde.team/~ben/blog/index.html">blog // ~ben</a></h1>
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<!-- entry begin -->
<h3><a class="ablack" href="weechat-setup.html">
weechat setup
</a></h3>
<!-- bashblog_timestamp: #201811162311.30# -->
<div class="subtitle">November 16, 2018 &mdash;
~ben
</div>
<!-- text begin -->
<p>so you decided to switch from irssi to weechat?</p>
<p>what options do you need to set? what plugins? what scripts?</p>
<p>i'll go over some of the most essential of these, and share my full configs.</p>
<hr />
<h3>options</h3>
<ul>
<li><code>logger.level.irc</code> the default is 9, which includes joins and parts. in most cases you can set this to 3, which only includes messages</li>
<li><code>weechat.look.buffer_notify.default</code> the default here is "all", which will add joins and parts to your hotlist. set it to "message".</li>
<li><code>weechat.look.confirm_quit</code> set this to on. you'll thank me when you type <code>/quit</code> and mean <code>/close</code></li>
<li><code>weechat.look.highlight</code> add a comma-separated list of names/terms you'd like to trigger a highlight here</li>
<li><code>weechat.look.prefix_align_max</code> set this to something between 10 and 20. otherwise, long nicks will crush your available screen real estate.</li>
<li><code>buflist.format.indent</code> try something like <code>${color:237}${if:${buffer.next_buffer.local_variables.type}=~^(channel|private)$?├:└}</code></li>
<li><code>buflist.format.number</code> if you want to skip the . or space after the number, set it to <code>${color:green}${number}</code></li>
<li><code>irc.look.color_nicks_in_names</code> set this to on</li>
<li><code>irc.look.color_nicks_in_nicklist</code> set this to on</li>
<li><code>irc.look.server_buffer</code> set this to independent to prevent automatic merges with the core weechat buffer. especially useful if you plan on using <a href="https://weechat.org/scripts/source/autosort.py.html/">autosort.py</a></li>
<li><code>irc.server_default.autoconnect</code> set this to on so you don't have to set it for every new network you add.</li>
</ul>
<h3>scripts</h3>
<p>these scripts can be managed with the built in <code>/script</code> tool. press i, then enter on the selected script to install it.</p>
<ul>
<li><a href="https://weechat.org/scripts/source/highmon.pl.html/">highmon.pl</a> - set aside a buffer to list the places your nick has been mentioned</li>
<li><a href="https://weechat.org/scripts/source/colorize_nicks.py.html/">colorize_nicks.py</a> - show nicks in chat with colors</li>
<li><a href="https://weechat.org/scripts/source/go.py.html/">go.py</a> - fuzzy quick jump by buffer number of channel name</li>
<li><a href="https://weechat.org/scripts/source/autojoin.py.html/">autojoin.py</a> - use <code>/autojoin --run</code> to save all the channels you're currently in to be autojoined the next time you start weechat</li>
<li><a href="https://weechat.org/scripts/source/autosort.py.html/">autosort.py</a> - use this script in tandem with irc.look.server_buffer=independent to keep you channel and server list in order</li>
<li><a href="https://weechat.org/scripts/source/colorize_lines.pl.html/">colorize_lines.pl</a> - i use this script to highlight the entire line of messages i've been mentioned in. check the options in the source or with <code>/help colorize_lines</code></li>
<li><a href="https://weechat.org/scripts/source/grep.py.html/">grep.py</a> - quickly search history and buffers with <code>/grep</code></li>
</ul>
<h3>the rest of my configs</h3>
<p>you can find the rest of my configs <a href="https://tildegit.org/ben/dotfiles/src/branch/master/weechat/.weechat">here</a>.</p>
<p>if you have any questions, feel free to ping me on irc. i'm benharri on freenode and ben on <a href="https://tilde.chat">tilde.chat</a></p>
<h3>screenshot</h3>
<p>here's a screenshot of my current configs</p>
<p><img src="https://bhh.sh/pub/screenies/weechat.png" alt="" title="" /></p>
<h3>bonus</h3>
<p>if you have an existing setup, you can check the config changes you've made with <code>/set diff</code></p>
<p>additionally, feel free to <a href="https://tildegit.org/ben/dotfiles/src/branch/master/weechat/.weechat/.gitignore">use my .gitignore</a>, add your ~/.weechat to source control, and compare.</p>
<p>hope you've enjoyed customizing your weechat!</p>
<p>tags: <a href='tag_irc.html'>irc</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_weechat.html'>weechat</a></p>
<!-- text end -->
<!-- entry end -->
</div>
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben/">~ben</a> &mdash; <a href="mailto:ben&#64;tilde&#46;team">ben&#64;tilde&#46;team</a><br>
generated with <a href="https://tildegit.org/team/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
<script src="https://utteranc.es/client.js"
repo="benharri/tilde"
issue-term="title"
crossorigin="anonymous"
theme="github-dark"
async>
</script>
</main>
<br>
</body></html>