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 VP of engineering operations at Final, Inc., the author of a number of books including DevOps Troubleshooting and The Official Ubuntu Server Book, and is a columnist for Linux Journal. Follow him @kylerankin.
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Profiles and RC Files
- Understanding Ceph and Its Place in the Market
- Git 2.9 Released
- Astronomy for KDE
- OpenSwitch Finds a New Home
- Maru OS Brings Debian to Your Phone
- What's Our Next Fight?
- The Giant Zero, Part 0.x
- Snappy Moves to New Platforms
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide