Difference between revisions of "Weechat"
|Line 25:||Line 25:|
== Basic use ==
== Basic use ==
Revision as of 12:05, 18 April 2012
Once upon a time there was BitchX. Then there was Irssi. Now there is Weechat. More and more people are switching over to Weechat from Irssi, probably coz the colours make IRC easier to read and follow. Problem is, for the Irssi user, Weechat may be a tad confusing.
Weechat documentation can be tricky to follow, so this page is an attempt to make simple those bizarre and abstract commands.
Dregin is a big Weechat fanboi. And as such, he has his own special builds designed for Redbrick. Azazel is the current login machine, and like the hero that he is, dregin has compiled a version of Weechat that runs on azazel:
Copy and paste that into your terminal command line, hit enter, and give yourself a pat on the back.
Weechat requires a bit of jiggery pokery before building on azazel using make && make install. Here's how to do it:
git clone git://git.sv.gnu.org/weechat.git cd weechat ./autogen.sh ./configure --prefix=$HOME/bin --disable-ruby for f in `ls po/*.po` do /usr/bin/msgmerge --update $f po/weechat.pot done; make make install
Creadak has also written a script that will upgrade weechat, install it to a local directory, and text you that it's upgraded, so it's perfect for cronjobbing. The script is available from http://creadak.tk/upgrade-weechat and instructions are at the top of the script
Connecting to a server and channel
When you hit 'chat' on Redbrick, you start Irssi, you're automatically connected to a server, then you're joined to Redbrick's #lobby. This all happens behind the scenes, and with Weechat, you need to do this manually. Fear not: it's easy.
When you start Weechat, you won't get connected to a server or channel. To connect to Redbrick's IRC sever, type:
Then to join #lobby:
As well as showing you how IRC clients (such as Weechat or Irssi or whatever) connect to stuff, this should also show you how to connect to other servers and channels outside of Redbrick.
To connect to any server, simply enter /connect <server_address>. You will probably be greeted with various messages and such from that server. To join a channel on that server, just type /join <channel_name>.
Like Irssi, you can move between windows/buffers using Alt+<num>. You can also type /buffer <num> (similar to /win <num> in Irssi).
F5 and F6 move to the predecessing and successing buffer, respectively.
You can move buffers (chat windows) with /buffer move. In a channel, type:
/buffer move <num>
(where <num> is any number you want). That channel is now accessible at Alt+<num>
Changing between servers
Weechat will generally assume that whatever channel you're in, that's also the server you're operating on. So you can chat away as you wish and issue general commands.
However, for some commands, you will need to let Weechat know what server you're on.
Hit Alt+1. This will bring you to your status window. Along the bottom you will see the time, number of channels, the server you're connect to, as well as other channel stuff.
Press Ctrl+x. If you're connected to multiple servers, the server section will change, telling you which server Weechat is connect to. So now you can issue commands to that server (such as /nick) without affecting other servers.
For example, I am currently connected to irc.redbrick.dcu.ie and to irc.starchat.net. If I hit Ctrl-x I can switch to StarChat, and change my nickname there without it affecting Redbrick's IRC.
Keybinds are handy, especially if you have over 10 channels open. I use Alt+<num> to get to channels, but clearly this only works from 1 up to 0 (on a keyboard). So for channels in higher numbers, you can bind keys: i.e. Alt+q gets me to channel 11; Alt+y gets me to channel 16.
/key bind meta-q /buffer 11
"Key" and "bind" are self-explanatory. "Meta" is Weechat's word for Alt (so meta-q is the same as Alt+q). /buffer 11 is the command that's executed once meta-q (Alt-q) is typed.
You can build up these to meta-w, meta-e, meta-r for buffer 2, buffer 3, buffer 4, etc etc.
Of course, you can bind any key combo to any weechat command; it's not necessary to make them Alt+<num> commands.
Note: Watch out for caps lock if you're keybinding. If you bind Alt+y to a command, Alt+Y won't work (unless you bind that separately). If you find your binds aren't working, check your caps.