aboutsummaryrefslogtreecommitdiff
path: root/bin/menu-contacts
blob: f2f345420659dcaf42373cb0f6878d9f708fc2a1 (about) (plain)
1
2
3
4
5
6
7
8
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}'