It's settled now, say hi to Kanako-san!

Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>

git-svn-id: file:///srv/svn/repo/kanako/trunk@2 62e5d677-aa6e-8c4a-b8cb-b9416171cb8e
This commit is contained in:
koizumi.aoi 2022-10-11 16:53:31 +00:00
parent d55cab46a7
commit 6be4bf2c44
7 changed files with 57 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# ayu-ng # kanako
Rewrite of `ayu(1)`, an actually boring password manager, now with interchangeable encryption backend. Rewrite of `ayu(1)`, an actually boring password manager, now with interchangeable encryption backend.
## Backends supported ## Backends supported

1
config.mk Normal file
View File

@ -0,0 +1 @@
PREFIX=/usr/local

View File

@ -1,12 +1,12 @@
#!/bin/sh -e #!/bin/sh -e
conf_dir=${conf_dir:-$HOME/.config/ayu} conf_dir=${conf_dir:-$HOME/.config/kanako}
key_dir=${key_dir:-$HOME/.ayu} key_dir=${key_dir:-$HOME/.kanako}
store_dir=${store_dir:-$HOME/.ayu-store} store_dir=${store_dir:-$HOME/.kanako-store}
cd ${store_dir} || exit 1 cd ${store_dir} || exit 1
. ${conf_dir}/config . ${conf_dir}/kanako.conf
fn_copy() { fn_copy() {
fn_view $2 | ${clip} fn_view $2 | ${clip}
@ -18,7 +18,7 @@ fn_edit() {
rm ${1%%.enc} rm ${1%%.enc}
} }
fn_generate() { fn_generate() {
pwgen -s ${2:-80} pwgen -s ${1:-80}
} }
fn_list() { fn_list() {
if command -v tree 2>/dev/null; then if command -v tree 2>/dev/null; then
@ -58,7 +58,7 @@ case $1 in
-e | edit) fn_edit $2 ;; -e | edit) fn_edit $2 ;;
-g | generate) fn_generate $2 ;; -g | generate) fn_generate $2 ;;
-l | list) fn_list ;; -l | list) fn_list ;;
-n | add) fn_new ;; -n | add) fn_new $2 ;;
-r | trash) fn_trash $2 ;; -r | trash) fn_trash $2 ;;
-R | trashd) fn_trash_directory $2 ;; -R | trashd) fn_trash_directory $2 ;;
-v | view) fn_view $2 ;; -v | view) fn_view $2 ;;

31
kanako.conf.mdoc Normal file
View File

@ -0,0 +1,31 @@
.Dd Bureaucracy 65, 3188
.Dt KANAKO.CONF 5
.Os
.Sh NAME
.Nm kanako.conf
.Nd configuration file for
.Xr kanako 1
.Sh KEYS
.Ss General section
.Bl -tag -width 11n -compact
.It clip
Clipboard program to use with
the program. Default is xclip
.El
.Ss Encryption section
.Bl -tag -width 11n -compact
.It encrypt_cmd
Command to handle encryption
Default is 'age'
.It encrypt_args
Options to be passed to
encrypt_cmd for encryption
.It decrypt_args
Options to be passed to
encrypt_cmd for decryption
.El
.Sh SEE ALSO
.Xr kanako 1
.Sh AUTHORS
.An Aoi Koizumi Aq Mt koizumi.aoi@kyoko-project.wer.ee

View File

@ -1,9 +1,9 @@
.Dd Bureaucracy 62, 3188 .Dd Bureaucracy 65, 3188
.Dt AYU-NG 1 .Dt KANAKO 1
.Os .Os
.Sh NAME .Sh NAME
.Nm ayu-ng .Nm kanako
.Nd rewrite of ayu, an actually boring password manager .Nd the adaptable password manager
.Sh DESCRIPTION .Sh DESCRIPTION
.Sh USAGE .Sh USAGE
@ -27,7 +27,11 @@ View an entry
.Bl .Bl
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr 5 ayu-ng.conf .Xr age 1
.Xr gpg 1
.Xr kanako.conf 5
.Xr pwgen 1
.Xr salty 1
.Rs .Rs
.%A Rob Pike .%A Rob Pike
.%T "UNIX Style, or cat -v Considered Harmful" .%T "UNIX Style, or cat -v Considered Harmful"
@ -40,4 +44,4 @@ View an entry
Under the Wayland display protocol, Under the Wayland display protocol,
the clipboard subcommand won't work, the clipboard subcommand won't work,
due to 'Permission denied'. On X11 due to 'Permission denied'. On X11
it works just fine. it works just fine.

8
mkfile Normal file
View File

@ -0,0 +1,8 @@
<config.mk
install:
install -Dm0755 kanako $PREFIX/bin/kanako
install -Dm0644 kanako.mdoc $PREFIX/share/man/man1/kanako.1
install -Dm0644 kanako.conf.mdoc $PREFIX/share/man/man5/kanako.conf.5
uninstall:
rm -f $PREFIX/bin/kanako $PREFIX/share/man/man1/kanako.1 $PREFIX/share/man/man5/kanako.conf.5