Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-07-10 13:18:35

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

How to disable the keyboard sound

Hi, when keeping the backspace button pressed I get a bunch of multimedia sounds when the cursor is touching the edge.
How can I disable that? It's very annoying.


Gentoo-Linux

Offline

#2 2023-07-10 14:32:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to disable the keyboard sound

If you have x11-bell enabled in /etc/pulse/default.pa, then comment out those lines and re-login (or restart pulseaudio). The lines should look something like:

load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
load-module module-x11-bell sample=x11-bell

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-07-10 15:33:17

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Re: How to disable the keyboard sound

I have nothing like that in /etc/pulse/. I'm using pipewire. Where could it be else?

# grep bell -r /usr/share/pipewire
/usr/share/pipewire/pipewire.conf:    module.x11.bell = true
/usr/share/pipewire/pipewire.conf:    { name = libpipewire-module-x11-bell
/usr/share/pipewire/pipewire.conf:            #sample.name = "bell-window-system"
/usr/share/pipewire/pipewire.conf:        condition = [ { module.x11.bell = true } ]

Gentoo-Linux

Offline

#4 2023-07-10 17:26:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to disable the keyboard sound

Try copying /usr/share/pipewire/pipewire.conf to ~/config/pipewire, and then commenting out or deleting the libpipewire-x11-bell section. You'll probably need to restart pipewire or log out and back in again.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-07-11 07:42:40

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Re: How to disable the keyboard sound

You mean I would need to comment all these 4 (3) lines?

# grep bell /usr/share/pipewire/pipewire.conf 
    module.x11.bell = true
    { name = libpipewire-module-x11-bell
            #sample.name = "bell-window-system"
        condition = [ { module.x11.bell = true } ]

So as I understand, there are no real Xfce system sounds yet, only the bell, that I would completely disable in pipewire. At least for the bell, isn't this worth a feature request to have some [x] Bell sound in Settings Manger -> Window Manager or Appearance, actually there isn't a sound section so far.
Are there any plans to add a feature for Xfce sounds for events like window maximize, window close, typing or typing against borders (my case where a bell is already triggered)? Not that I'm a friend myself of having sounds for every event, but this topic makes me feel there should be some Feature request for something like that.

Last edited by Mo_B (2023-07-11 07:42:51)


Gentoo-Linux

Offline

#6 2023-07-11 10:24:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to disable the keyboard sound

You mean I would need to comment all these 4 (3) lines?

Yes, comment out those lines. Or alternatively, just change "true" to read "false". Try both methods to see which works.

So as I understand, there are no real Xfce system sounds yet

Xfce supports libcanberra for system sounds (see: https://forum.xfce.org/viewtopic.php?id=8618). To summarize enabling and setting up libcanberra sound support in Xfce:

  1. Enable both "Event Sounds" options in Settings Manager -> Appearance -> Settings
    .

  2. Install a sound theme (example: https://www.pling.com/p/1187979/) and set "Net/SoundThemeName" to be the sound theme name in Settings Editor in the Xsettings channel, or run:

    xfconf-query -c xsettings -p /Net/SoundThemeName -s SOUNDTHEME

    ...where SOUNDTHEME is the name of the theme ("Smooth" as per above link).
    .

  3. Export GTK_MODULES="canberra-gtk-module" in your system startup files or add it to the /Gtk/Modules key in the xsettings channel in Settings Editor.
    .

  4. Install the following packages: Arch (libcanberra libcanberra-pulse) Xubuntu (sox gnome-session-canberra)
    .

  5. Turn up "System Sounds" in pavucontrol (Pulseaudio).

Note, that only some system sounds are supported. See: http://git.0pointer.net/libcanberra.git … dule.c#n41

There is no direct built-in support for sounds in Xfce, it just uses the external libcanberra library as supported by Gtk for sound effects. Also important to note is that libcanberra has not been updated since 2012 - though it still works fine. Existing feature request is here.

It would be a considerable work effort to implement direct sound support into Xfce.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 546.68 KiB (Peak: 547.52 KiB) ]