You are not logged in.

#1 2024-08-27 14:26:04

duuumbo
Member
Registered: 2023-07-04
Posts: 14

[SOLVED] Pulseaudio sink index keeps changing when plugging earphones

Hi,
I mapped the XF86AudioRaiseVolume to the command `pactl set-sink-volume 9 +5%`. The thing is the sink index keeps increasing as I plug and unplug earphones. Any idea for a work around? Thanks

Last edited by duuumbo (2024-08-27 15:04:07)

Offline

#2 2024-08-27 14:39:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,208

Re: [SOLVED] Pulseaudio sink index keeps changing when plugging earphones

Assuming these refer to your primary sink you can use "pactl set-sink-volume @DEFAULT_SINK@ +5%" in order to not rely on the index (alternatively, specify the appropriate sinkname as spelled out in "pactl list sinks short")

Offline

#3 2024-08-27 15:04:22

duuumbo
Member
Registered: 2023-07-04
Posts: 14

Re: [SOLVED] Pulseaudio sink index keeps changing when plugging earphones

Works like a charm, thanks!

Offline

Board footer

Powered by FluxBB