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

File:
1 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"
Note: See TracChangeset for help on using the changeset viewer.