SHARE
TWEET

Untitled

a guest Apr 14th, 2012 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. CUR_OUTPUT=$(amixer cget numid=3 | tail -n1 | sed -e "s/[^[0-9]]*//g")
  4.  
  5. NEW_OUTPUT=$(zenity --list --title="Choose audio output (currently $CUR_OUTPUT)" \
  6.   --column="Setting" --column="Description" \
  7.   0 "Auto" \
  8.   1 "Audio jack" \
  9.   2 "HDMI passthrough")
  10. RET=$?
  11.  
  12. if [ $RET -eq 0 ]; then
  13.   amixer cset numid=3 $NEW_OUTPUT
  14. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top