Created
January 22, 2014 14:47
-
-
Save sleexyz/8559955 to your computer and use it in GitHub Desktop.
Audio card switching lil script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
A="$HOME/.asoundrc" | |
B="$HOME/.asoundrc_old" | |
if [[ -e $A ]]; then | |
mv "$A" "$B" | |
echo "Switched to onboard soundcard" | |
else | |
mv "$B" "$A" | |
echo "Switched to external soundcard" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment