dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit ef91c3ba32c4f286c8435969f1d79d2b4e9a391e
parent 844ad973d203724bf0d08e9dfff17b90184e77f6
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sat,  2 Oct 2021 20:01:37 +0530

call script added for termux-api

Diffstat:
A.local/bin/call | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.local/bin/call b/.local/bin/call @@ -0,0 +1,7 @@ +export TERMUX_CONTACTS_LIST="$(termux-contact-list)" + +export CNA="$(echo "${TERMUX_CONTACTS_LIST}" | jq '.[] | .name' | fzf)" + +CONTACT_NUMBER="$(echo "${TERMUX_CONTACTS_LIST}" | jq -r ".[] | select(.name==$CNA) | .number")" +echo "${CONTACT_NUMBER}" +termux-telephony-call "${CONTACT_NUMBER}"