lxterminal icon indicating copy to clipboard operation
lxterminal copied to clipboard

Feature Request: Urgency Hints as Visual Bell

Open fgrsnau opened this issue 6 years ago • 4 comments

I think it would be a great addition if lxterminal would allow to set urgency hints in addition to audible bells.

This should be as easy as calling gtk_window_set_urgency_hint(GTK_WINDOW(…), TRUE) and introducing a new config option for this kind of "visual bell".

Edit: A quick look reveals that lxterminal is not handling the terminal bell itself. To register a callback in VTE other terminal emulators use something like g_signal_connect(G_OBJECT(vte_object), "bell", G_CALLBACK(my_custom_beep_function), NULL).

fgrsnau avatar May 25 '18 08:05 fgrsnau

fgrsnau,

Is this still an issue? In my lxterminal sessions, if I hit "backspace" too many times, I hear the system bell.

davesp avatar Aug 10 '18 23:08 davesp

This feature request is not about the system bell, but about a visual feedback instead of the usual audible bell. In other terminal emulators I get a visual feedback when, for example, new mails arrive in mutt (red highlights for window/workspace in i3 as urgency hint is set correctly).

I'm using a patched version of lxterminal with #56 applied for quite a long time now without any problems.

fgrsnau avatar Aug 21 '18 07:08 fgrsnau

It seems there is a bug with this feature. According to section 4.1.2.4 of http://www.x.org/docs/ICCCM/icccm.pdf: Clients must provide some means by which the user can cause the UrgencyHint flag to be set to zero or the window to be withdrawn. The user’s action can either mitigate the actual condition that made the window urgent, or it can merely shut off the alarm.

gijsbers avatar Apr 25 '24 15:04 gijsbers

It is curious that the Urgency bit is set in the WM_HINTS property when the visual bell rings. A visual bell is a bell that is visual, which can ring if you press Backspace in the leftmost column, while the Urgency flag is a request to the window manager to bring immediate attention to this application and possibly a request to focus it. The two are unrelated.

gijsbers avatar Apr 25 '24 15:04 gijsbers