diff options
author | Ben Sima <ben@bsima.me> | 2020-04-15 23:12:18 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-15 23:12:18 -0700 |
commit | f79cfe42aac5f5cef8865f7a6975f6a430c923a1 (patch) | |
tree | 20d0f7e1746df04e2d9a553b4c1de99505efb83c /Que/quescripts.md | |
parent | bfa8e3b88e247e40c2c4fc1ab03176599cc4170b (diff) |
Use python format strings for args.then
Diffstat (limited to 'Que/quescripts.md')
-rw-r--r-- | Que/quescripts.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Que/quescripts.md b/Que/quescripts.md index 9a2e6e0..77e7004 100644 --- a/Que/quescripts.md +++ b/Que/quescripts.md @@ -10,7 +10,7 @@ the job finishes. In one terminal run the listener: - que pub/notify --then "notify-send '\que' '\msg'" + que pub/notify --then "notify-send '{que}' '{msg}'" In some other terminal run the job that takes forever: @@ -23,9 +23,9 @@ Linux with title "`pub/notify`" and content "`tests are done`". Que paths are multi-producer and multi-consumer, so you can add as many terminals as you want. -On macOS you could use: +On macOS you could use something like this (just watch your quotes): - osascript -e 'display notification "\msg" with title "\que"' + osascript -e "display notification \"{msg}\" with title \"{que}\"" in place of notify-send. @@ -39,7 +39,7 @@ It's surprisingly easy to make a collaborative jukebox. First start up a music player: - que --poll pub/music --then "playsong '\msg'" + que --poll pub/music --then "playsong '{msg}'" where `playsong` is a script that plays a file from data streaming to `stdin`. For example [vlc](https://www.videolan.org/vlc/) does this when |