Changeset 9f0c46e for gutenbach


Ignore:
Timestamp:
Jun 24, 2010, 1:11:23 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
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)
Message:

Refactor zephyrs and improve messages

Signed-off-by: Alex Dehnert <adehnert@…>

Location:
gutenbach/debian/lib
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/lib/volume-mute

    r28836c2 r9f0c46e  
    11#!/bin/sh
    22PATH="$(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"
    73
    84mixer=$(sipbmp3-get-config mixer)
    95channel=$(sipbmp3-get-config channel)
    106
    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 )
     7amixer set $mixer toggle
    168
    17 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null
     9volume-zephyr
  • gutenbach/debian/lib/volume-set

    r28836c2 r9f0c46e  
    11#!/bin/sh
    22PATH="$(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"
    73
    84mixer=$(sipbmp3-get-config mixer)
     
    128 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
    139
    14 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume to $(volume-get)" > /dev/null
     10volume-zephyr
Note: See TracChangeset for help on using the changeset viewer.