Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add direct controls through the CLI #21

Open
margual56 opened this issue May 9, 2021 · 2 comments
Open

Add direct controls through the CLI #21

margual56 opened this issue May 9, 2021 · 2 comments

Comments

@margual56
Copy link

margual56 commented May 9, 2021

It would be nice to have arguments to this program. E.g.:

  • pacmixer --vol +1
  • pacmixer --mute and pacmixer --unmute
  • etc

Said commands would apply for the default device.
This would allow for extensibility and allow using it from other programs.

I would try to implement this myself, but I don't know objective C at all.

Edit: The intention with this is to be able to use the volume keys to lower or raise the volume. I don't know if there is a specific API that, for example, alsamixer used to achieve this.

@Syakhisk
Copy link

Syakhisk commented Jul 9, 2021

You can use pactl for that, here's some example:

# Vol up/down
pactl set-sink-volume @DEFAULT_SINK@ +10% 
pactl set-sink-volume @DEFAULT_SINK@ -10% 

# Vol mute
pactl set-sink-mute @DEFAULT_SINK@ toggle

# Mic mute
pactl set-source-mute @DEFAULT_SOURCE@ toggle 

@KenjiTakahashi
Copy link
Owner

There was a plan for this indeed. But right now I'm not sure whether it's going to happen anymore. PA seems to be slowly phased out in favour of Pipewire. And I'm personally moving some of my audio stuff out to sndio.
It is not decided yet, but this project might possibly reach EOL soon.
Still, I'll keep this open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants