Changeset 3ee56cf
- 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)
- Location:
- remctl/lib/gutenbach
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
remctl/lib/gutenbach/volume-down
r9c0279e r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 volume-set . $(( $(volume-get .) - 1 )) 3 4 python "$(dirname $0)/volume-helper.py" - 5 6 #volume-set . $(( $(volume-get .) - 1 )) -
remctl/lib/gutenbach/volume-get
r04a6a66 r3ee56cf 5 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 amixer get $mixer | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g"7 amixer get $mixer | grep "^ $channel" | perl -lpe "s/ $channel: Playback //g;s/\[off\]/muted/g;s/\[on\]//g" -
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 -
remctl/lib/gutenbach/volume-up
r9c0279e r3ee56cf 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 volume-set . $(( $(volume-get .) + 1 )) 3 4 python "$(dirname $0)/volume-helper.py" + 5 6 #volume-set . $(( $(volume-get .) + 1 ))
Note: See TracChangeset
for help on using the changeset viewer.