Skip to content

Instantly share code, notes, and snippets.

@zigdon
Created May 9, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zigdon/2640592 to your computer and use it in GitHub Desktop.
Save zigdon/2640592 to your computer and use it in GitHub Desktop.
Automatically assign all new irssi windows to 11
use Irssi;
sub wic {
my ($win, $query) = @_;
$win->command("window number 11");
}
Irssi::signal_add("window item changed", \&wic);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment