Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-11-30 16:27:53

orschiro
Member
Registered: 2017-11-30
Posts: 65

Produce a sound when changing volume?

Coming from Ubuntu I really love the fact that changing the volume actually produces a sound.

Very useful when using headsets so that I know how loud my settings are to not get a loud surprise.

Is this supported by Xfce? :-)

Thank you!

Offline

#2 2017-12-12 23:40:13

alcornoqui
Member
Registered: 2014-07-28
Posts: 831

Re: Produce a sound when changing volume?

I tried to help, so I made a couple searches, but... sorry.

The funny thing is that all the related results were about how to disable the feature!

  6kt9q22l.png

Plain Ubuntu, KDE, Cinnamon, there are people out there trying to get rid of it, but you seem a bit lonely missing it.

Again, sorry not being of help, or perhaps you made it work? If so, damn, NOW I want to know how smile

Offline

#3 2017-12-13 02:03:12

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Produce a sound when changing volume?

shouldnt a sound not play automatically if you have installed the canberra gtk module and the freedesktop sound theme?

also another solution would be to set custom shortcuts in xfce settings

eg:

/bin/sh -c "amixer sset Master 5%+ && ogg123 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"

Offline

#4 2017-12-13 06:15:47

orschiro
Member
Registered: 2017-11-30
Posts: 65

Re: Produce a sound when changing volume?

Thank you! I will try installing the Canberra GTK module and the freedesktop sound theme.

Offline

#5 2017-12-14 00:33:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Produce a sound when changing volume?

I don't believe libcanberra will help - it doesn't support volume events. For a list of supported events, see: http://git.0pointer.net/libcanberra.git … dule.c#n42. You may need to resort to something like sixsixfive's second suggestion to get those events to happen, or petition the xfce4-pulseaudio-plugin developer to add them in.


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

#6 2017-12-14 04:06:40

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Produce a sound when changing volume?

ToZ wrote:

I don't believe libcanberra will help - it doesn't support volume events.


oh you are right also in that case i would go either keyboardshortcuts + custom commands (also you could write a script that monitors the current volume and plays a sound if something changes) or you could use volume icon( http://nullwise.com/volumeicon.html ) or pnmixer (https://github.com/nicklan/pnmixer/wiki) they wont play a sound on volume change but they can popup a window(volumeicon) or a libnotify notification if the volume changes.

Offline

#7 2017-12-14 07:36:40

orschiro
Member
Registered: 2017-11-30
Posts: 65

Re: Produce a sound when changing volume?

ToZ wrote:

I don't believe libcanberra will help - it doesn't support volume events. For a list of supported events, see: http://git.0pointer.net/libcanberra.git … dule.c#n42. You may need to resort to something like sixsixfive's second suggestion to get those events to happen, or petition the xfce4-pulseaudio-plugin developer to add them in.

That's a very good idea!

Let's see what the developers have to say: https://bugzilla.xfce.org/show_bug.cgi?id=14087

Offline

Board footer

Powered by FluxBB