Changeset 8ed9a02


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:
436e901
Parents:
9f011cf
git-author:
Alex Dehnert <adehnert@…> (10/11/09 03:25:45)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 00:50:25)
Message:

Refactor zephyrs and improve messages

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

Location:
gutenbach-remctl
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • gutenbach-remctl/volume-mute

    r9f011cf r8ed9a02  
    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-remctl/volume-set

    r9f011cf r8ed9a02  
    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.