diff options
| author | Mattias Andrée <maandree@operamail.com> | 2015-04-25 15:09:25 +0200 | 
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2015-04-25 15:09:25 +0200 | 
| commit | bead40c7d0d8782f84749e610d2422b802101782 (patch) | |
| tree | b198c5df232ee7dae9302e704f6235b87fb84b38 /doc/examples/audio-volume-control/amixer | |
| parent | add message length restriction and message format to readme (diff) | |
| download | bus-bead40c7d0d8782f84749e610d2422b802101782.tar.gz bus-bead40c7d0d8782f84749e610d2422b802101782.tar.bz2 bus-bead40c7d0d8782f84749e610d2422b802101782.tar.xz  | |
add example audio-volume-control
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/examples/audio-volume-control/amixer')
| -rwxr-xr-x | doc/examples/audio-volume-control/amixer | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/examples/audio-volume-control/amixer b/doc/examples/audio-volume-control/amixer new file mode 100755 index 0000000..c46d4e5 --- /dev/null +++ b/doc/examples/audio-volume-control/amixer @@ -0,0 +1,8 @@ +#!/bin/sh +/usr/bin/amixer "$@" +for arg in "$@"; do +    if [ "${arg}" = "set" ] || [ "${arg}" = "sset" ] || [ "${arg}" = "cset" ]; then +	exec bus broadcast "/tmp/example-bus" '0 volume-changed *' +    fi +done +  | 
