Flashing GNOME Terminal

Home > Software > Gnome > Flashing Terminal

I wanted to be able to run a command in the background, go off and do something else, and have GNOME Terminal notify me when the command was done.

The patch below makes GNOME Terminal flash when a command finishes and you're not working in that window. It also highlights the title of the tab inside GNOME Terminal.

A new terminal


Running a long command (for example a long file transfer or a build)


Getting on with something else while you wait

The terminal flashes in the task bar to let you know the command has finished

GNOME 2.22

  1. Check out VTE revision 2048 from VTE trunk (mkdir vte; svn co -r 2048 http://svn.gnome.org/svn/vte/trunk vte)
  2. Apply this patch (cd vte/src; patch < vte-beep-urgencyhint.patch)
  3. Build and install (cd ..; ./autogen.sh; make; sudo make install)
  4. Check out GNOME Terminal revision 3194 from the GNOME 2.22 branch
  5. Apply this patch
  6. Build and install (./autogen.sh; make; sudo make install)

GNOME 2.24

  1. Check out VTE revision 2185 from VTE trunk
  2. (No VTE patch required)
  3. Build and install (./autogen.sh; make; sudo make install)
  4. Check out GNOME Terminal revision 3195 from the GNOME 2.24 branch
  5. Apply this patch
  6. Build and install (./autogen.sh; make; sudo make install)

Both

  1. Put PS1="\\007$PS1" in your .bashrc or .zshrc
  2. Log out and in

Use Cases

  1. telling you when a long-running command has finished
  2. in place of an audible bell
  3. incorrect mix of settings and prompt