Skip to content

Instantly share code, notes, and snippets.

View gabrielmfern's full-sized avatar
🐇
speed

Gabriel Miranda gabrielmfern

🐇
speed
View GitHub Profile
@ruzickap
ruzickap / headphones.sh
Created March 22, 2018 09:48
Short script which will move all audio (in/out)put to the USB Headphones
#!/bin/bash -eux
HEADSET="alsa_output.usb-Logitech_Logitech_USB_Headset-00.analog-stereo"
HEADSET_MIC="alsa_input.usb-Logitech_Logitech_USB_Headset-00.analog-mono"
#pacmd list-sink-inputs
#pacmd list-source-outputs
pacmd stat | grep -E '^Default (sink|source) name'