aboutsummaryrefslogtreecommitdiff
path: root/bin/menu-contacts
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-01-19 10:04:51 +0100
committerSamuel Fadel <samuel@nihil.ws>2023-01-19 10:04:51 +0100
commit960d8647437f7127a6de167b974b8f7aafc77130 (patch)
tree3b720f775a8e329b2ff23e077fa22335fd0473aa /bin/menu-contacts
parent0701a5dd2e309c8d51282632e9f4b5a64a55a3e0 (diff)
Added first few utilities0.1
Diffstat (limited to 'bin/menu-contacts')
-rwxr-xr-xbin/menu-contacts9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/menu-contacts b/bin/menu-contacts
new file mode 100755
index 0000000..f2f3454
--- /dev/null
+++ b/bin/menu-contacts
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Search in contact list built by khard using bemenu, outputs the selected
+# option as FirstName LastName <address>
+
+khard email --remove-first-line --parsable \
+ | cut -f 1,2 \
+ | bemenu -i -s -c -l 20 -W 0.5 -p '@' \
+ | awk -F "\t" '{printf "%s <%s>\n", $2, $1}'