dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit cd236f31ac498a0ad80683430b6b996c71a42c84
parent 0911f18fdcea867fecc9f259c9af8e2b6b83c10b
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Thu, 18 Jun 2009 18:48:09 +0200

Beep on terminal bell (off by default).

Based on a patch by Sumedha Widyadharma.

Diffstat:
config.h | 1+
dvtm.1 | 3+++
dvtm.c | 6++++++
3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/config.h b/config.h @@ -90,6 +90,7 @@ Key keys[] = { { MOD, 'G', { escapekey, { NULL } } }, { MOD, 'L', { redraw, { NULL } } }, { MOD, 'X', { lock, { NULL } } }, + { MOD, 'B', { togglebell, { NULL } } }, { MOD, KEY_PPAGE, { scrollback, { "-1" } } }, { MOD, KEY_NPAGE, { scrollback, { "1" } } }, { MOD, '?', { create, { "man dvtm", "dvtm help" } } }, diff --git a/dvtm.1 b/dvtm.1 @@ -104,6 +104,9 @@ Escape the next typed key. .B Mod\-X Lock screen. .TP +.B Mod\-B +Toggle bell (off by default). +.TP .B Mod\-M Toggle dvtm mouse grabbing. .B Mod\-q diff --git a/dvtm.c b/dvtm.c @@ -117,6 +117,7 @@ static void focusnext(const char *args[]); static void focusnextnm(const char *args[]); static void focusprev(const char *args[]); static void focusprevnm(const char *args[]); +static void togglebell(const char *key[]); static void toggleminimize(const char *args[]); static void setmwfact(const char *args[]); static void setlayout(const char *args[]); @@ -355,6 +356,11 @@ zoom(const char *args[]) { } static void +togglebell(const char *args[]) { + madtty_togglebell(sel->term); +} + +static void toggleminimize(const char *args[]) { Client *c, *m; unsigned int n;