Ticket #214 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

Ability to change sinks volumes from CLI on runtime

Reported by: valoun Owned by: lennart
Milestone: 0.9.16 Component: clients
Keywords: volume, batch, command-line, CLI Cc: ondrej@…

Description

Hi,

I haven't found a way to change volume from command-line (in a non-interactive way) for sinks. I need it to be able to attach volume scripts to my notebook buttons.

"pulseaudio -nF" with commands fails with error:

E: pid.c: Daemon already running. E: main.c: pa_pid_file_create() failed.

Other programs like pactl, pavucontrol, paprefs etc. get no commandline options at all or do not offer the needed functions.

So is there a way that I haven't found? Basically what I need is to issue commands like those offered with amixer i.e. volume up (with unmute), volume down, volume up by %, volume down by %, mute, unmute, toggle mute etc.

Right now, I can only control PCM with amixer through pulse.

Change History

Changed 4 years ago by valoun

  • cc ondrej@… added

added myself to CC

Changed 4 years ago by lennart

You can script pacmd that way a bit. But yes, a new pactl command for this might make sense.

Changed 4 years ago by lennart

  • status changed from new to assigned

#191 has another request for a new pactl command.

Changed 2 years ago by lennart

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to 0.9.16

PA in git now has a pactl command that knows set-sink-volume and similar commands.

Note: See TracTickets for help on using tickets.