Cute beeps for your terminal

I think computers should beep. Put this in ~/.local/bin/bip if you agree: #/usr/bin/bash notes =() times =() t = 0 for arg in $@ ; do if [[ $arg != 0 ]] ; then notes+ =( sine $arg ) times + =( ${ t } s ) fi t = $(( t + 3500 )) done play -qn -c1 synth 1 ${ notes [*] } \ fade 0.01 0.1 0.06 delay ${ times [*] } gain -20 The play command is provided by sox . Now you can run long_command && bip C4 D4…