Commit Graph

15 Commits

Author SHA1 Message Date
Alessandro Caputo
60af0488db termux-notification: add --help-actions
fixes #37
2019-08-08 15:29:00 +02:00
Alessandro Caputo
bb832a5182 termux-notification: document one-letter options 2019-08-08 15:01:45 +02:00
Alessandro Caputo
93ae63b905 termux-notification: specify -c/stdin precedence
-c/--content takes precedence over stdin to set the notification's
content
2019-08-08 15:01:00 +02:00
Alessandro Caputo
3f68215d12 notification: do not allow empty id with --ongoing
Ongoing notifications can only be removed with
termux-notification-remove, which requires the notification id.
An ongoing notification without an id requires a reboot to be removed.
This commit forbids creating such an "unremovable" notification.
2019-08-08 01:18:44 +02:00
Alessandro Caputo
d803d16610 termux-notification: allow using STDIN as content
... without hanging the script

fixes termux/termux-api#271 and termux/termux-api-package#71
2019-08-07 22:30:35 +02:00
Alessandro Caputo
d9e1d699f5 termux-notification: handle multiline content
fixes termux/termux-api#274
2019-08-07 22:30:35 +02:00
Alessandro Caputo
5065b155dd Implement ongoing, alert-once, group, image-path,
... and media options (type, media-{next,previous,pause,play})

Implement these options introduced in termux-api by
termux/termux-api#209 and not yet present in this script.
2019-08-04 15:35:40 +02:00
Oj18
228bf70487
Fix that notifications that don't have content specified hang
It just sets the content to empty ("") by default, as if there is no content at all it hangs.
2019-03-23 19:02:26 +00:00
Leonid Plyushch
213b102265 termux-notification: more clear description of "--content" option
Requested in https://github.com/termux/termux-api-package/issues/39.
2019-01-15 16:45:25 +02:00
Timothée Mazzucotelli
af7229048d
Fix typo "context" -> "content" 2018-12-03 12:56:51 +01:00
Leonid Plyushch
6d292f04d0 termux-notification: fix typo in usage text 2018-06-05 17:54:13 +03:00
Oliver Schmidhauser
06d4a0bf2f Disable globbing in termux-notification.
Fixes https://github.com/termux/termux-api/issues/120

`termux-notification --content '*'` should mean the content of the
notifiation is `*` and not a list of files. The globbing, if desired,
should be done by the shell starting the process

```
echo * # does globbing
echo '*' does not do globbing

termux-notification --content * # Does globbing (but errors, since this
won't be valid syntax).
termux-notification --content '*' # Does globbing without this patch but
shouldn't

```
2018-02-12 11:30:40 +01:00
Oliver Schmidhauser
3b447e8036 Fix initialisation of variable.
Fixes https://github.com/termux/termux-api/issues/83
2017-04-10 08:31:38 +02:00
Fredrik Fornwall
712e0caf16 termux-notification: Support --on-delete action
This makes it possible to act on the notification being dismissed.

Client side part of https://github.com/termux/termux-api/issues/81
2017-04-09 19:07:53 +02:00
Fredrik Fornwall
1ec1334b54 Initial push 2017-04-09 18:19:29 +02:00