- Timestamp:
- Jun 24, 2010, 1:11:23 AM (14 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- 0d16875
- Parents:
- 28836c2
- git-author:
- Alex Dehnert <adehnert@…> (10/11/09 03:25:45)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (06/24/10 01:11:23)
- Location:
- gutenbach/debian/lib
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/volume-mute
r28836c2 r9f0c46e 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 class=$(sipbmp3-get-config zephyr-class)4 host=$(sipbmp3-get-config host)5 queue=$(sipbmp3-get-config queue)6 instance="$queue-volume@$host"7 3 8 4 mixer=$(sipbmp3-get-config mixer) 9 5 channel=$(sipbmp3-get-config channel) 10 6 11 result=$(amixer set $mixer toggle) 12 echo "$result" 13 volstat=$(echo $result | grep "$channel" \ 14 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)' 15 ) 7 amixer set $mixer toggle 16 8 17 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null 9 volume-zephyr -
gutenbach/debian/lib/volume-set
r28836c2 r9f0c46e 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 class=$(sipbmp3-get-config zephyr-class)4 host=$(sipbmp3-get-config host)5 queue=$(sipbmp3-get-config queue)6 instance="$queue-volume@$host"7 3 8 4 mixer=$(sipbmp3-get-config mixer) … … 12 8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)' 13 9 14 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume to $(volume-get)" > /dev/null 10 volume-zephyr
Note: See TracChangeset
for help on using the changeset viewer.