dotfiles

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

commit f692b9215c628a62536699670fcac8fa27b7362b
parent 3e08dfea944968021ec2d334bf94deb16383f661
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}"