这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-notification: what are actions? #37

@pawamoy

Description

@pawamoy

I had difficulty to understand how I'm suppose to use termux-notification actions. Are they commands I can run in the shell? Like a full command? Or only an executable name, available on the PATH?

I tried running

  • echo hello | termux-notification --action "echo hi"
  • echo hello | termux-notification --action echo
  • echo hello | termux-notification --action ls

...with no luck, but finally got it with

echo hello | termux-notification --action "touch f"

...and f was touched if I tapped on the notification.

A note explaining actions before options would be great! I can open a PR but english is not my native language, so others might phrase it better.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions