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; | |||
| 37 | */ | 37 | */ |
| 38 | static unsigned int blinktimeout = 800; | 38 | static unsigned int blinktimeout = 800; |
| 39 | 39 | ||
| 40 | /* | ||
| 41 | * bell volume. It must be a value between -100 and 100. Use 0 for disabling | ||
| 42 | * it | ||
| 43 | */ | ||
| 44 | static int bellvolume = 1; | ||
| 45 | |||
| 40 | /* TERM value */ | 46 | /* TERM value */ |
| 41 | static char termname[] = "st-256color"; | 47 | static char termname[] = "st-256color"; |
| 42 | 48 | ||
| @@ -2320,6 +2320,8 @@ tputc(char *c, int len) { | |||
| 2320 | case '\a': /* BEL */ | 2320 | case '\a': /* BEL */ |
| 2321 | if(!(xw.state & WIN_FOCUSED)) | 2321 | if(!(xw.state & WIN_FOCUSED)) |
| 2322 | xseturgency(1); | 2322 | xseturgency(1); |
| 2323 | if (bellvolume) | ||
| 2324 | XBell(xw.dpy, bellvolume); | ||
| 2323 | return; | 2325 | return; |
| 2324 | case '\033': /* ESC */ | 2326 | case '\033': /* ESC */ |
| 2325 | csireset(); | 2327 | csireset(); |
