aboutsummaryrefslogtreecommitdiff
path: root/gromo
diff options
context:
space:
mode:
authorGuillermo Ramos2022-01-20 10:30:38 +0100
committerGuillermo Ramos2022-01-20 10:33:47 +0100
commit54b3c6b485c1f1cbe45777484282d0188571771c (patch)
tree5ecb10cb1b9c547c4255a9a8b2a369f597b9a660 /gromo
parent0a584017ff7a375f250cd8e38aeedd19b3905f5e (diff)
downloadcli-54b3c6b485c1f1cbe45777484282d0188571771c.tar.gz
gromo: -t
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
;;