lxde / lxterminal

VTE terminal emulator written in GTK
GNU General Public License v2.0
159 stars 55 forks source link

feature request: run command on bell #60

Open nuno-silva opened 6 years ago

nuno-silva commented 6 years ago

LxTerminal already implements an "audible bell" feature. However, it would be useful to have lxterminal run an external command whenever a bell character (\a) is printed.

The use-case I have in mind is sending a custom notification to my window manager whenever a long-running command finishes, as I don't have a PC speaker nor want to emulate one.

I might try to implement this if I get positive feedback.

elandorr commented 4 months ago

lxterminal doesn't trigger pulseaudio's module-x11-bell here. If your pc has no piezo speaker you get silence.

The visual bell also does nothing. (urxvt flashes which I find handy)

It'd be nice if lxterminal implemented something like urxvt where we can choose what to run. E.g. aplay or for @nuno-silva notify-send etc.

Currently it forwards this setting to VTE and calls it a day as far as I can tell.