From bef599bb279e6c9b08853ceebefade066e362c48 Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Thu, 12 Sep 2013 20:41:34 +0200 Subject: Add audible bell \a is the character for bell, and st is only marking the window as urgent if it is not active. This patch adds an audible bell which can be disable with bellvolume variable. Signed-off-by: Christoph Lohmann <20h@r-36.net> --- st.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'st.c') diff --git a/st.c b/st.c index 96d45bf..4a91073 100644 --- a/st.c +++ b/st.c @@ -2320,6 +2320,8 @@ tputc(char *c, int len) { case '\a': /* BEL */ if(!(xw.state & WIN_FOCUSED)) xseturgency(1); + if (bellvolume) + XBell(xw.dpy, bellvolume); return; case '\033': /* ESC */ csireset(); -- cgit v1.2.3