diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/idw-timer | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/idw-timer b/scripts/idw-timer index 21ec61a2..ca846077 100755 --- a/scripts/idw-timer +++ b/scripts/idw-timer @@ -21,14 +21,20 @@ for f in "$1"/$PATTERN; do xdg-open "$f" & write_timer_conf $THINK + # Explicit word expansion of PEACLOCK_ARGS is safe because + # PEACLOCK_CONF does not contain spaces + # shellcheck disable=SC2086 timeout --foreground $THINK peaclock $PEACLOCK_ARGS ffplay -autoexit -nodisp "$SOUND" 2>/dev/null write_timer_conf $PAIR + # shellcheck disable=SC2086 timeout --foreground $PAIR peaclock $PEACLOCK_ARGS ffplay -autoexit -nodisp "$SOUND" 2>/dev/null reset - read -p "next>" + read -rp "next>" + # Word splitting to expand all PIDs + # shellcheck disable=SC2046 kill $(jobs -p) done |
