0

I frequently use Irssi for IRC, which is typically run from within a terminal. I have a launcher (.desktop file) set up to launch it with the appropriate Gnome Terminal profile, and that works fine.

But when I want to switch back to it via alt+tab, I have to then cycle through terminal instances (using alt+`) to find Irssi.

Is there a way to trick the Gnome 3 switcher into thinking it's a distinct application from other terminal instances; perhaps even giving it it's own icon so I can visually distinguish it while switching?

I am aware of the AlternateTab extension, but I'd rather preserve the normal behaviour for all other apps if possible.

I'm using Ubuntu 14.04, but I'm also using the Gnome 3 Team PPA, so Gnome Terminal is at 3.10.

  • Does the window name differ from other terminal windows? – Jacob Vlijm Jan 18 '15 at 17:10
  • Yes, irssi has an add-on script that does that. – detly Jan 18 '15 at 20:02
  • (And it's also possible to set via the .desktop file using one of gnome-terminal's options.) – detly Jan 18 '15 at 20:44
  • Not literally what you asked for, but would it be a solution then to create a keyboard shortcut, calling a tiny script that checks if the window: <windowname> exists, if not, runs Irssi, else raises its window? – Jacob Vlijm Jan 19 '15 at 8:02
  • I don't think that would help my workflow much over what it is currently (alt+tab and alt+``` vs a third arbitrary shortcut) :/ – detly Jan 19 '15 at 10:45
0

This is a hack!

sudo cp /usr/bin/gnome-terminal ~/bin/detly-terminal

Now change your Irssi.desktop file to use detly-terminal

Tested and works on Unity

If that would fail and you're ready to program something anyway, I would: download the source code, do a sed and replace gnome-terminal with detley-terminal, and recompile...

| improve this answer | |
  • Doesn't work unfortunately. – detly Jan 20 '15 at 0:21
  • You mean for the launcher? Yep :/ – detly Jan 20 '15 at 0:42
  • Chat??? Ubuntu general room??? – Fabby Jan 20 '15 at 0:44
  • OK, let me go over my settings: gnome-terminal has a .desktop file with a customized steampunk icon. detley-terminal is in ~/bin and has no .desktop file. If I launch detley-terminal in the same session as the gnome one, I get a steampunk icon and an ugly gnome terminal icon that I can [Alt][Tab] between... – Fabby Jan 20 '15 at 0:53
  • Yeah, I'm trying a similar thing. I have an extra-gnome-terminal in ~/Code/bin (which is on my $PATH). If I just launch extra-gnome-terminal from a console, the switcher groups it with gnome-terminal. – detly Jan 20 '15 at 1:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.