debianmacno-cupsweb
Last change
on this file since 4c91fc6 was
4c91fc6,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Just say the new volume, not who changed it.
Multiple people have expressed discomfort with having their every change
of volume be broadcast by name. It doesn't make any sense anyway now that
only an arbitrary subset of the changes are zephyred.
Signed-off-by: Greg Price <price@…>
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | PATH="$(dirname $0):$PATH" |
---|
3 | class=$(/usr/lib/gutenbach/gutenbach-get-config zephyr-class) |
---|
4 | host=$(/usr/lib/gutenbach/gutenbach-get-config host) |
---|
5 | queue=$(/usr/lib/gutenbach/gutenbach-get-config queue) |
---|
6 | instance="$queue-volume@$host" |
---|
7 | |
---|
8 | mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) |
---|
9 | channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) |
---|
10 | |
---|
11 | echo "Class: $class" >> /tmp/gutenbach-remctl.log |
---|
12 | echo "Host: $host" >> /tmp/gutenbach-remctl.log |
---|
13 | echo "Queue: $queue" >> /tmp/gutenbach-remctl.log |
---|
14 | echo "Instance: $instance" >> /tmp/gutenbach-remctl.log |
---|
15 | echo "Mixer: $mixer" >> /tmp/gutenbach-remctl.log |
---|
16 | echo "Channel: $channel" >> /tmp/gutenbach-remctl.log |
---|
17 | |
---|
18 | muted=$(volume-is-muted) |
---|
19 | mute_str=" [$muted]" |
---|
20 | if [ "$muted" = "unmuted" ]; then |
---|
21 | mute_str="" |
---|
22 | fi |
---|
23 | |
---|
24 | start-stop-daemon --stop --oknodo --pidfile /usr/lib/gutenbach/gutenbach-zephyr >/dev/null 2>&1 |
---|
25 | start-stop-daemon --start --pidfile /usr/lib/gutenbach/gutenbach-zephyr --make-pidfile --background --exec /bin/sh -- -c "sleep 10 && zwrite -c $class -i $instance -d -n -m 'volume changed to $(volume-get)$mute_str' > /dev/null" >/dev/null 2>&1 |
---|
26 | |
---|
27 | echo "sleep 10 && zwrite -c $class -i $instance -d -n -m 'volume changed to $(volume-get)$mute_str' > /dev/null" >> /tmp/gutenbach-remctl.log |
---|
28 | echo "" >> /tmp/gutenbach-remctl.log |
---|
Note: See
TracBrowser
for help on using the repository browser.