dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 88cce5c5aaf10a5800376f4642b2a4531caa788a
parent bc630c8978666a873677ea5cd346ade8c0a796fd
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Sun,  9 Feb 2020 14:25:04 +0200

Add clipboard to FBReader Termux script.

Diffstat:
A.shortcuts/open-with-fbreader | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/.shortcuts/open-with-fbreader b/.shortcuts/open-with-fbreader @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +tmpdir="$(realpath ~/storage/downloads)" + +tmpfile="$(mktemp --tmpdir="$tmpdir" --suffix=.txt)" + +echo "$tmpdir" "$(realpath "$tmpdir")" "$tmpfile" + +termux-clipboard-get > "$tmpfile" + +termux-share "$tmpfile"