You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env sh |
|
audiodevice() { |
|
amixer sget "Earpiece" | grep -qE '\[on\]' && echo Earpiece && return |
|
amixer sget "Headphone" | grep -qE '\[on\]' && echo Headphone && return |
|
amixer sget "Line Out" | grep -qE '\[on\]' && echo Line Out && return |
|
echo "None" |
|
} |
|
|
|
audiodevice
|
|
|