View previous topic :: View next topic |
Author |
Message |
UnoSD Apprentice
Joined: 27 Jun 2011 Posts: 273
|
Posted: Sat Apr 13, 2013 8:01 am Post subject: Change volume Gnome command line |
|
|
Hi there.
Is there a way to change the volume in Gnome from the terminal?
I have to have the feedback as well (the nice box with volume status), so I can't use just amixer.
Maybe a dbus command?
I'd like to have multiple keyboard shortcuts for manipulating the volume and, of course, I'm aready using the common one. If there's a way to give multiple shortcuts to the same event, I won't need an answer to the above question.
Thanks. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54385 Location: 56N 3W
|
Posted: Sat Apr 13, 2013 11:45 am Post subject: |
|
|
UnoSD,
alsamixer, or am I missing something?
It uses ncurses for its display. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
UnoSD Apprentice
Joined: 27 Jun 2011 Posts: 273
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Apr 13, 2013 1:14 pm Post subject: |
|
|
UnoSD ...
there are various methods, alsamixer being one, but you can also use amixer to raise/lower the volume, mute the channel, etc ... for example to lower the volume by 3%, then raise by 10%, and then toggle mute (note your 'channel' may be 'PCM' rather than 'Master').
Code: | % amixer -q -c0 set Master 3-%
% amixer -q -c0 set Master 10+%
% amixer -q -c0 set Master toggle |
As amixer is scriptable you can write a scripts to adjust the volume with smooth increments, mute and pause the audio player, etc, etc.
best ... khay |
|
Back to top |
|
|
UnoSD Apprentice
Joined: 27 Jun 2011 Posts: 273
|
Posted: Sat Apr 13, 2013 2:14 pm Post subject: |
|
|
khayyam wrote: | UnoSD ...
there are various methods, alsamixer being one, but you can also use amixer to raise/lower the volume, mute the channel, etc ... for example to lower the volume by 3%, then raise by 10%, and then toggle mute (note your 'channel' may be 'PCM' rather than 'Master').
Code: | % amixer -q -c0 set Master 3-%
% amixer -q -c0 set Master 10+%
% amixer -q -c0 set Master toggle |
As amixer is scriptable you can write a scripts to adjust the volume with smooth increments, mute and pause the audio player, etc, etc.
best ... khay |
Thanks anyway for the answer khayyam, but you didn't read well my question:
Quote: | I have to have the feedback as well (the nice box with volume status), so I can't use just amixer. |
Of course, I'm talking about the Gnome one. |
|
Back to top |
|
|
franzf Advocate
Joined: 29 Mar 2005 Posts: 4565
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Apr 13, 2013 3:25 pm Post subject: |
|
|
UnoSD wrote: | Thanks anyway for the answer khayyam, but you didn't read well my question: |
UnoSD ... thats true, but in part thats to do with how you worded your question, "from the terminal" will generally involve interacting with the terminal, and so a command. Anyhow, sorry for any distraction.
best ... khay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|