Change application volume from terminal
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
Is there a way to change individual application volumes from the terminal? I found a way to change the master volume which is amixer -D pulse sset Master 50%
but I would like to be able to change volumes for individual applications like is possible in pavucontrol
. My usage would be for scripting.
sound pulseaudio
add a comment |Â
up vote
1
down vote
favorite
Is there a way to change individual application volumes from the terminal? I found a way to change the master volume which is amixer -D pulse sset Master 50%
but I would like to be able to change volumes for individual applications like is possible in pavucontrol
. My usage would be for scripting.
sound pulseaudio
Depends on the application. Look intoman <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there a way to change individual application volumes from the terminal? I found a way to change the master volume which is amixer -D pulse sset Master 50%
but I would like to be able to change volumes for individual applications like is possible in pavucontrol
. My usage would be for scripting.
sound pulseaudio
Is there a way to change individual application volumes from the terminal? I found a way to change the master volume which is amixer -D pulse sset Master 50%
but I would like to be able to change volumes for individual applications like is possible in pavucontrol
. My usage would be for scripting.
sound pulseaudio
edited Apr 13 '17 at 12:24
Communityâ¦
1
1
asked Feb 23 '15 at 4:16
AkBKukU
1521214
1521214
Depends on the application. Look intoman <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08
add a comment |Â
Depends on the application. Look intoman <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08
Depends on the application. Look into
man <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
Depends on the application. Look into
man <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
I found the solution hidden in a comment on unix.stackexchange. Use pactl list sink-inputs
to find your application's sink input number. Then use pactl set-sink-input-volume [sink number] [volume percent]
to set the volume of your application.
This one is great. I can now fade out spotify withfor ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.
â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the functiongetSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.
â AkBKukU
Feb 9 '16 at 18:21
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
I found the solution hidden in a comment on unix.stackexchange. Use pactl list sink-inputs
to find your application's sink input number. Then use pactl set-sink-input-volume [sink number] [volume percent]
to set the volume of your application.
This one is great. I can now fade out spotify withfor ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.
â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the functiongetSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.
â AkBKukU
Feb 9 '16 at 18:21
add a comment |Â
up vote
2
down vote
accepted
I found the solution hidden in a comment on unix.stackexchange. Use pactl list sink-inputs
to find your application's sink input number. Then use pactl set-sink-input-volume [sink number] [volume percent]
to set the volume of your application.
This one is great. I can now fade out spotify withfor ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.
â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the functiongetSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.
â AkBKukU
Feb 9 '16 at 18:21
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
I found the solution hidden in a comment on unix.stackexchange. Use pactl list sink-inputs
to find your application's sink input number. Then use pactl set-sink-input-volume [sink number] [volume percent]
to set the volume of your application.
I found the solution hidden in a comment on unix.stackexchange. Use pactl list sink-inputs
to find your application's sink input number. Then use pactl set-sink-input-volume [sink number] [volume percent]
to set the volume of your application.
edited Apr 13 '17 at 12:37
Communityâ¦
1
1
answered Feb 23 '15 at 15:34
AkBKukU
1521214
1521214
This one is great. I can now fade out spotify withfor ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.
â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the functiongetSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.
â AkBKukU
Feb 9 '16 at 18:21
add a comment |Â
This one is great. I can now fade out spotify withfor ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.
â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the functiongetSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.
â AkBKukU
Feb 9 '16 at 18:21
This one is great. I can now fade out spotify with
for ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
This one is great. I can now fade out spotify with
for ((i=50;i<100;i+=1)); do; pactl set-sink-input-volume 28 $i%; sleep 0.05; done
Just need to know how to get spotify sink in a more assuring way.â Bà Âaà ¼ej Michalik
Jan 23 '16 at 1:23
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the function
getSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.â AkBKukU
Feb 9 '16 at 18:21
I had used this command to make a script to use the pedals from an old driving wheel to control music playback volume. I put the script up here. Check out the function
getSink
to see a way to do it in a script. Not that the second line in it uses the variable $SINKAPP. you can substitute your process name here.â AkBKukU
Feb 9 '16 at 18:21
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f588772%2fchange-application-volume-from-terminal%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Depends on the application. Look into
man <application>
â Jacob Vlijm
Feb 23 '15 at 7:03
I don't want to change the in application volume, I want to change the pulseaudio volume level for any application. For example, skype, which has no runtime parameters.
â AkBKukU
Feb 23 '15 at 15:08