Changeset 3ee56cf for remctl/lib/gutenbach/volume-set
- Timestamp:
- Sep 6, 2010, 9:48:06 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- e01a3af
- Parents:
- 04a6a66
- git-author:
- Mats Ahlgren <mats@…> (09/06/10 21:48:06)
- git-committer:
- Mats Ahlgren <mats@…> (09/06/10 21:48:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remctl/lib/gutenbach/volume-set
r04a6a66 r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 4 # $1 is string "set" and is unused (passed in via remctl) 5 # $2 is the actual volume 3 6 4 7 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 8 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 9 7 amixer set $mixer "$2" | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g"10 amixer set $mixer -- "$2" | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g" 8 11 9 12 volume-zephyr
Note: See TracChangeset
for help on using the changeset viewer.