summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2019-10-25 07:30:49 -0400
committerGitHub <noreply@github.com>2019-10-25 07:30:49 -0400
commitb5d89350fd443b87217b7af6d00c956012387e80 (patch)
tree59116790379494d4276f44e1cba3f01efbfaf14d /README.md
parentAllow noninteractive icon (#4) (diff)
parentRemove now-unused fifo var from main() (diff)
downloadmktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.tar.gz
mktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.tar.bz2
mktrayicon-b5d89350fd443b87217b7af6d00c956012387e80.zip
Merge pull request #6 from jonhoo/newline-handling
Handle newlines in params
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index c84a99c..f5e97d6 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,12 @@ Note that any script communicating with `mktrayicon` via the pipe **must**, for
the time being, send `q` when they are done. Just removing the FIFO file will
**not** cause the tray icon to be removed.
+The command argument can be quoted with either `'` or `"` if you wish
+it to include newlines. Other string interpolation may be added later.
+Quoted strings are terminated by a matching quote at the end of a line
+(ignoring whitespace). To escape a quote character at the end of a line
+to continue a quoted string, prefix it with a `\`.
+
## Why?
Because I wanted to be able to create tray icons from bash without all the
bgstack15