parent
e7032a4f7f
commit
3c1fbd9e8d
3 changed files with 22 additions and 12 deletions
@ -0,0 +1,9 @@ |
||||
#!/usr/bin/env sh |
||||
audiodevice() { |
||||
amixer sget "Earpiece" | grep -E '\[on\]' > /dev/null && echo Earpiece && return |
||||
amixer sget "Headphone" | grep -E '\[on\]' > /dev/null && echo Headphone && return |
||||
amixer sget "Line Out" | grep -E '\[on\]' > /dev/null && echo Line Out && return |
||||
echo "None" |
||||
} |
||||
|
||||
audiodevice |
Loading…
Reference in new issue