termux-bookmark
v1.0.0
Published
Add bookmarks using the share menu on Android
Downloads
1
Readme
Add bookmarks using the share menu on Android
Instructions
- Install Termux
- Open Termux and issue the commands in the next steps
- Update packages:
$ apt update && apt -y upgrade
- Install Node.js
$ apt install nodejs
- Install the termux-bookmark npm package:
$ npm i --global termux-bookmark
- Create the directory for the script that will run whenever a URL is shared using Termux:
$ mkdir ~/bin
- Create a script with
$ nano ~/bin/termux-url-opener
with the following contents:
#!/bin/bash
NPX_PATH=/data/data/com.termux/files/usr/bin/npx
BOOKMARK_URL=$1
env BOOKMARK_SERVER_ROOT=https://<your-bookmark-server> $NPX_PATH bookmark $BOOKMARK_URL
termux-notification --title "Bookmarked" --content "$url"
exit
- Mark the script as executable:
$ chmod +x ~/bin/termux-url-opener
- Install the Termux API
You can now use the Android share menu to add bookmarks to your bookmark-server