source: gutenbach/debian/lib/volume-is-muted @ 2e8b589

debianmacno-cupsnodebathenaweb
Last change on this file since 2e8b589 was 2e8b589, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Updated paths and filenames to the correct values for the gutenbach package.

  • Property mode set to 100755
File size: 339 bytes
Line 
1#!/bin/sh
2PATH="$(dirname $0):$PATH"
3
4mixer=$(gutenbach-get-config mixer)
5channel=$(gutenbach-get-config channel)
6
7volstat=$(amixer get $mixer | grep "$channel" \
8 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)'
9)
10
11case "$volstat" in
12    on)  result=unmuted;;
13    off) result=muted;;
14    *)   result=unknown;;
15esac
16
17echo $result
Note: See TracBrowser for help on using the repository browser.