On Fri, Oct 18, 2024 at 15:05:31 -0700, Larry Martell wrote:
> On Fri, Oct 18, 2024 at 3:00 PM Arbol One <arbol...@hotmail.ca> wrote:
> >
> > Hello everyone.
> >
> > Could anyone tell me how to make Debian 12-gnome-terminal make a beep sound 
> > after completing a shell script.
> 
> Way back in the day I used to do this:
> echo '^G'
The more-portable version of this is printf '\a'.

The issue, though, is that what the terminal *does* with this \007
byte depends on a truly formidable number of different settings and
layers.  The terminal may cause the system to beep, or it may flash,
or it may do nothing at all.

Arbol One could try printf '\a' and see what happens.  If they get a
beep, then all is well, and they can use this however they see fit.
But if it doesn't beep, then trying to diagnose *why* could be tricky.

If diagnosis/modification is needed, they might start with "xset q"
and see whether the bell is enabled in that particular layer.  If
not, xset can change that setting.  If the bell is enabled in xset but
still not audible, then I don't know what the next layer to check is.
(GNOME?  ALSA?  Pulse audio?  Pipewire?)

Reply via email to