#!/bin/sh # Stop dictation only when actually recording. If the release bind never # fires, whisrs' own silence auto-stop ends the recording instead. # Logs each invocation to /tmp/whisrs-hold.log for debugging dropped events. echo "$(date +%H:%M:%S.%N) release status=$(whisrs status 2>/dev/null)" >> /tmp/whisrs-hold.log [ "$(whisrs status 2>/dev/null)" = "recording" ] && exec whisrs toggle