Weechat and Dzen

On the dzen wiki there are some directions how you can create a box that shows all your IRC highlights from irssi. Since I tend to always miss when people try to talk to me (stupid multiple workspaces), this is just awesome, and a real lifesaver. Unfortunately my IRC client of choice is Weechat, and I couldn't find a comparable solution.

So I rolled my own. I wrote a script for Weechat that pulls all highlights and private messages, and writes them to a pipe, which can then be read by dzen, just like the solution for irssi.

Also, it can beep.

Installing is really straightforward, just like any other script in Weechat. It's written in Ruby (so Weechat has to be compiled with Ruby support - not standard in Gentoo!), so it goes to

   1  ~/.weechat/ruby/

and can then be loaded from within weechat with

   1  /ruby load hilites.rb

You can configure it by accessing the settings with

   1  /set plugins.var.ruby.hilites.*

Finally, you do need to fire up dzen to actually read the pipe, I'm using something along the lines of

   1  tail -f /home/crshd/.weechat/pipe | dzen2 -ta l -tw 145 -h 17 -l 6 -y 1280 -bg "#151515" -fn "Pragmata:size=8"

in my ~/.xinitrc

Download the Script

Or clone it on GitHub

Cal 2011.02.26

Tag Ruby WeeChat dzen