I've seen several other attempts at getting this to work. -- Attempt #1: Tabbdex
Using the 'tabbedex' extension. -> https://github.com/stepb/urxvt-tabbedex/issues/12 This feature, however, has been removed by the tabbedex maintainers. The user eventually opted for a nested tmux setup instead. -- Attempt #2: new_tab() Earlier this year, Michael Traxler, a member of this list, asked how to "automate the setup of urxvt-perl-extenstions via scripts"; specifically, to open new tabs and change their names. -> http://lists.schmorp.de/pipermail/rxvt-unicode/2014q1/001911.html There were references to "$self->new_tab;" and "->new_tab (qw(-e /bin/zsh))", but no report of success from Michael Traxler (or anyone else). -- Attempt #3: new urxvt::term I've been working on starting a new urxvt window that will open several tabs. Each tab will run a command, like 'ls' to display a directory, or 'vim' to open an editor, etc. Opening a window is _almost_ working. The bug is that it opens three windows instead of one. Try this code snippet for yourself: #! perl sub on_start { my ($self) = @_; my $env = $self->env; new urxvt::term $env, "urxvt", -e => "sh", -c => "ls; exec sh" ; } And I don't know how that would lead to opening tabs in that window, with each tab running a separate command ('ls', 'vim', etc.). --- Have you successfully put these pieces together for yourself (or done something completely different to get the desired result)? After days of searching and experimentation, it still seems like no one has figured this out. A working example would help everyone who will ask this same question in the future, just as I and several others already have asked about and tried to do. It's a feature that seems to be easy for a fully scriptable terminal emulator like urxvt -- surprising that there's no clear answer yet. Hopefully an example can make things clear for anyone who wants to do something like this without resorting to nested tmux instances, or going back to their old terminal emulator due to the absence of a urxvt solution. Thanks in advance for your ideas...! ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth _______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
