diff options
| -rw-r--r-- | config.def.h | 6 | ||||
| -rw-r--r-- | st.c | 2 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 24aeb19..6487406 100644 --- a/config.def.h +++ b/config.def.h @@ -37,6 +37,12 @@ static unsigned int actionfps = 30;   */  static unsigned int blinktimeout = 800; +/* + * bell volume. It must be a value between -100 and 100. Use 0 for disabling + * it + */ +static int bellvolume = 1; +  /* TERM value */  static char termname[] = "st-256color"; @@ -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();  | 
