diff options
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 ;; |