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.
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)
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.
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.
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?
Thank you. I would prefer "xset -b" which won't require sudo.
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)