aboutsummaryrefslogtreecommitdiff
path: root/gromo
diff options
context:
space:
mode:
Diffstat (limited to 'gromo')
-rwxr-xr-xgromo9
1 files changed, 8 insertions, 1 deletions
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 <dur>
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
;;