I try to run the nicklist addon with irssi using screen inside tmux but strangely 🙂 it doesn't work and I get the input on top of the screen. Is it possible to run nicklist when you are on tmux?
Running nicklist with irssi using screen inside tmux
gnu-screenirssitmux
Related Solutions
Some of the (major) reasons I prefer tmux
over screen
:
- Status bar is much easier to use. You can easily set up different text/styles for current window, windows with activity, etc. and you can put things on the left and right of the status bar, including shell commands that can be run at a specified interval (default 15s).
- Almost any command you can run inside
tmux
can be run from a shell withtmux command [args]
. This makes it very easily scriptable, as well as making it easy to do complex commands. - Much more accurate automatic window renaming. While
screen
sets the title based on the first word of the command, and requires shell configuration to do even that in a shell window,tmux
keeps track of what processes are actually running in each window, and updates the title accordingly. This way you get dynamic renaming with any shell and zero configuration. For example: Let's say you're running Z Shell; the window's name would be "zsh". Now let's say you want to edit some configuration file, so you typesudo emacs /etc/somefile
. While sudo is asking for your password, the window's name will be "sudo", but once you've done that andsudo
launchesemacs
, the title will be "emacs". When you're all done and you exitemacs
, the title will change back to "zsh". This is pretty useful for keeping track of windows, and it can also be especially useful in specific situations, like if you have some long-running process in another window that occasionally prompts you for input usingdialog
; the window name would change to "dialog" when that happened, so you would know you had to switch to that window and do something. - Nicer session handling (IMHO). You can do a lot more with sessions within
tmux
itself. You can easily switch, rename, etc. and you can move and share windows between sessions. It also has a different model, where each user has a server which controls his/her sessions and which the client connects to. The downside of this is that if the server crashes, you lose everything; I've never had the server crash on me, though. tmux
seems to be more actively developed. There are updates pretty frequently, and you can file a bug report or feature request according to this FAQ and get an answer within a few days. However, as pointed out in a comment,screen
's lack of development is mostly because it's stable. It's basically done, not abandoned. That said, if it can't do something now, it probably won't ever be able to, and long-standing issues are less likely to be fixed. (Though, to be fair, vertical splitting is one feature thatscreen
didn't have when I first answered this question and does have now.)
Those are some of the reasons I personally switched from screen to tmux. That's not to say screen doesn't have advantages, but FWIW I can't think of anything I've missed since switching. The other answer by a paid nerd has a more objective list of Pros/Cons, though anecdotally I'll say that I've never had the issues with crashes or missed keystrokes that are mentioned there. (Those could have been OS-dependent. I've only used it on Linux and FreeBSD.)
I believe this setting is what you're looking for:
/set beep_when_window_active on
/save
Best Answer
An alternative way is splitting your current window in tmux (C-b + h or whatever you set up your shortcut) (horizontal), resize that window (C-b + left/right) and then activate nicklist.pl in the "FIFO" way:
In irssi:
In a shell:
Then in irssi again:
/SET nicklist_heigth "height of nicklist"
/SET nicklist_width "width of nicklist"
/NICKLIST FIFO
So at the end you should have:
--------------------------|----------
---------irssi ---------- |nicklist
--------------------------|----------