countdown icon indicating copy to clipboard operation
countdown copied to clipboard

feature request: please beep on completion

Open sneak opened this issue 2 years ago • 1 comments

alternately, if you don't want to make it annoying by default, have it look at COUNTDOWN_ON_ZERO_COMMAND in the environment, so I can do:

export COUNTDOWN_ON_ZERO_COMMAND='echo -e "\a"'

in my .profile.

sneak avatar Feb 09 '22 18:02 sneak

Try function () countdown $@ | beep

antonmedv avatar Feb 09 '22 20:02 antonmedv

I do something similar to this.

I wrote a custom bash function that takes the input of the kitchen time and plays an OS-specific audio file when finished.

alias endSound="cmd_to_play_sound sound_file_to_play"

function cod () {
    countdown "$1" && endSound
}

I add this to .profile and use the function as follows:

$ cod $@

Playing audio in the different OSs is possible, but often requires you to install dependency libraries anyway.

It's probably better (and more customizable!) for you to create your own function and call that from your shell.

nnashwin avatar Mar 05 '23 00:03 nnashwin

Solution for macOS

countdown 1s && say beep

antonmedv avatar Mar 05 '23 21:03 antonmedv