hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Setting bell to false doesn't prevent sounds on Window 10

Open pheuter opened this issue 9 years ago • 41 comments

  • OS version and name: Windows 10 Pro
  • Hyper.app version: 1.2.1 or 1.3.1
  • Link of a Gist with the contents of your .hyper.js: Basically the default but with bell: false.
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla.

Issue

Setting the bell attribute to false in my .hyper.js does not prevent the terminal from producing sounds whenever I tab-complete or do other actions.

pheuter avatar Mar 08 '17 16:03 pheuter

I am experiencing the same issue. Windows 10.0.10240.

Jenuma avatar Mar 09 '17 20:03 Jenuma

Same here on Win version 1607, 14393.693

Ouro17 avatar Mar 11 '17 23:03 Ouro17

same on macOS 10.12.3

francoiscote avatar Mar 13 '17 19:03 francoiscote

Same on macOs 10.12.3

Found a hacky solution for the moment. Set the bellSoundUrl parameter to a directory and it will play no sound

sixclones avatar Mar 19 '17 20:03 sixclones

Yeah can confirm this, pretty annoying issue but probably a system level thing. I can get it silent if I disable all windows sounds. Disabling some of them seems to move the sound around to different ones until I get a default beep but the option to set to false or the folder hack above doesn't work for me. Im one who prefers a flash to a beep, dunno if someones done a plugin for that already I haven't checked as yet.

nwcas avatar Apr 09 '17 16:04 nwcas

I gotta say as feedback this is an awesome terminal for windows, combined with bash for windows 10 it really provides that awesome terminal experience for windows that I get from linux and osx, absolute god send and believe me I spent countless hours fudging with the other emulators to get a good experience, the best I found being cmdr other than this but it and the others all have show stopping issues. I found this terminal purely by chance reading an issue about powerline fonts, its a shame I didn't come across it earlier, I guess it doesn't get a lot of press as yet but it should!

nwcas avatar Apr 09 '17 16:04 nwcas

This. Is. Driving. Me. Insane. 🙉 Have always had this problem though. Windows 10 user.

billiegoose avatar Apr 15 '17 00:04 billiegoose

Alright. After building hyper from source and commenting out the bit in hterm.Terminal.prototype.ringBell where it calls oldRingBell... it still rings. It must be something about Windows... but strange that I have no such problem in Git Bash or ConEmu or plain old cmd.

billiegoose avatar Apr 15 '17 01:04 billiegoose

Alright. On Windows it plays the Default Beep sound, which for some reason I had set to Windows Background.wav instead of Windows Default.wav. I changed Default Beep to play Windows Ding.wav which is much quieter. Now lots of programs (including Chrome's find & replace) sound less jarring.

Hopefully that info helps somebody.

billiegoose avatar Apr 15 '17 01:04 billiegoose

What I finally found that worked for me is creating ~/.inputrc in WSL bash and setting set bell-style none.

pheuter avatar May 11 '17 17:05 pheuter

@pheuter are you using bash or zsh? Cause I'm using zsh, and that does not seems to fix for me.

jieverson avatar May 17 '17 15:05 jieverson

@jieverson Right, I had to use bash for it to work. Didn't work when I was on zsh or fish. Would love to know if you find an equivalent fix for those shells.

pheuter avatar May 17 '17 15:05 pheuter

Thanks for the workaround @pheuter! I've switched to this fast wooden knock; see also the related tags. http://soundbible.com/605-Wood-Whack.html

ghost avatar May 28 '17 01:05 ghost

I've also got a hacky solution (if you want to turn it off) for Windows. Just mute it in the Volume Mixer. Hyper was showing up as 'Console Window Host' there.

looselyrigorous avatar Jun 19 '17 10:06 looselyrigorous

Apparently zsh needs this unsetopt beep (though I've not tested it, I'm using bash on windows, and the set bell-style none worked for me). (source)

remy avatar Jun 26 '17 20:06 remy

@remy Your solution did it for me with zsh / oh-my-zsh. I just added unsetopt beep to my .zshrc. Thanks a lot!!

gmazlami avatar Jul 07 '17 16:07 gmazlami

Thanks, @remy! None of the other solutions I tried worked and this has been driving me nuts for days.

lylejantzi3rd avatar Aug 29 '17 21:08 lylejantzi3rd

On a OS X I cheated. I just went to

System Preferences -> Notifications -> Hyper -> Play sound for notifications

and disabled the checkbox.

sghiassy avatar Sep 09 '17 03:09 sghiassy

@sghiassy's solution didn't work for me. The box is already unchecked!

JohnAllen avatar Oct 27 '17 15:10 JohnAllen

@JohnAllen - Looking over my .hyper.js config file, I also had bell: false set in the config. Perhaps they're needed in combination with one another??

sghiassy avatar Oct 27 '17 16:10 sghiassy