DEV Community

Discussion on: Meme Monday 👁

Collapse
 
citronbrick profile image
CitronBrick

I think maven, gradle, npm etc. should beep when they finish.

At least optionally.

Collapse
 
jankapunkt profile image
Jan Küster

Please use windows 95 sounds for the success/error sounds

Collapse
 
sarahokolo profile image
sahra 💫

You can write a simple bash script for that

Thread Thread
 
coderamrin profile image
Amrin

never thought of that, let's put this on the might do list.

Thread Thread
 
corentinbettiol profile image
Corentin Bettiol

Try this in a *nix shell: tput bel

Thread Thread
 
corentinbettiol profile image
Corentin Bettiol

Or this if you're on *ubuntu:

your_command_here && notify-send "Success" || notify-send "Error"
Enter fullscreen mode Exit fullscreen mode

If it succeeds, the "success" notification will be sent, else the "error" notification will be sent.

Example:

1 == 1 => success
1 == 2 => error

[[ 1 == 1 ]] && notify-send "Success" || notify-send "Error"
sleep 3
[[ 1 == 2 ]] && notify-send "Success" || notify-send "Error"
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
coderamrin profile image
Amrin

Thanks man!

Collapse
 
coderamrin profile image
Amrin

absolutely a bell should be played

Collapse
 
aitchkhan profile image
Haroon Khan

weep**