Live data from Hacker News

Ask HN: Does anyone use sound effects in their dev environment?

news.ycombinator.com

31–40 of 336 posts

Re: Ask HN: Does anyone use sound effects in their dev environment?

#37

It isn't exactly what you have in mind, but I use `play` as well as a terminal theme color change to tell me when I'm using one or another language's keyboard layout. If you put & in front of play, you can make chords. Here's an example: # Define notes for major seventh chord starting on A 440 A=440 C_SHARP=554.37 E=659.25 G_SHARP=830.61 if [[ "$layout" == "Finnish" ]]; then # Play a major seventh chord ascending kit…

I used the same approach when programming my fridge. If the compressor was required because the temperature in the topmost shelf was too high, the tones would play in rising order. If it was due to the bottom shelf, then the tones would play in descending order.

I ended up disabling the feature because it was always the bottom shelf.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#39
post #8

Sometimes when I wait for slow tasks to complete I do stuff like: sleep 900; say "Task X is probably done now" On Mac this works out of the box, AFAICT Linux has similar commands. https://ss64.com/mac/say.html https://manpages.debian.org/bookworm/gnustep-gui-common/say....

thank you. Just created an alias alias waitfor='f() { sleep $1; say "Task $2 is probably done now"; }; f'

Why an alias creating a function and running it, instead of just defining the waitfor() function?

    function waitfor(){ sleep $1; say "Task $2 is probably done now"; }

Re: Ask HN: Does anyone use sound effects in their dev environment?

#40
I use short beep in all my inotify/rsync scripts to make sure that local file I just saved was finished uploading to server so I can refresh the browser.

Another one is espeak that says "keyboard" when my keyboard get disconnected (usually due to me soldering stuff which then kills my keystroke monitoring keylogger which then I need to manually restart because it runs as root)

On Upwork page a custom extension keeps continuously beeping when new message appears in chat.

At 17:00 espeak says "17:00" to remind me it is time to make a soup.

Post reply on HN