Xfce Forum

Sub domains
 

You are not logged in.

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

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

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: Canada
Registered: 2011-06-02
Posts: 3,876

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: Canada
Registered: 2011-06-02
Posts: 3,876

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

#58 2017-11-07 16:45:52

mkkot
Member
Registered: 2017-11-07
Posts: 1

Re: [Solved] System sounds

Hi, it seems I have a slightly different problem.

[mk@linux ~]$ env | grep GTK_MODULE
GTK_MODULES=canberra-gtk-module:canberra-gtk-module

(I just set that one manually, before it was canberra-gtk-module.)

[mk@linux ~]$ xfconf-query -c xsettings -lv | grep Enable
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true
[mk@linux ~]$ xfconf-query -c xsettings -p /Net/SoundThemeName
freedesktop
[mk@linux ~]$ ls -l /usr/share/sounds/`xfconf-query -c xsettings -p /Net/SoundThemeName`/stereo
razem 520
-rw-r--r-- 1 root root 73696 2014-07-03  alarm-clock-elapsed.oga
-rw-r--r-- 1 root root 17015 2014-07-03  audio-channel-front-center.oga
-rw-r--r-- 1 root root 15675 2014-07-03  audio-channel-front-left.oga
-rw-r--r-- 1 root root 19019 2014-07-03  audio-channel-front-right.oga
-rw-r--r-- 1 root root 17099 2014-07-03  audio-channel-rear-center.oga
-rw-r--r-- 1 root root 14129 2014-07-03  audio-channel-rear-left.oga
-rw-r--r-- 1 root root 18791 2014-07-03  audio-channel-rear-right.oga
-rw-r--r-- 1 root root 17089 2014-07-03  audio-channel-side-left.oga
-rw-r--r-- 1 root root 17198 2014-07-03  audio-channel-side-right.oga
-rw-r--r-- 1 root root 18152 2014-07-03  audio-test-signal.oga
-rw-r--r-- 1 root root  5596 2014-07-03  audio-volume-change.oga
-rw-r--r-- 1 root root  8495 2014-07-03  bell.oga
-rw-r--r-- 1 root root 23142 2014-07-03  camera-shutter.oga
-rw-r--r-- 1 root root 21073 2014-07-03  complete.oga
-rw-r--r-- 1 root root  8748 2014-07-03  device-added.oga
-rw-r--r-- 1 root root  8500 2014-07-03  device-removed.oga
lrwxrwxrwx 1 root root    18 2014-07-03  dialog-error.oga -> dialog-warning.oga
-rw-r--r-- 1 root root  5666 2014-07-03  dialog-information.oga
-rw-r--r-- 1 root root 12182 2014-07-03  dialog-warning.oga
-rw-r--r-- 1 root root 22733 2014-07-03  message-new-instant.oga
-rw-r--r-- 1 root root 10429 2014-07-03  message.oga
lrwxrwxrwx 1 root root    16 2014-07-03  network-connectivity-established.oga -> device-added.oga
lrwxrwxrwx 1 root root    18 2014-07-03  network-connectivity-lost.oga -> device-removed.oga
-rw-r--r-- 1 root root 25889 2014-07-03  phone-incoming-call.oga
-rw-r--r-- 1 root root  7996 2014-07-03  phone-outgoing-busy.oga
-rw-r--r-- 1 root root  4792 2014-07-03  phone-outgoing-calling.oga
lrwxrwxrwx 1 root root    16 2014-07-03  power-plug.oga -> device-added.oga
lrwxrwxrwx 1 root root    18 2014-07-03  power-unplug.oga -> device-removed.oga
lrwxrwxrwx 1 root root    18 2014-07-03  screen-capture.oga -> camera-shutter.oga
-rw-r--r-- 1 root root 17274 2014-07-03  service-login.oga
-rw-r--r-- 1 root root 14573 2014-07-03  service-logout.oga
-rw-r--r-- 1 root root  6849 2014-07-03  suspend-error.oga
-rw-r--r-- 1 root root 38223 2014-07-03  trash-empty.oga
lrwxrwxrwx 1 root root    18 2014-07-03  window-attention.oga -> dialog-warning.oga
lrwxrwxrwx 1 root root    18 2014-07-03  window-question.oga -> dialog-warning.oga

Notification sounds in pavucontrol are not muted.

canberra-gtk-play -i bell

plays a sound


But instead of sound notification I had pc speaker notification. So I disabled it by xset -b and now I don't have any notification. What else could be wrong?
I'm using Archlinux.

Last edited by mkkot (2017-11-07 16:53:33)

Offline

#59 2017-11-07 17:30:36

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

Re: [Solved] System sounds

now I don't have any notification. What else could be wrong?

Which sound notifications are you expecting to get? The freedesktop sound theme only supports canberra's error dialog (IIRC). Try downloading the Borealis sound theme from post #6 of this thread, copying it to ~/.local/share/sounds and setting the SoundThemeName to "Borealis". You should get more window open/close, minimize/maximize sound events.

Edit: Here is another pretty good sound theme.


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

Offline

Board footer

Powered by FluxBB