You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
SSID="$(termux-wifi-connectioninfo | jq -r .ssid)"if [ $SSID="blahblah"];then
termux-toast Pihole disabled successfully.
else
termux-toast Not connected to home WiFi.
fi
I use toasts to get the results of my script, but termux-widget does a "Task executed: NAME-OF-SCRIPT.sh" toast first and I have to wait for that to disappear before seeing the results. Super minor issue but I'd love for it to be a hair faster and be able to disable that initial toast.
The text was updated successfully, but these errors were encountered:
I'm not familiar with Java but I see where the relevant code is in TermuxLaunchShortcutActivity.java. I like how the default behavior is to confirm the task has run.
I'm not sure how I'd change it myself if I wanted to add this feature. Maybe it could check if there are other termux-toasts in the clickedFile? Or the termux-toast syntax itself could have a flag that would disable the default toast?
As an easy fix I change the "Task executed" toast to be on the top of the screen, to not block toasts from termux-toast (which are by default shown in the center of the screen).
I use toasts to get the results of my script, but termux-widget does a "Task executed: NAME-OF-SCRIPT.sh" toast first and I have to wait for that to disappear before seeing the results. Super minor issue but I'd love for it to be a hair faster and be able to disable that initial toast.
The text was updated successfully, but these errors were encountered: