From 54b3c6b485c1f1cbe45777484282d0188571771c Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Thu, 20 Jan 2022 10:30:38 +0100 Subject: gromo: -t --- gromo | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gromo') diff --git a/gromo b/gromo index f0bc3f5..d85030b 100755 --- a/gromo +++ b/gromo @@ -46,6 +46,9 @@ cmd_help() { -1 Oneshot: stop after first gromo is completed without blocking the screen. + -t + test the 'ding' sound + -d Set custom gromo duration (format: Ns, Nm, Nh). @@ -165,7 +168,7 @@ pp_seconds() { fi } -optspec="1hxld:s:" +optspec="1hxltd:s:" while getopts "$optspec" optchar; do case "$optchar" in 1) @@ -183,6 +186,10 @@ while getopts "$optspec" optchar; do cmd_list exit 0 ;; + t) + mpv --no-terminal "$DING_FILE" & + exit 0 + ;; d) gromo_duration=$(parse_duration "${OPTARG}") || exit 1 ;; -- cgit v1.2.3