Probably not the answer you would like to get, but at the moment this is not possible, at least with the official version of gnome-terminal
.
There is a feature request on the gnome bug tracker (#557593) from 2008, which calls for this feature. There even were some patches that implemented this feature but they were never merged into the main branch.
Strangely, the underlying VTE widget, which is utilized by gnome-terminal
- and which is also part of the Gnome project, has had the ability to set the urgent flag since before the above bug was created. (See this bugreport (#329108)).
There is also a bug report on Launchpad (#272749) which has some more information.
The comments in the bug reports seem to indicate that it is still possible to apply the patches onto newer versions of gnome-terminal
. So, if you want to keep using it, you probably have to compile it on your own with the necessary patches.
It seems like this may be what you're looking for. http://askubuntu.com/questions/228096/terminal-bell-doesnt-ring
– Hefewe1zen – 2016-03-30T11:04:47.817I tried that, but this is to get some sound, which does work. What I want is also to have the bell recognized as urgent, and have the workspace / window preview go red (which works with urxvt or xterm, btw) – greg0ire – 2016-03-30T11:49:40.740