pulseaudio-ctl

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

pulseaudio-ctl

Unread post by kexolino » Tue Nov 18, 2014 9:15 pm

I was looking for a simple cli way to control pulse, and this is exactly it.

Source: https://github.com/graysky2/pulseaudio-ctl

From the github page:

Code: Select all

/usr/bin/pulseaudio-ctl mute        ==>  Toggle status of mute
/usr/bin/pulseaudio-ctl mute-input  ==>  Toggle status of mute for mic
/usr/bin/pulseaudio-ctl up          ==>  Increase vol by 5 %
/usr/bin/pulseaudio-ctl down        ==>  Decrease vol by 5 %
/usr/bin/pulseaudio-ctl set 40      ==>  Set vol to 40%
/usr/bin/pulseaudio-ctl atmost 30   ==>  Set vol to 30% if current higher than that
Simply entering pulsaudio-ctl will show this info:

Code: Select all

pulseaudio-ctl v1.45

 /usr/bin/pulseaudio-ctl {up,down,mute,mute-input,set,atmost} [n]

 Where up and down adjust volume in ±5 % increments.
 Where mute toggles the mute status on/off.
 Where mute-input toggles the input status on/off.
 Where set takes a % value.
 Where atmost only takes effect if current volume is higher than this.

 Optionally, redefine an upper threshold in /home/noel/.config/pulseaudio-ctl/config

 Volume level     : 88 %
 Is sink muted    : no
 Is source muted  : no
 Detected sink    : 0
 Detected source  : 1
 Pulse version    : 5.0
So with this, you can control pulse with hotkeys and show volume in a statusbar pretty easily. Nice for those of us who are stuck with it because of Skype and other crap. :)

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: pulseaudio-ctl

Unread post by Dr_Chroot » Tue Nov 18, 2014 10:33 pm

Thanks kex! I haven't had to use pulse for a while, but always had that dread that one day I will have to. A cli would prove to be very helpful, I'm sure.
Attachments
ebht3.jpg
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: pulseaudio-ctl

Unread post by machinebacon » Wed Nov 19, 2014 11:37 am

I'm so old-fashioned that I control pulseaudio with amixer :D

Thanks for the post!
..gnutella..

Post Reply