diff options
author | Guillermo Ramos | 2022-01-20 10:30:38 +0100 |
---|---|---|
committer | Guillermo Ramos | 2022-01-20 10:33:47 +0100 |
commit | 54b3c6b485c1f1cbe45777484282d0188571771c (patch) | |
tree | 5ecb10cb1b9c547c4255a9a8b2a369f597b9a660 /gromo | |
parent | 0a584017ff7a375f250cd8e38aeedd19b3905f5e (diff) | |
download | cli-54b3c6b485c1f1cbe45777484282d0188571771c.tar.gz |
gromo: -t
Diffstat (limited to 'gromo')
-rwxr-xr-x | gromo | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 ;; |