Skip to content

Instantly share code, notes, and snippets.

@yeroc
yeroc / usb-headset.sh
Last active March 10, 2017 18:05 — forked from ef4/usb-headset.sh
Automatically switch all PulseAudio streams to a USB headset
#!/bin/bash
# Adapted from Erik Johnson's script at
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/
#
# Updated by Edward Faulkner <ef@alum.mit.edu> to move existing
# streams and eliminate the extra fork script.
# You'll need to change these to point at your headset device. Get the device names by running
# 'pacmd dump'