aboutsummaryrefslogtreecommitdiff
path: root/.repos/dmenu
diff options
context:
space:
mode:
Diffstat (limited to '.repos/dmenu')
-rw-r--r--.repos/dmenu/LICENSE2
-rw-r--r--.repos/dmenu/config.def.h23
-rw-r--r--.repos/dmenu/config.mk2
-rwxr-xr-x.repos/dmenu/dmenubin0 -> 43416 bytes
-rw-r--r--.repos/dmenu/dmenu.c11
-rw-r--r--.repos/dmenu/dmenu.obin0 -> 32736 bytes
-rw-r--r--.repos/dmenu/drw.c1
-rw-r--r--.repos/dmenu/drw.obin0 -> 10584 bytes
-rwxr-xr-x.repos/dmenu/stestbin0 -> 17080 bytes
-rw-r--r--.repos/dmenu/stest.c2
-rw-r--r--.repos/dmenu/stest.obin0 -> 5296 bytes
-rw-r--r--.repos/dmenu/util.obin0 -> 2256 bytes
12 files changed, 38 insertions, 3 deletions
diff --git a/.repos/dmenu/LICENSE b/.repos/dmenu/LICENSE
index 9762166..3afd28e 100644
--- a/.repos/dmenu/LICENSE
+++ b/.repos/dmenu/LICENSE
@@ -8,7 +8,7 @@ MIT/X Consortium License
© 2009 Markus Schnalke <meillo@marmaro.de>
© 2009 Evan Gates <evan.gates@gmail.com>
© 2010-2012 Connor Lane Smith <cls@lubutu.com>
-© 2014-2019 Hiltjo Posthuma <hiltjo@codemadness.org>
+© 2014-2020 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2015-2019 Quentin Rameau <quinq@fifth.space>
Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/.repos/dmenu/config.def.h b/.repos/dmenu/config.def.h
new file mode 100644
index 0000000..1edb647
--- /dev/null
+++ b/.repos/dmenu/config.def.h
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+/* Default settings; can be overriden by command line. */
+
+static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
+/* -fn option overrides fonts[0]; default X11 font or font set */
+static const char *fonts[] = {
+ "monospace:size=10"
+};
+static const char *prompt = NULL; /* -p option; prompt to the left of input field */
+static const char *colors[SchemeLast][2] = {
+ /* fg bg */
+ [SchemeNorm] = { "#bbbbbb", "#222222" },
+ [SchemeSel] = { "#eeeeee", "#005577" },
+ [SchemeOut] = { "#000000", "#00ffff" },
+};
+/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
+static unsigned int lines = 0;
+
+/*
+ * Characters not considered part of a word while deleting words
+ * for example: " /?\"&[]"
+ */
+static const char worddelimiters[] = " ";
diff --git a/.repos/dmenu/config.mk b/.repos/dmenu/config.mk
index 0929b4a..05d5a3e 100644
--- a/.repos/dmenu/config.mk
+++ b/.repos/dmenu/config.mk
@@ -1,5 +1,5 @@
# dmenu version
-VERSION = 4.9
+VERSION = 5.0
# paths
PREFIX = /usr/local
diff --git a/.repos/dmenu/dmenu b/.repos/dmenu/dmenu
new file mode 100755
index 0000000..3025fc2
--- /dev/null
+++ b/.repos/dmenu/dmenu
Binary files differ
diff --git a/.repos/dmenu/dmenu.c b/.repos/dmenu/dmenu.c
index 65f25ce..98507d9 100644
--- a/.repos/dmenu/dmenu.c
+++ b/.repos/dmenu/dmenu.c
@@ -360,9 +360,11 @@ keypress(XKeyEvent *ev)
utf8, utf8, win, CurrentTime);
return;
case XK_Left:
+ case XK_KP_Left:
movewordedge(-1);
goto draw;
case XK_Right:
+ case XK_KP_Right:
movewordedge(+1);
goto draw;
case XK_Return:
@@ -400,6 +402,7 @@ insert:
insert(buf, len);
break;
case XK_Delete:
+ case XK_KP_Delete:
if (text[cursor] == '\0')
return;
cursor = nextrune(+1);
@@ -410,6 +413,7 @@ insert:
insert(NULL, nextrune(-1) - cursor);
break;
case XK_End:
+ case XK_KP_End:
if (text[cursor] != '\0') {
cursor = strlen(text);
break;
@@ -429,6 +433,7 @@ insert:
cleanup();
exit(1);
case XK_Home:
+ case XK_KP_Home:
if (sel == matches) {
cursor = 0;
break;
@@ -437,6 +442,7 @@ insert:
calcoffsets();
break;
case XK_Left:
+ case XK_KP_Left:
if (cursor > 0 && (!sel || !sel->left || lines > 0)) {
cursor = nextrune(-1);
break;
@@ -445,18 +451,21 @@ insert:
return;
/* fallthrough */
case XK_Up:
+ case XK_KP_Up:
if (sel && sel->left && (sel = sel->left)->right == curr) {
curr = prev;
calcoffsets();
}
break;
case XK_Next:
+ case XK_KP_Next:
if (!next)
return;
sel = curr = next;
calcoffsets();
break;
case XK_Prior:
+ case XK_KP_Prior:
if (!prev)
return;
sel = curr = prev;
@@ -473,6 +482,7 @@ insert:
sel->out = 1;
break;
case XK_Right:
+ case XK_KP_Right:
if (text[cursor] != '\0') {
cursor = nextrune(+1);
break;
@@ -481,6 +491,7 @@ insert:
return;
/* fallthrough */
case XK_Down:
+ case XK_KP_Down:
if (sel && sel->right && (sel = sel->right) == next) {
curr = next;
calcoffsets();
diff --git a/.repos/dmenu/dmenu.o b/.repos/dmenu/dmenu.o
new file mode 100644
index 0000000..01e1b7b
--- /dev/null
+++ b/.repos/dmenu/dmenu.o
Binary files differ
diff --git a/.repos/dmenu/drw.c b/.repos/dmenu/drw.c
index 8fd1ca4..4cdbcbe 100644
--- a/.repos/dmenu/drw.c
+++ b/.repos/dmenu/drw.c
@@ -95,6 +95,7 @@ drw_free(Drw *drw)
{
XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc);
+ drw_fontset_free(drw->fonts);
free(drw);
}
diff --git a/.repos/dmenu/drw.o b/.repos/dmenu/drw.o
new file mode 100644
index 0000000..57700fd
--- /dev/null
+++ b/.repos/dmenu/drw.o
Binary files differ
diff --git a/.repos/dmenu/stest b/.repos/dmenu/stest
new file mode 100755
index 0000000..63e0ea3
--- /dev/null
+++ b/.repos/dmenu/stest
Binary files differ
diff --git a/.repos/dmenu/stest.c b/.repos/dmenu/stest.c
index 7a7b0bc..e27d3a5 100644
--- a/.repos/dmenu/stest.c
+++ b/.repos/dmenu/stest.c
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
if (!argc) {
/* read list from stdin */
while ((n = getline(&line, &linesiz, stdin)) > 0) {
- if (n && line[n - 1] == '\n')
+ if (line[n - 1] == '\n')
line[n - 1] = '\0';
test(line, line);
}
diff --git a/.repos/dmenu/stest.o b/.repos/dmenu/stest.o
new file mode 100644
index 0000000..4ffa357
--- /dev/null
+++ b/.repos/dmenu/stest.o
Binary files differ
diff --git a/.repos/dmenu/util.o b/.repos/dmenu/util.o
new file mode 100644
index 0000000..3b48c2f
--- /dev/null
+++ b/.repos/dmenu/util.o
Binary files differ