r/termux•
Muoniurn

Is there an option to display a command's output as an Android Widget?

I would like to use taskwarrior as a todo app, the only non-optimal part is that I always have to enter the app to see it's output (it runs in .bashrc so that's the first thing running). It would be really good if there was a widget with the output of task next (either periodically updated or on touch)

Is there any relevant work done I should know about?

Posted Feb 14, 2020, 12:29 PM UTC

66
ezethnesthrown•

You could use Tasker that can create a Widget shortcut that runs a Task that runs a Termux command through Termux:Tasker app.

6
Sync1211•

Unfortunately, you cannot display command output via a widget.

However, there is a Taskwarrior app for android.

Alternatively, you could use Termux Float to display your tasks!

4
awesomeThief_•

Or Termux Widjet?

1
Sync1211•

That only acts as a shortcut to launch scripts.

It will still open Termux when you launch a script.

As a workaround, you could create files in ~/.shortcuts for every task in order to display them on the widget.

2
awesomeThief_•

Ah okay

1
IGTHSYCGTH•

You can have your tasks rename themselves 😉

1