Index: trunk/README.md
===================================================================
--- trunk/README.md	(revision 8)
+++ trunk/README.md	(revision 9)
@@ -12,4 +12,15 @@
 * `mandoc(1)` for documentation
 
+## Add-ons
+
+### kanakomenu
+quick graphical front-end for kanako, works with either of `dmenu(1)`
+or `bemenu(1)`, useful for copying passwords to clipboard. it's configured
+through kanakomenu.conf
+
+### kanakototp
+time-based one time password addon for kanako, requires `oathtool(1)`
+from oath-toolkit.
+
 ## License
 * [Discordian Public License, version 2.3](https://gt.kalli.st/novaburst/discordian-public-license/src/branch/discordia/DPL-2.3)
Index: trunk/config.mk
===================================================================
--- trunk/config.mk	(revision 8)
+++ trunk/config.mk	(revision 9)
@@ -1,1 +1,3 @@
+EXEC_MODE=0755
+FILE_MODE=0600
 PREFIX=/usr/local
Index: trunk/kanako
===================================================================
--- trunk/kanako	(revision 8)
+++ trunk/kanako	(revision 9)
@@ -17,5 +17,5 @@
 else
 	echo "Configuration file has not been found!"
-	echo "Copy kanako.conf.example from the repository,"
+	echo "Copy kanako.conf from the examples directory,"
 	echo "and edit accordingly."
 	exit 1
Index: trunk/kanako.conf.example
===================================================================
--- trunk/kanako.conf.example	(revision 8)
+++ trunk/kanako.conf.example	(revision 9)
@@ -1,8 +1,8 @@
-# [General]
+# Configuration file for kanako(1)
+
 #clip="xclip -i"
 #clip="wl-copy --primary"
 #list_cmd="tree"
 
-# [Encryption]
 ## age
 #encrypt_cmd="age"
Index: trunk/kanakomenu
===================================================================
--- trunk/kanakomenu	(revision 9)
+++ trunk/kanakomenu	(revision 9)
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+readonly conf_dir="${conf_dir:-$HOME/.config/kanako}"
+readonly store_dir="${store_dir:-$HOME/.kanako-store}"
+
+if test -f "${conf_dir}"/kanakomenu.conf; then
+    . "${conf_dir}"/kanakomenu.conf
+else
+    echo "Configuration file has not been found!"
+    echo "Copy kanakomenu.conf from the examples directory,"
+    echo "and edit accordingly"
+    exit 1
+fi
+
+find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | ${menu_prog} | xargs $(which kanako) -c
Index: trunk/kanakomenu.conf.example
===================================================================
--- trunk/kanakomenu.conf.example	(revision 9)
+++ trunk/kanakomenu.conf.example	(revision 9)
@@ -0,0 +1,4 @@
+# Configuration file for kanakomenu(1)
+
+#menu_prog="bemenu -p kanako"
+#menu_prog="dmenu -p kanako"
Index: trunk/kanakototp
===================================================================
--- trunk/kanakototp	(revision 9)
+++ trunk/kanakototp	(revision 9)
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+# extracted from https://rgz.ee/bin/pass
+
+totp_seed="$(kanako -v "$@" | grep 'totp: ' | head -n1 | cut -d' ' -f2)"
+if ! [ -z "$totp_seed" ]; then
+    if command -v oathtool >/dev/null 2>&1; then
+	oathtool --totp -b "$totp_seed"
+    else
+	echo 'oathtool(1) should be installed'
+	exit 1
+    fi
+fi
Index: trunk/mkfile
===================================================================
--- trunk/mkfile	(revision 8)
+++ trunk/mkfile	(revision 9)
@@ -1,9 +1,22 @@
 <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
-	install -Dm0755 kanako-init $PREFIX/bin/kanako-init
-uninstall:
-	rm -f $PREFIX/bin/kanako $PREFIX/share/man/man1/kanako.1 $PREFIX/share/man/man5/kanako.conf.5
+install:V: install-bin install-examples install-man
+uninstall:V: uninstall-bin uninstall-examples uninstall-man
+
+install-bin:
+	install -m$EXEC_MODE kanako $PREFIX/bin/kanako
+	install -m$EXEC_MODE kanako-init $PREFIX/bin/kanako-init
+	install -m$EXEC_MODE kanakomenu $PREFIX/bin/kanakomenu
+	install -m$EXEC_MODE kanakototp $PREFIX/bin/kanakototp
+install-examples:
+	install -m$FILE_MODE kanako.conf.example $PREFIX/share/examples/kanako/kanako.conf
+	install -m$FILE_MODE kanakomenu.conf.example $PREFIX/share/examples/kanako/kanakomenu.conf
+install-man:
+	install -m$FILE_MODE kanako.mdoc $PREFIX/share/man/man1/kanako.1
+	install -m$FILE_MODE kanako.conf.mdoc $PREFIX/share/man/man5/kanako.conf.5
+uninstall-bin:
+	rm -f $PREFIX/bin/kanako $PREFIX/bin/kanako-init $PREFIX/bin/kanakomenu $PREFIX/bin/kanakototp
+uninstall-examples:
+	rm -f $PREFIX/share/examples/kanako/kanako.conf $PREFIX/share/exmaples/kanako/kanakomenu.conf
+uninstall-man:
+	rm -f $PREFIX/share/man/man1/kanako.1 $PREFIX/share/man/man5/kanako.conf.5
