Skip to content

Disable "Task executed: NAME-OF-SCRIPT.sh" toast when running a task via widget #33

Closed
@mwcarew

Description

#!/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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions