Xfce Forum

Sub domains
 

You are not logged in.

#51 2017-02-01 15:03:31

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,703

Re: [Solved] System sounds

But when trying to ..... delete something it still gives me simple beep

I'm not sure what you mean by beep when deleting a file, because deleting a file doesn't generate a sound event. Emptying the trash does. If you are referring to the sound made when emptying the trash, then yes, you need to change the "trash-empty.ogg" sound file.

But when trying to log out ..... it still gives me simple beep

As for sound on logout, this is not an easy thing to do. Xfce does not have any support for logout sounds or actions (see: https://bugzilla.xfce.org/show_bug.cgi?id=13207, https://bugzilla.xfce.org/show_bug.cgi?id=10172, https://bugzilla.xfce.org/show_bug.cgi?id=2382).

There is a workaround available if you're willing to edit system files. Using the patch from comment #2 of that last bug report, you could edit the file "/etc/xdg/xfce4/xinitrc" and add in around line 111 after xfce4-session is run and after the "fi" statement following it, the following snippet:

  # Cleanup after the session if desired
  test -r $HOME/.logout && . $HOME/.logout

...then creating an executable ~/.logout file that will contain a play command to play your log out sound:

#!/bin/bash
play /path/to/logout/sound/file

That should play an exit sound for you.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#52 2017-02-01 21:09:39

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

@Toz

Thank you for your reply. By simple beep I mean something sounds like the beep produced by the motherboard when it finds some error of hardware while no sound card loaded, just a sound of "beep~", which is a really annoying sound. By deleting something I mean simply select a file in file manager and press delete button, which puts it into trash. Same sound happens when I press backspace in the address bar with no text in it.

Actually I just want to get rid of this beep sound (either disable it or replace by something sounds not that annoying) and I am not really expecting a sound when I try to logout. Disabling sound event doesn't help.

Last edited by xfzfflm (2017-02-01 21:09:59)

Offline

#53 2017-02-02 00:29:36

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,703

Re: [Solved] System sounds

xfzfflm wrote:

I mean something sounds like the beep produced by the motherboard when it finds some error of hardware while no sound card loaded, just a sound of "beep~"

Oh. See this arch wiki page to disable the PC speaker.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#54 2017-02-02 05:18:14

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

@Toz
Great. Thank you!
It looks like this is automatically mapped to other sound in Gnome/KDE, but not in xfce.

A little problem left though.
It seems that setting within xfce is not supported? I would like to install other wms as well and keep them default behavior.

Offline

#55 2017-02-02 11:29:51

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,703

Re: [Solved] System sounds

If gnome is remapping the pc speaker sound it must be doing something internally to disable the module. Xfce does not do this.

Why not just manually "rmmod pcspkr" when you start Xfce?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#56 2017-02-02 16:59:38

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

Thank you. I would prefer "xset -b" which won't require sudo.

Offline

#57 2017-02-02 18:07:28

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

BTW, I found there's "blacklist pcspkr" in Ubuntu's modprobe.d but not the case in Arch with KDE/Gnome.

Last edited by xfzfflm (2017-02-02 18:25:41)

Offline

Board footer

Powered by FluxBB