From 14945af56e1f00ba1027b504c77ebcc6b88e859a Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 16 Oct 2014 22:53:31 +0200 Subject: [PATCH] an example using SoX/play --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4f7b817..9ce25cc 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ duplicated across remaining groups. * Notify the desktop every time a user logs in or out: `tail -n 2 -f /var/log/auth.log | paternoster --group ".*session (opened|closed) for user ([^\s]+)\s*" "notify-send '%s %s'"` +* Play a sound corresponding to the status of the battery every time it is updated + `tail -f battery-stats | paternoster --group "^[0-9]{7}([0-9]{3})" "play -n synth sin %s trim 0 0.05" ## CREDITS