Normally, when using Termux:Tasker, you need to prepare a script and specify a file to use it, but by setting up tudo, you can write code directly in Arguments.
github.com
tudo setup
1.pkg install vim
2.pkg install curl
3.curl -L 'https://github.com/agnostic-apollo/tudo/releases/latest/download/tudo' -o "/data/data/com.termux/files/usr/bin/tudo"
4.export termux_bin_path="/data/data/com.termux/files/usr/bin"; export owner="$(stat -c "%u" "$termux_bin_path")"; chown "$owner:$owner" "$termux_bin_path/tudo" && chmod 700 "$termux_bin_path/tudo";
5.vi ~/.termux/termux.properties
6.Change # allow-external-apps = true to allow-external-apps = true and save. (i enter = insert) (ESC :wq enter = save)
See sample macros and screenshots for how to write code to Termux:Tasker.
GitHub - agnostic-apollo/tudo: A wrapper script to drop to shells or run shell scripts with termux user context in termux
A wrapper script to drop to shells or run shell scripts with termux user context in termux - GitHub - agnostic-apollo/tudo: A wrapper script to drop to shells or run shell scripts with termux user...
tudo setup
1.pkg install vim
2.pkg install curl
3.curl -L 'https://github.com/agnostic-apollo/tudo/releases/latest/download/tudo' -o "/data/data/com.termux/files/usr/bin/tudo"
4.export termux_bin_path="/data/data/com.termux/files/usr/bin"; export owner="$(stat -c "%u" "$termux_bin_path")"; chown "$owner:$owner" "$termux_bin_path/tudo" && chmod 700 "$termux_bin_path/tudo";
5.vi ~/.termux/termux.properties
6.Change # allow-external-apps = true to allow-external-apps = true and save. (i enter = insert) (ESC :wq enter = save)
See sample macros and screenshots for how to write code to Termux:Tasker.