Changeset 9f011cf


Ignore:
Timestamp:
Jun 24, 2010, 12:50:25 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
8ed9a02
Parents:
b531ddb
git-author:
root <root@…> (10/11/09 00:58:04)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 00:50:25)
Message:

Improve configuration and fine-tune zephyrs

Location:
gutenbach-remctl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gutenbach-remctl/volume-get

    r2249bb2 r9f011cf  
    22PATH="$(dirname $0):$PATH"
    33
     4mixer=$(sipbmp3-get-config mixer)
    45channel=$(sipbmp3-get-config channel)
    56
    6 amixer get $channel \
    7  | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
     7amixer get $mixer | grep "$channel" \
     8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
  • gutenbach-remctl/volume-mute

    rb531ddb r9f011cf  
    66instance="$queue-volume@$host"
    77
     8mixer=$(sipbmp3-get-config mixer)
    89channel=$(sipbmp3-get-config channel)
    910
    10 zwrite -c $class -i $instance -d -n -m "Toggling mute on $queue"
     11result=$(amixer set $mixer toggle)
     12echo "$result"
     13volstat=$(echo $result | grep "$channel" \
     14 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)'
     15)
    1116
    12 amixer set $channel toggle
     17zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null
  • gutenbach-remctl/volume-set

    rb531ddb r9f011cf  
    66instance="$queue-volume@$host"
    77
    8 channel=$(sipbmp3-get-config channel)
     8mixer=$(sipbmp3-get-config mixer)
     9channel="$(sipbmp3-get-config channel)"
    910
    10 amixer set $channel "$2" \
    11  | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
     11amixer set $mixer "$2" | grep "$channel" \
     12 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
    1213
    13 zwrite -c $class -i $instance -d -n -m "Setting volume to $(volume-get) on $queue"
     14zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume to $(volume-get)" > /dev/null
Note: See TracChangeset for help on using the changeset viewer.