Feature request: termux-torch argument to actually toggle the LED
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Feature description
termux-torch currently accepts on or off as arguments:
Usage: termux-torch [on | off]
Toggle LED Torch on device
It would be nice if we could have a 3rd option to actually toggle the LED:
termux-torch toggle which would check the current LED state and change it to to the opposite (off -> on, and on -> off)
Reference implementation
Have you checked if the feature is accessible through the Android API? Yes
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links) N/A
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the termux-torch command implementation and its Android LED control path. Check how the current on and off arguments determine torch state, then verify that a toggle argument switches each state and that the usage text reflects it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100