Have bell mean window is urgent with gnome-terminal

1

How can I configure the terminal bell to mark the current window as urgent in gnome-terminal ? Related to this question. I'm using i3wm . Currently echo -e "\a" does nothing even if I'm on another workspace.

In short, I'm looking for the gnome-terminal equivalent for

XTerm*bellIsUrgent: True
URxvt.urgentOnBell: True

greg0ire

Posted 2016-03-24T10:50:50.727

Reputation: 1 115

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.817

I 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

Answers

3

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.

Adaephon

Posted 2016-03-24T10:50:50.727

Reputation: 3 864

Thanks for the stellar answer, I guess I'll look for a new terminal emulator this week-end. I'm not even using GNOME, so it would be logical to question this choice. – greg0ire – 2016-04-08T23:27:43.500