Skip to content

Instantly share code, notes, and snippets.

@RushOnline
Created August 20, 2018 19:48
Show Gist options
  • Save RushOnline/096d798804fb48d1f3077aaa166443f5 to your computer and use it in GitHub Desktop.
Save RushOnline/096d798804fb48d1f3077aaa166443f5 to your computer and use it in GitHub Desktop.
Switch audio stream to bluetooth headphones/headset on connection
diff --git a/pulse/default.pa b/pulse/default.pa
index 9ebe05e..e95f423 100644
--- a/pulse/default.pa
+++ b/pulse/default.pa
@@ -30,7 +30,8 @@
### Automatically restore the volume of streams and devices
load-module module-device-restore
-load-module module-stream-restore
+load-module module-stream-restore restore_device=false
+load-module module-switch-on-connect
load-module module-card-restore
### Automatically augment property information from .desktop files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment