Rename spine into pinentry-dmenu
This commit is contained in:
parent
900aa41620
commit
017b3859ee
5 changed files with 18 additions and 17 deletions
14
Makefile
14
Makefile
|
@ -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.
|
||||
|
||||
include config.mk
|
||||
|
||||
SRC = spine.c drw.c util.c
|
||||
SRC = pinentry-dmenu.c drw.c util.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
|
||||
all: options spine
|
||||
all: options pinentry-dmenu
|
||||
|
||||
options:
|
||||
@echo spine build options:
|
||||
@echo pinentry-dmenu build options:
|
||||
@echo "CFLAGS = ${CFLAGS}"
|
||||
@echo "LDFLAGS = ${LDFLAGS}"
|
||||
@echo "CC = ${CC}"
|
||||
|
@ -27,13 +27,13 @@ ${OBJ}: config.h config.mk drw.h
|
|||
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 $@
|
||||
@${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:
|
||||
@echo cleaning
|
||||
@rm -f spine ${OBJ}
|
||||
@rm -f pinentry-dmenu ${OBJ}
|
||||
$(MAKE) -C pinentry/ clean
|
||||
|
||||
.PHONY: all options clean pinentry
|
||||
|
|
3
README
3
README
|
@ -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.
|
||||
|
||||
|
|
10
config.h
10
config.h
|
@ -1,12 +1,12 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
static Bool topbar = True;
|
||||
static const char *fonts[]={
|
||||
"Dejavu Sans Mono:size=10"
|
||||
"Noto Sans UI:size=13"
|
||||
};
|
||||
static char *secchar = "*";
|
||||
/*static char *description = NULL;
|
||||
static char *prompt = "PIN:";*/
|
||||
static const char *secstring = "● ● ";
|
||||
/*static char *description = NULL;*/
|
||||
static const char *prompt = "🔑 Pinentry ";
|
||||
static const char *normbgcolor = "#000000";
|
||||
static const char *normfgcolor = "#ffffff";
|
||||
static const char *selbgcolor = "#ff0000";
|
||||
static const char *selbgcolor = "#d9904a";
|
||||
static const char *selfgcolor = "#ffffff";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# spine version
|
||||
# pinentry-dmenu version
|
||||
VERSION = 0.1
|
||||
|
||||
# paths
|
||||
|
@ -23,7 +23,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
|
|||
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
||||
|
||||
# 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}
|
||||
LDFLAGS = -s ${LIBS}
|
||||
|
||||
|
|
4
test
4
test
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
echo "SETDESC testing spine, type whatever
|
||||
echo "SETDESC testing pinentry-dmenu, type whatever
|
||||
SETPROMPT whatever:
|
||||
GETPIN
|
||||
SETDESC type more of whatever:
|
||||
GETPIN
|
||||
SETDESC testing confirmation
|
||||
confirm
|
||||
BYE" | ./spine
|
||||
BYE" | ./pinentry-dmenu
|
||||
|
|
Loading…
Reference in a new issue