source: gutenbach/debian/lib/volume-zephyr @ cfa46d1

debianmacno-cupsnodebathenaweb
Last change on this file since cfa46d1 was 4f58f93, checked in by Jessica B. Hamrick <jhamrick@…>, 14 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: 666 bytes
Line 
1#!/bin/sh
2PATH="$(dirname $0):$PATH"
3class=$(sipbmp3-get-config zephyr-class)
4host=$(sipbmp3-get-config host)
5queue=$(sipbmp3-get-config queue)
6instance="$queue-volume@$host"
7
8mixer=$(sipbmp3-get-config mixer)
9channel=$(sipbmp3-get-config channel)
10
11muted=$(volume-is-muted)
12mute_str=" [$muted]"
13if [ "$muted" = "unmuted" ]; then
14    mute_str=""
15fi
16
17start-stop-daemon --stop --oknodo --pidfile /var/run/sipbmp3-zephyr >/dev/null 2>&1
18start-stop-daemon --start --pidfile /var/run/sipbmp3-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
Note: See TracBrowser for help on using the repository browser.