From 960d8647437f7127a6de167b974b8f7aafc77130 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 19 Jan 2023 10:04:51 +0100 Subject: Added first few utilities --- bin/menu-contacts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/menu-contacts (limited to 'bin/menu-contacts') 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
+ +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}' -- cgit v1.2.3