Changeset 5dd3058 for gutenbach/debian
- Timestamp:
- Jun 24, 2010, 1:11:23 AM (14 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- 94a58ce
- Parents:
- 32b323f
- git-author:
- Alex Dehnert <adehnert@…> (10/10/09 22:35:29)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (06/24/10 01:11:23)
- Location:
- gutenbach/debian/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/volume-get
r737d88b r5dd3058 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 amixer get Headphone \ 3 4 channel=$(sipbmp3-get-config channel) 5 6 amixer get $channel \ 4 7 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)' -
gutenbach/debian/lib/volume-mute
rb1d66d4 r5dd3058 5 5 queue=$(sipbmp3-get-config queue) 6 6 instance="$queue-volume@$host" 7 8 channel=$(sipbmp3-get-config channel) 9 7 10 zwrite -c $class -i $instance -n -m "Toggling mute on $queue" 8 11 9 amixer set Headphonetoggle12 amixer set $channel toggle -
gutenbach/debian/lib/volume-set
rb1d66d4 r5dd3058 5 5 queue=$(sipbmp3-get-config queue) 6 6 instance="$queue-volume@$host" 7 zwrite -c $class -i $instance -n -m "Setting volume to $2 on $queue"8 7 9 amixer set Headphone "$2" \ 8 channel=$(sipbmp3-get-config channel) 9 10 amixer set $channel "$2" \ 10 11 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)' 12 13 zwrite -c $class -i $instance -n -m "Setting volume to $(volume-get) on $queue"
Note: See TracChangeset
for help on using the changeset viewer.