summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2018-02-22 02:33:38 -0500
committerJohn Vogel <jvogel4@stny.rr.com>2018-02-22 02:33:38 -0500
commitf09d7c66c8c685622035c5bac8d96fef8f861aa3 (patch)
treef3c811f72675894685d61f922dfd082cf0da6ed7
parent83740a2606b8f356b0afd76518cf1479d79ae271 (diff)
downloadcontrib-f09d7c66c8c685622035c5bac8d96fef8f861aa3.tar.gz
contrib-f09d7c66c8c685622035c5bac8d96fef8f861aa3.tar.xz
dvtm: new maintainer. update to 1.5 release.
Also fix mandir.
-rw-r--r--dvtm/.footprint7
-rw-r--r--dvtm/.md5sum4
-rw-r--r--dvtm/.signature10
-rw-r--r--dvtm/Pkgfile14
-rw-r--r--dvtm/config.h78
5 files changed, 55 insertions, 58 deletions
diff --git a/dvtm/.footprint b/dvtm/.footprint
index 6d7970fd5..6a587b1dc 100644
--- a/dvtm/.footprint
+++ b/dvtm/.footprint
@@ -2,6 +2,7 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/dvtm
-rwxr-xr-x root/root usr/bin/dvtm-status
-drwxr-xr-x root/root usr/man/
-drwxr-xr-x root/root usr/man/man1/
--rw-r--r-- root/root usr/man/man1/dvtm.1.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/dvtm.1.gz
diff --git a/dvtm/.md5sum b/dvtm/.md5sum
index 9426a3c6e..fab0dfee5 100644
--- a/dvtm/.md5sum
+++ b/dvtm/.md5sum
@@ -1,2 +1,2 @@
-eed9c0af15233b449b1cd8874130f028 config.h
-f4ab17eb6e79939182a40f66968ca5d0 dvtm-0.13.tar.gz
+243bc2d4085c08d9b748f892f5950a00 config.h
+887e162a3abe2ad8e86caefab20cdd63 dvtm-0.15.tar.gz
diff --git a/dvtm/.signature b/dvtm/.signature
index 3e2f98249..61a8742de 100644
--- a/dvtm/.signature
+++ b/dvtm/.signature
@@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF30zTX7iStYVoumH/xJvemRC/jJhmABaX13vDj3vmYRudJmrDx86ietgLIgLXpNNegst46cwsSfolJcB6lYAo3QE=
-SHA256 (Pkgfile) = bb53e3137cc3092489a121d09b35b56470c732cc7e15ef7a6b61f96784572111
-SHA256 (.footprint) = bdea9a6a5083072e4f89b1bb4d31f1892606057df72d4ce5119968bb116468df
-SHA256 (dvtm-0.13.tar.gz) = 525dba7c9da0b8e18baa910c564cadd499c28ba8aa463c6a3200ba4ce3882568
-SHA256 (config.h) = f049d6933eefada10068362af416ffc6feb45e7ec8f0efadc51a6162bce7e1c6
+RWSagIOpLGJF339TXF+xeb2wH8Wr/52zQRtXe6ifmAOw0K6oDl1KchpQCvb8f+1luw7bBFAQ7Q4c5zTZnVIVWzLQjjhuXdOVyAI=
+SHA256 (Pkgfile) = d69592179802e2f2524535436c9cace0bed90a99620f2f3287c77a6be1360566
+SHA256 (.footprint) = 5844e2099c90a39108885338f2e5aea59133601e10503ad7b7f171b9f83145de
+SHA256 (dvtm-0.15.tar.gz) = 8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510
+SHA256 (config.h) = 89652c67613d8750567b4bdb9088939203fe5602d6d36bb95c95b72908b4a80b
diff --git a/dvtm/Pkgfile b/dvtm/Pkgfile
index e4694de70..d299fcded 100644
--- a/dvtm/Pkgfile
+++ b/dvtm/Pkgfile
@@ -1,20 +1,20 @@
# Description: dynamic virtual terminal manager
# URL: http://www.brain-dump.org/projects/dvtm
-# Maintainer: Maximilian Dietrich, dxm at openmailbox dot org
+# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Depends on: ncurses
name=dvtm
-version=0.13
+version=0.15
release=1
source=(http://www.brain-dump.org/projects/$name/$name-$version.tar.gz config.h)
build () {
cd "$name-$version"
+
cp $SRC/config.h .
- sed -i "s/SRC/SOURCE/" Makefile
make
- make DESTDIR=$PKG \
- PREFIX=/usr \
- MANPREFIX=/usr/man \
- install
+ make DESTDIR=$PKG PREFIX=/usr install
+
+ # remove redundant terminfo files that conflict with ncurses
+ rm -rf $PKG/usr/share/terminfo
}
diff --git a/dvtm/config.h b/dvtm/config.h
index e93a652e8..643a2810b 100644
--- a/dvtm/config.h
+++ b/dvtm/config.h
@@ -26,22 +26,21 @@ static Color colors[] = {
#define SELECTED_ATTR (COLOR(BLUE) | A_NORMAL)
/* curses attributes for normal (not selected) windows */
#define NORMAL_ATTR (COLOR(DEFAULT) | A_NORMAL)
+/* curses attributes for a window with pending urgent flag */
+#define URGENT_ATTR NORMAL_ATTR
/* curses attributes for the status bar */
#define BAR_ATTR (COLOR(BLUE) | A_NORMAL)
+/* characters for beginning and end of status bar message */
+#define BAR_BEGIN '['
+#define BAR_END ']'
/* status bar (command line option -s) position */
#define BAR_POS BAR_TOP /* BAR_BOTTOM, BAR_OFF */
/* whether status bar should be hidden if only one client exists */
#define BAR_AUTOHIDE true
-/* determines whether the statusbar text should be right or left aligned */
-#define BAR_ALIGN ALIGN_RIGHT
-/* separator between window title and window number */
-#define SEPARATOR " | "
-/* printf format string for the window title, first %s
- * is replaced by the title, second %s is replaced by
- * the SEPARATOR, %d stands for the window number */
-#define TITLE "[%s%s#%d]"
/* master width factor [0.1 .. 0.9] */
#define MFACT 0.5
+/* number of clients in master area */
+#define NMASTER 1
/* scroll back buffer size in lines */
#define SCROLL_HISTORY 500
/* printf format string for the tag in the status bar */
@@ -52,6 +51,8 @@ static Color colors[] = {
#define TAG_NORMAL (COLOR(DEFAULT) | A_NORMAL)
/* curses attributes for not selected tags which contain windows */
#define TAG_OCCUPIED (COLOR(BLUE) | A_NORMAL)
+/* curses attributes for not selected tags which with urgent windows */
+#define TAG_URGENT (COLOR(BLUE) | A_NORMAL | A_BLINK)
const char tags[][8] = { "1", "2", "3", "4", "5" };
@@ -69,27 +70,36 @@ static Layout layouts[] = {
};
#define MOD CTRL('g')
+#define TAGKEYS(KEY,TAG) \
+ { { MOD, 'v', KEY, }, { view, { tags[TAG] } } }, \
+ { { MOD, 't', KEY, }, { tag, { tags[TAG] } } }, \
+ { { MOD, 'V', KEY, }, { toggleview, { tags[TAG] } } }, \
+ { { MOD, 'T', KEY, }, { toggletag, { tags[TAG] } } },
/* you can at most specifiy MAX_ARGS (3) number of arguments */
static KeyBinding bindings[] = {
{ { MOD, 'c', }, { create, { NULL } } },
{ { MOD, 'C', }, { create, { NULL, NULL, "$CWD" } } },
- { { MOD, 'x', }, { killclient, { NULL } } },
+ { { MOD, 'x', 'x', }, { killclient, { NULL } } },
{ { MOD, 'j', }, { focusnext, { NULL } } },
- { { MOD, 'u', }, { focusnextnm, { NULL } } },
- { { MOD, 'i', }, { focusprevnm, { NULL } } },
+ { { MOD, 'J', }, { focusnextnm, { NULL } } },
+ { { MOD, 'K', }, { focusprevnm, { NULL } } },
{ { MOD, 'k', }, { focusprev, { NULL } } },
- { { MOD, 'd', }, { setlayout, { "[]=" } } },
+ { { MOD, 'f', }, { setlayout, { "[]=" } } },
{ { MOD, 'g', }, { setlayout, { "+++" } } },
{ { MOD, 'b', }, { setlayout, { "TTT" } } },
{ { MOD, 'm', }, { setlayout, { "[ ]" } } },
{ { MOD, ' ', }, { setlayout, { NULL } } },
+ { { MOD, 'i', }, { incnmaster, { "+1" } } },
+ { { MOD, 'd', }, { incnmaster, { "-1" } } },
{ { MOD, 'h', }, { setmfact, { "-0.05" } } },
{ { MOD, 'l', }, { setmfact, { "+0.05" } } },
{ { MOD, '.', }, { toggleminimize, { NULL } } },
{ { MOD, 's', }, { togglebar, { NULL } } },
+ { { MOD, 'S', }, { togglebarpos, { NULL } } },
{ { MOD, 'M', }, { togglemouse, { NULL } } },
{ { MOD, '\n', }, { zoom , { NULL } } },
+ { { MOD, '\r', }, { zoom , { NULL } } },
{ { MOD, '1', }, { focusn, { "1" } } },
{ { MOD, '2', }, { focusn, { "2" } } },
{ { MOD, '3', }, { focusn, { "3" } } },
@@ -100,11 +110,10 @@ static KeyBinding bindings[] = {
{ { MOD, '8', }, { focusn, { "8" } } },
{ { MOD, '9', }, { focusn, { "9" } } },
{ { MOD, '\t', }, { focuslast, { NULL } } },
- { { MOD, 'q', }, { quit, { NULL } } },
+ { { MOD, 'q', 'q', }, { quit, { NULL } } },
{ { MOD, 'a', }, { togglerunall, { NULL } } },
{ { MOD, CTRL('L'), }, { redraw, { NULL } } },
{ { MOD, 'r', }, { redraw, { NULL } } },
- { { MOD, 'B', }, { togglebell, { NULL } } },
{ { MOD, 'e', }, { copymode, { NULL } } },
{ { MOD, '/', }, { copymode, { "/" } } },
{ { MOD, 'p', }, { paste, { NULL } } },
@@ -120,28 +129,14 @@ static KeyBinding bindings[] = {
{ { MOD, KEY_F(3), }, { view, { tags[2] } } },
{ { MOD, KEY_F(4), }, { view, { tags[3] } } },
{ { MOD, KEY_F(5), }, { view, { tags[4] } } },
- { { MOD, 'v', '1' }, { view, { tags[0] } } },
- { { MOD, 'v', '2' }, { view, { tags[1] } } },
- { { MOD, 'v', '3' }, { view, { tags[2] } } },
- { { MOD, 'v', '4' }, { view, { tags[3] } } },
- { { MOD, 'v', '5' }, { view, { tags[4] } } },
+ { { MOD, 'v', '0' }, { view, { NULL } } },
{ { MOD, 'v', '\t', }, { viewprevtag, { NULL } } },
{ { MOD, 't', '0' }, { tag, { NULL } } },
- { { MOD, 't', '1' }, { tag, { tags[0] } } },
- { { MOD, 't', '2' }, { tag, { tags[1] } } },
- { { MOD, 't', '3' }, { tag, { tags[2] } } },
- { { MOD, 't', '4' }, { tag, { tags[3] } } },
- { { MOD, 't', '5' }, { tag, { tags[4] } } },
- { { MOD, 'V', '1' }, { toggleview, { tags[0] } } },
- { { MOD, 'V', '2' }, { toggleview, { tags[1] } } },
- { { MOD, 'V', '3' }, { toggleview, { tags[2] } } },
- { { MOD, 'V', '4' }, { toggleview, { tags[3] } } },
- { { MOD, 'V', '5' }, { toggleview, { tags[4] } } },
- { { MOD, 'T', '1' }, { toggletag, { tags[0] } } },
- { { MOD, 'T', '2' }, { toggletag, { tags[1] } } },
- { { MOD, 'T', '3' }, { toggletag, { tags[2] } } },
- { { MOD, 'T', '4' }, { toggletag, { tags[3] } } },
- { { MOD, 'T', '5' }, { toggletag, { tags[4] } } },
+ TAGKEYS( '1', 0)
+ TAGKEYS( '2', 1)
+ TAGKEYS( '3', 2)
+ TAGKEYS( '4', 3)
+ TAGKEYS( '5', 4)
};
static const ColorRule colorrules[] = {
@@ -209,13 +204,14 @@ static char const * const keytable[] = {
* set the first entry is chosen. Otherwise the array is consulted for supported
* options. A %d in argv is replaced by the line number at which the file should
* be opened. If filter is true the editor is expected to work even if stdout is
- * redirected (i.e. not a terminal).
+ * redirected (i.e. not a terminal). If color is true then color escape sequences
+ * are generated in the output.
*/
static Editor editors[] = {
- { .name = "vis", .argv = { "vis", "+%d", "-", NULL }, .filter = true },
- { .name = "sandy", .argv = { "sandy", "-d", "-", NULL }, .filter = true },
- { .name = "dvtm-editor", .argv = { "dvtm-editor", "-", NULL }, .filter = true },
- { .name = "vim", .argv = { "vim", "+%d", "-", NULL }, .filter = false },
- { .name = "less", .argv = { "less", "+%d", NULL }, .filter = false },
- { .name = "more", .argv = { "more", "+%d", NULL }, .filter = false },
+ { .name = "vis", .argv = { "vis", "+%d", "-", NULL }, .filter = true, .color = false },
+ { .name = "sandy", .argv = { "sandy", "-d", "-", NULL }, .filter = true, .color = false },
+ { .name = "dvtm-editor", .argv = { "dvtm-editor", "-", NULL }, .filter = true, .color = false },
+ { .name = "vim", .argv = { "vim", "+%d", "-", NULL }, .filter = false, .color = false },
+ { .name = "less", .argv = { "less", "-R", "+%d", NULL }, .filter = false, .color = true },
+ { .name = "more", .argv = { "more", "+%d", NULL }, .filter = false, .color = false },
};

Generated by cgit