source: gutenbach/debian/lib/volume-mute @ 28836c2

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

Improve configuration and fine-tune zephyrs

  • Property mode set to 100755
File size: 489 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
11result=$(amixer set $mixer toggle)
12echo "$result"
13volstat=$(echo $result | grep "$channel" \
14 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)'
15)
16
17zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null
Note: See TracBrowser for help on using the repository browser.