source: gutenbach-remctl/volume-set @ 70b38df

debianmacno-cupsweb
Last change on this file since 70b38df was 70b38df, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Send zephyrs on volume change operations

  • Adds sipbmp3-get-config to retrieve configuration parameters.
  • Makes volume-mute and volume-set send zephyrs to -i $queue-volume@$host on volume-change requests
  • Property mode set to 100755
File size: 334 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"
7zwrite -c $class -i $instance -n -m "Setting volume to $2 on $queue"
8
9amixer set Headphone "$2" \
10 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
Note: See TracBrowser for help on using the repository browser.