Rename spine into pinentry-dmenu

pull/4/head
Moritz Luedecke 7 years ago
parent 900aa41620
commit 017b3859ee

@ -1,15 +1,15 @@
# spine - dmenu-like stupid pin entry # pinentry-dmenu - dmenu-like stupid pin entry
# See LICENSE file for copyright and license details. # See LICENSE file for copyright and license details.
include config.mk include config.mk
SRC = spine.c drw.c util.c SRC = pinentry-dmenu.c drw.c util.c
OBJ = ${SRC:.c=.o} OBJ = ${SRC:.c=.o}
all: options spine all: options pinentry-dmenu
options: options:
@echo spine build options: @echo pinentry-dmenu build options:
@echo "CFLAGS = ${CFLAGS}" @echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}" @echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}" @echo "CC = ${CC}"
@ -27,13 +27,13 @@ ${OBJ}: config.h config.mk drw.h
pinentry: pinentry:
$(MAKE) -C pinentry $(MAKE) -C pinentry
spine: pinentry spine.o drw.o util.o pinentry-dmenu: pinentry pinentry-dmenu.o drw.o util.o
@echo CC -o $@ @echo CC -o $@
@${CC} -o $@ spine.o drw.o util.o pinentry/pinentry.o pinentry/util.o pinentry/password-cache.o pinentry/argparse.o pinentry/secmem.o ${LDFLAGS} -lassuan -lgpgme -lgpg-error @${CC} -o $@ pinentry-dmenu.o drw.o util.o pinentry/pinentry.o pinentry/util.o pinentry/password-cache.o pinentry/argparse.o pinentry/secmem.o ${LDFLAGS} -lassuan -lgpgme -lgpg-error
clean: clean:
@echo cleaning @echo cleaning
@rm -f spine ${OBJ} @rm -f pinentry-dmenu ${OBJ}
$(MAKE) -C pinentry/ clean $(MAKE) -C pinentry/ clean
.PHONY: all options clean pinentry .PHONY: all options clean pinentry

@ -1,4 +1,5 @@
spine - stupid pinentry replacement pinentry-dmenu
==============
I didn't like how long it takes to load pinentry-gtk/qt and pinentry-curses/tty is not always the option, so I duct-taped pinentry and dmenu together. I didn't like how long it takes to load pinentry-gtk/qt and pinentry-curses/tty is not always the option, so I duct-taped pinentry and dmenu together.

@ -1,12 +1,12 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
static Bool topbar = True; static Bool topbar = True;
static const char *fonts[]={ static const char *fonts[]={
"Dejavu Sans Mono:size=10" "Noto Sans UI:size=13"
}; };
static char *secchar = "*"; static const char *secstring = "● ● ";
/*static char *description = NULL; /*static char *description = NULL;*/
static char *prompt = "PIN:";*/ static const char *prompt = "🔑 Pinentry ";
static const char *normbgcolor = "#000000"; static const char *normbgcolor = "#000000";
static const char *normfgcolor = "#ffffff"; static const char *normfgcolor = "#ffffff";
static const char *selbgcolor = "#ff0000"; static const char *selbgcolor = "#d9904a";
static const char *selfgcolor = "#ffffff"; static const char *selfgcolor = "#ffffff";

@ -1,4 +1,4 @@
# spine version # pinentry-dmenu version
VERSION = 0.1 VERSION = 0.1
# paths # paths
@ -23,7 +23,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags # flags
CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS} CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS} LDFLAGS = -s ${LIBS}

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
echo "SETDESC testing spine, type whatever echo "SETDESC testing pinentry-dmenu, type whatever
SETPROMPT whatever: SETPROMPT whatever:
GETPIN GETPIN
SETDESC type more of whatever: SETDESC type more of whatever:
GETPIN GETPIN
SETDESC testing confirmation SETDESC testing confirmation
confirm confirm
BYE" | ./spine BYE" | ./pinentry-dmenu

Loading…
Cancel
Save