#!/bin/sh # Start dictation only when the daemon is idle. Guards against stray toggle # events (key repeat, re-fired press binds) inverting the recording state. [ "$(whisrs status 2>/dev/null)" = "idle" ] && exec whisrs toggle