-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Have a widget that shows the output of a command #29
Comments
Just use
and every symlink to that script appended with '_n' will exec your script (if available in PATH) with name of simlink without ending '_n' in name on every n seconds. Ex. will run |
I think the more important part would be having the widget output be more dynamic. TBH, it would be very useful to have something like termux-dialog that could output to an Android widget that would also allow callbacks to a script or something. Maybe even make it a bit like
or have a configuration dialog for termux-widget prompting for a script to run to generate widget entries and another script to run when one is selected. |
Mm. I second this. This would be very useful. I guess Google corporate policy does not allow keyboard input for widgets. But being able to have the output of running scripts in a real widget would also be so useful. |
I guess SDK does not implement this. Widgets are basically just a clickable picture (complex layouts are also possible, but interaction is limited anyway) on the launcher screen. It also has limits on content update period. |
@bitcoinmeetups in 39 is an example that changes the widget tables (unfortunately only with reload). |
Maybe a resizable pop up supportint graphical display of output Same as above but instead of widget eg i have curl/wget script. script is written such yhat everythimg is silenced only the progress bar is shown in stdout. Check: https://play.google.com/store/apps/details?id=com.binarysmith.webclipwidget.ad make two widgets Any help with such kind of setup |
Termux offers a way to create widgets through Termux:GUI app - sadly, it cannot be installed as of now. To overcome this issue, I created my own widget that displays output of a command, refreshing itself every 15 minutes. Admittedly, it is quite limited, but works well for basic use cases - I've been successfully using it for a while, and I hope that other people find it useful as well. |
I want to test it. Can you please add a link to an APK version at the front page of your repo? This maximizes the number of new users. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Tried to install the app. Widget shows nothing, even though permissions have been enabled. Test command was ping bing.com |
This comment was marked as off-topic.
This comment was marked as off-topic.
Tried again using both ping -c 4 reddit.com and echo hello. Unfortunately neither displayed anything. Android 9. Not the latest Termux either. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Termux:API has now termux-job-scheduler. I'm outputing job results into the text files. Having an widget to display configured file path(s) content would be great. |
I'd love to have the possibility to have widgets that executes a command every x seconds (chosen by user) and displays the output in the widget area!
Anyways, just discovered Termux, it's awesome, great work :)
The text was updated successfully, but these errors were encountered: