Changeset 04a6a66 for remctl


Ignore:
Timestamp:
Aug 16, 2010, 10:28:20 PM (14 years ago)
Author:
Kyle Brogle <broglek@…>
Branches:
master, debian, mac, no-cups
Children:
3ee56cf
Parents:
600e713
git-author:
Kyle Brogle <broglek@…> (08/16/10 22:28:20)
git-committer:
Kyle Brogle <broglek@…> (08/16/10 22:28:20)
Message:

[Trac #19] Changed remctl scripts to output volume as a percentage and in dB

Location:
remctl/lib/gutenbach
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • remctl/lib/gutenbach/volume-get

    r9c0279e r04a6a66  
    55channel=$(/usr/lib/gutenbach/gutenbach-get-config channel)
    66
    7 amixer get $mixer | grep "$channel" \
    8  | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
     7amixer get $mixer | grep "^  $channel" | perl -lpe "s/$channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g"
  • remctl/lib/gutenbach/volume-set

    r9c0279e r04a6a66  
    55channel=$(/usr/lib/gutenbach/gutenbach-get-config channel)
    66
    7 amixer set $mixer "$2" | grep "$channel" \
    8  | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
     7amixer set $mixer "$2" | grep "^  $channel" | perl -lpe "s/  $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g"
    98
    109volume-zephyr
Note: See TracChangeset for help on using the changeset viewer.