commit 1c3006f516d413195f2016f658b5f76d0012a8ee
parent d036771c8681aa20b0b54c6c65e7419f32faacb0
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Wed, 24 Nov 2021 20:40:50 +0530
Merge pull request #20 from bharatvaj/termux
Show links for images in lynx
Diffstat:
4 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/.config/lynx/lynx.cfg b/.config/lynx/lynx.cfg
@@ -10,3 +10,4 @@ EDITOR:vim
KEYMAP:J:DOWN_TWO
KEYMAP:K:UP_TWO
DEFAULT_KEYPAD_MODE:LINKS_AND_FIELDS_ARE_NUMBERED
+MAKE_LINKS_FOR_ALL_IMAGES:TRUE
diff --git a/.gitignore b/.gitignore
@@ -15,5 +15,6 @@
!.config/
# Local shell scripts
+!.local/
!.local/bin/
!.local/bin/*
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}"
diff --git a/.local/bin/passfind b/.local/bin/passfind
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Adapted from https://gist.github.com/heywoodlh/4c1e27f477a896bc3b0f6d55e2748d26
+
+## Assumes that the user is using otp plugin
+## Install fzf and make sure pass is configured beforehand
+
+## If you want to grab the totp code, use like so: `pass-fzf.sh otp`, otherwise script will assume you want password
+
+type="${1}"
+
+PASS_DIR=${XDG_DATA_HOME}/pass
+selection="$(find -L ${PASS_DIR} -name '*.gpg' -exec realpath --relative-to=${PASS_DIR} {} | sed -e 's/.gpg//' | fzf --layout=reverse)"
+
+if [ "${type}" == "otp" ]
+then
+ pass otp show "${selection}"
+else
+ pass show "${selection}"
+fi
+