[issue626] Rewrite of XF86Audio{{Lower,Raise}Volume,Mute}.

Frank Terbeck bts at bts.grml.org
Wed Feb 18 14:34:17 CET 2009


Frank Terbeck <ft at grml.org> added the comment:

Alexander Steinböck <bts at bts.grml.org>:
> New submission from Alexander Steinböck <z3ttacht at grml.org>:
> 
> The big changes by this commit are:
> 
>   * Existence of '/etc/grml/lsb-functions' isn't mandatory anymore.

-v?

>   * Just using amixer(1) for querying and setting the various mixer. Before
>     amixer(1) _and_ aumix(1) were used. But amixer doesn't work with
                                              ^- aumix, I presume?

>     grml-medium 2008.11 due to lack of module snd-mixer-oss. [s. Issue625]
> 
>   * A 'config file' for parameters to osd_cat(1) is used, which gets read by
>     grep(1). Therefore changes according osd_cat's settings can easily be made
>     in just one place for every instance.

Read by grep!?

>   * No temporary file is used anymore.

That certainly sounds good.

>   * `XF86AudioRaiseVolume' changes `XF86AudioLowerVolume' with the help of
>     sed(1) on the fly, since the two scripts just differ in two places.
>        1. amixer -q --sset Master 5%-  vs.  amixer -q --sset Master 5%+
>        2. Lowered volume               vs.  Raised volume

I don't see where sed fits into the picture here.
Can we see some code somewhere?

Regards, Frank

----------
messages: 1904, 1905
nosy: ft, mika, z3ttacht
priority: feature
status: chatting
title: Rewrite of XF86Audio{{Lower,Raise}Volume,Mute}.

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue626>
_____________________________________


More information about the Bugs-changes mailing list