RSS-feed

Fri, 07 Dec 2007

irssi tips -- binding


If you have more than 20 windows, irssi assigns a two digit number to the new windows so you cannot quickly jump to them. Solution:

/bind meta-P change_window 20


posted at: 14:40 | path: /irssi | permanent link to this entry

Fri, 28 Sep 2007

Changing the timezone without restarting irssi

09:05:21 <+drio> Can I make irssi to read the TZ env variable without having to restart?
09:08:07 < znx> drio: yes ..
09:08:11 <+MonicaOff> Praise be to you.
09:08:22 <+drio> znx: how do I do it?
09:08:45 < znx> drio: two seconds .. ill dig it up
09:09:21 < znx> /script exec $ENV{'TZ'}="America/Los_Angeles";

Isn't it irssi great?

posted at: 13:50 | path: /irssi | permanent link to this entry

Tue, 28 Aug 2007

Irssi: Running a command on each window


In some cases you may want to run an irssi command on each window you have open. This is the way to do it:

18:00:50 < drio> Is there any way to run a command to all the windows open?
19:01:58 < imMute> drio: /foreach window /


posted at: 22:52 | path: /irssi | permanent link to this entry

Sat, 11 Aug 2007

Proper way to add a new channel


18:18:49 < drio> I want to add a new network and a new server to my irssi.. 
18:18:56 < drio> and then I want to join a channel.. 
18:19:03 < drio> I want all of them to be loeaded automatically.. 
18:19:09 < drio> server + channel.. 
18:19:11 < drio> I tried this first:
18:19:33 < drio> /SERVER ADD -auto -network operanet irc.opera.com 6667 
18:19:40 < drio> but then.. 
18:19:42 < drio> when I do
18:19:47 < drio> /network list
18:19:50 < drio> it doesn't show up.. 
18:19:56 < drio> so I cannot change the server... 
18:19:59 < drio> using ctrl + x
18:20:05 < drio> what is the proper way to do this?
18:20:22 <@znx> drio: do ..
18:20:30 <@znx> /network add something
18:20:47 < drio> done
18:20:49 <@znx> /server add -auto -network something server.com 6667
18:21:03 <@znx> /channel add -auto #channel something
18:23:36 < drio> umm.. 
18:23:39 < drio> I did that.. 
18:23:48 < drio> but still cannot change the server using ctrl + X
18:23:57 < drio> the list of servers shows operanet... 
18:24:01 <@znx> drio: did you connect to it yet?
18:24:07 <@znx> /connect something
18:24:17 < drio> ups.. 
18:24:26 < drio> since I did the -auto.. 
18:24:33 < drio> I thought it was goign to connect.. 
18:24:36 < drio> beautfil.. 

Bottom line:

18:20:30 <@znx> /network add something
18:20:49 <@znx> /server add -auto -network something server.com 6667
18:21:03 <@znx> /channel add -auto #channel something
18:24:07 <@znx> /connect something


posted at: 20:52 | path: /irssi | permanent link to this entry

Fri, 10 Aug 2007

Go to the last window


11:45:51 < drio> Is there any shortcut that takes you to the previous window?
11:46:20 < drio> Let's say I am in window5 .. I go to number 8... and then I want to go back to number 5 but I 
                 don't remember I was in 5
11:48:04 <@Wibla> not really no, im actually looking for that myself
11:48:10 <@Wibla> i usually alt-a through alot of shit, quite fast
11:48:23 <@Wibla> and sometimes i see something interesting, but by then its already too late, im in the next 
                  channel before I notice what chan it is
11:48:27 <@Wibla> ;P
11:48:31 < drio> Correct!!!!!!!!!
11:48:32 < drio> same here
11:48:42 < drio> time to do some scripting?
11:48:48 <@Wibla> hehe
11:49:40 < drio> Instead of /clear
11:50:03 < drio> What the fuck is that.. I didn't write that.. 
11:50:09 < drio> umm.. 
11:54:30 <@jilles> /window last
11:54:42 <@jilles> you can put it on a alt+ thing yourself
11:56:53 < drio> jilles: a great thanks


posted at: 14:03 | path: /irssi | permanent link to this entry

Thu, 09 Aug 2007

understanding the status bar


[16:46:04] [drio(+i)] [5:#irssi(+nst)] [87 nicks (@24 %0 +2 61)]

That's how the status bar in my irssi looks like. Some of the entries are easy to understand but some are not.

We first have the current time. Then, we have the nick and (+i). What's that? Well, it means I am invisible. And if we check irchelp we find exactly what it means:

If someone starts harassing or flooding you, leave the channel or use the /ignore command. For more details, mIRC users see our flood protection page, ircII users type /help ignore. It is a good idea to set your user mode to +i (invisible) to avoid unsolicited messages and harrassment -- if you are "invisible" generally only users on a channel with you can determine what nick you are using.

After that, we have: window number:channel_name(+channel modes). An specifically, that channel has this modes on: +nst. What are they? Let's use irchelp again to find out:

No external messages to the channel (n): People outside the channel cannot do /MSG #channel_name [whatever] which would otherwise be sent to everybody on the channel

Topic control (t): Only channel ops are allowed to change the topic

The "+p" or "+s" will be explained later, for now consider them to be flags denoting the nature of the channel. These channels provide privacy and security for insiders and may or may not welcome newcomers. If you don't know the names of these exclusive channels already, you won't find them using /LIST. Even if you know the channel name, you still cannot use /WHO #channelname to see who is presently in there unless you join the channel yourself. Note: private and secret are not the same thing, but the difference is pretty arcane.

posted at: 18:48 | path: /irssi | permanent link to this entry

Wed, 08 Aug 2007

Scrolling up and down


10:43:42 < drio> I use ESC+n ESC+p to scroll down and up in a channel... When I perform an scroll some of the 
                 lines that I have read still show up.. is there any way to make irssi scroll the whole screen 
                 /page?
10:44:16 < Moggie> yes it's an environment setting telling irssi how much to scroll up by
10:44:23 < Moggie> default is half the screen
10:44:49 < Moggie> scroll_page_count
10:44:55 < drio> Thanks Moggie 
10:45:01 < Moggie> welcome

This is what I did:

/set scroll_page_count /1

From the manual:

How many pages to scroll the scrollback buffer when pressing
    page-up or page-down.  Expressed as a number of lines, or as a
    fraction of the screen:

      /2  = Scroll half a page.
      .33 = Scroll about a third of a page.
      4   = Scroll four lines.


posted at: 12:49 | path: /irssi | permanent link to this entry

Tue, 07 Aug 2007

irssi tips


I do all my chatting with irssi and bitlebee. I have to post what's my current setup for using bitlebee with irssi, but in this post I just want to show a tip for irssi that it was been very helpful to me.

irssi has different levels of outputs that get written to a channel. Running /help levels:

23:34:40     CRAP            - Can be almost anything
23:34:40     MSGS            - Private messages
23:34:40     PUBLIC          - Public messages in channel
23:34:40     NOTICES         - Notices
23:34:40     SNOTES          - Server notices
23:34:40     CTCPS           - CTCP messages
23:34:40     ACTIONS         - Actions (/me) - usually ORed with PUBLIC or MSGS
23:34:40     JOINS           - Someone joins a channel
23:34:40     PARTS           - Someone parts a channel
23:34:40     QUITS           - Someone quits IRC
..

In my case, I don't want irssi to send everything to the channel. I just want some stuff to be ignored. This document explains clearly how to control the levels and how to ignore them. But this what I have in place in my irssi windows/channels:

/IGNORE #channel ALL -PUBLIC -NEVER -HILIGHTS

That allows me to see only content, making thinks much easy to follow and read.

If you want at some point remove all the ignore levels, just runP:

/IGNORE #channel -ALL

Also, there is a very useful script called: printlevels that you can use to figure out what is what. The script will print the level name for every thing that is send to the channel. Very useful.

posted at: 01:41 | path: /irssi | permanent link to this entry