Audible mouse clicks

This is, to me, a strange and new (as in last few days) behavior.

In some apps, but only sometimes, when I left click the mouse, I get an audible “click” from the sound system.

For example, it doesn’t make the noise clicking on the desktop or toolbars, but, if I open a file browser and open folders it does.

I have been messing around in config tools, and definitely not any mouse setting for months.

I’m puzzled. I’m not even sure what to search on.

Check the notification settings instead, and see whether the system bell is enabled.

Doesn’t seem to be the bell.

It doesn’t happen in all apps.

In thunar for instance it happens when going up a directory. But, no noise in dolphin.

Start a download in Firefox and the file dialog pops up when I hit save, noise.

I think I might have found a fix for this. I can’t test it on my system, because I don’t hear the sound when I use Firefox (which is probably the only GTK app I use apart from Pamac’s GUI).

Open your ~/.config/gtk-3.0/settings.ini & ~/.config/gtk-4.0/settings.ini files and add the following line to the [Settings] section of each:

gtk-enable-input-feedback-sounds=false

You may also need to add this line:

gtk-enable-event-sounds=false

Then log out & back in for the changes to take effect.

Source of the above advice:

A possible alternative solution is in a post at the end of that thread, where the poster says all they had to do to stop the clicking sound was

to check and then uncheck “Enable notification sounds” in KDE System Settings -> Colors & Themes -> System Sound (hitting Apply after each change). This checkbox appeared unchecked already, but I assume it was actually out of sync with some config file, and checking and unchecking again fixed it.

So, even if the “Enable notification sounds” is not enabled, it may require re-enabling & then disabling again to stop the sounds when clicking on GTK apps.

4 Likes

EDIT: never mind the post. I didn’t notice there was already an answer.

Ok, I think I finally solved this annoying thing. It was driving crazy!

Add the following two lines to ~/.config/gtk-3.0/settings.ini and ~/.config/gtk-4.0/settings.ini:

gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0

I also added it to ~/.gtkrc-2.0, ~/.config/gtkrc and ~/.config/gtkrc-2.0, but it didn’t solve the problem.

1 Like

I had stopped these annoying clicks last week by disabling the notification sounds but never considered that re-enabling them would reset/fix it. That works nicely, though I did have to reboot to get it to work. Thanks for the tip!!

Edit of an edit: Here was the key for me that fixed it finally. The “alternative solution” still allowed some annoying click noise whenever I used some toolbars. I had to go back to editing the settings.ini files for gtk 3 and 4 and modifying and/or adding the two lines mentioned in @scotty65’s post. For me specifically, I had to add the line
gtk-enable-input-feedback-sounds=false
to the settings.ini files for the fix to finally work (after a logoff/logon, of course).

2 Likes