Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created January 22, 2014 14:47
Show Gist options
  • Save sleexyz/8559955 to your computer and use it in GitHub Desktop.
Save sleexyz/8559955 to your computer and use it in GitHub Desktop.
Audio card switching lil script
#!/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