termux / termux/termux-api

Post texts to a homescreen widget

Open
#394 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description
A termux-widget command that shows the texts right in the home screen widget, like we use termux-notification or termux-toast.

Expected usage
termux-widget --id widget1 --title "Sample title" --text "Sample text"

This should show the passed text arguments. If this feature is available, the possibilities are extended like notifying script outputs, watching logs, piping other termux-api outputs to home screen.

I have currently implemented a prototype with Termux+Nginx+Meta Widget. Termux will wrap the texts inside an HTML tag. Meta Widget fetch the HTML from local Nginx service. But, this method is not that efficient.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the termux-widget command and the Android homescreen-widget integration; the issue provides no file or test names. Define how --id, --title, and --text should be passed and rendered. Done means the command displays the supplied text directly in the homescreen widget without the Nginx and Meta Widget workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.