Hack and / - Do the Splits
Irssi is definitely my favorite IRC client, and I probably spend as much time in it as I do in any other command-line program. It also supports an interesting split-screen feature that takes some getting used to. Basically, each channel you join in irssi ends up in its own numbered window. On my setup, I always have particular channels set to open in a particular window, so when I press Alt-7, for instance, I always will go to #linuxjournal. Sometimes you have a lot of activity going on in more than one channel and want to monitor all of them. So, for instance, if I want to view both #linuxjournal (in window 7) and #nblug (in window 4), and I already am in #nblug, I could type:
/window show 7
Now the irssi screen splits in half with #linuxjournal on the top and #nblug on the bottom. If I want to chat in #linuxjournal, I press Alt-7 to make sure it is selected (the topic header on irssi updates to show the currently selected window). Then, if I want to chat in #nblug, I press Alt-4.
Irssi split windows become interesting once you start switching beyond two windows. Going back to the example, if I press Alt-5 now (my #knoppix window), the bottom window changes to that channel. By default, irssi makes the top window in a split screen “sticky”, so that it appears no matter what other windows you switch to along the bottom. If I want to turn off sticky mode for that window I would type:
/window stick 7 off
Now, when I switch between windows with the Alt key, the top or bottom window switches, depending on which had focus last. If I want to stick #linuxjournal on the top again, I type:
/window stick 7
Once you are finished with your split screen (or if you are getting confused and want to turn it off), type:
to hide the currently selected window. If that window is sticky, it won't be able to hide until you turn off stickiness with /window stick off.
Now, what would a column about splits be if I didn't show an insanely complicated nested set of split screens? Note that I don't advocate actually using a setup like the following on a daily basis, but Figure 4 shows what happens when you split screen into two windows, open a split irssi on the top window and a vertically split vim on the bottom. I hope these split-screen features help you stay organized and productive.
Kyle Rankin is a Senior Systems Administrator in the San Francisco Bay Area and the author of a number of books, including Knoppix Hacks and Ubuntu Hacks for O'Reilly Media. He is currently the president of the North Bay Linux Users' Group.
Kyle Rankin is a director of engineering operations in the San Francisco Bay Area, the author of a number of books including DevOps Troubleshooting and The Official Ubuntu Server Book, and is a columnist for Linux Journal.
Getting Started with DevOps - Including New Data on IT Performance from Puppet Labs 2015 State of DevOps Report
August 27, 2015
12:00 PM CDT
DevOps represents a profound change from the way most IT departments have traditionally worked: from siloed teams and high-anxiety releases to everyone collaborating on uneventful and more frequent releases of higher-quality code. It doesn't matter how large or small an organization is, or even whether it's historically slow moving or risk averse — there are ways to adopt DevOps sanely, and get measurable results in just weeks.
Free to Linux Journal readers.Register Now!
- Django Models and Migrations
- Hacking a Safe with Bash
- Secure Server Deployments in Hostile Territory, Part II
- Home Automation with Raspberry Pi
- The Controversy Behind Canonical's Intellectual Property Policy
- Huge Package Overhaul for Debian and Ubuntu
- Shashlik - a Tasty New Android Simulator
- KDE Reveals Plasma Mobile
- Embed Linux in Monitoring and Control Systems
- diff -u: What's New in Kernel Development