Skip to content

Instantly share code, notes, and snippets.

View neiroc's full-sized avatar
🦥
Festina Lente

Enrico Marchelletta neiroc

🦥
Festina Lente
View GitHub Profile
@neiroc
neiroc / bt_headset_audio_autoswitch.md
Created October 11, 2024 13:01
LINUX - Switch your main audio output to your headset when bluetooth connects

Auto switch audio output when a new Bluetooth device connects

Depending on the distro or DE/WM you are running and which programs you are using to manage your audio you maybe run into the hassle of having to switch audio outputs each time you connect a bluetooth device (headset/speaker). You can in fact make pulseaudio to autoswitch when connection is established and not do it manually.

To accomplish this you just need to check a condition in the default.pa config file located in /etc/pulse/ directory on your install and add the following line load-module module-switch-on-connect like in the code snippet below:

...

### Automatically load driver modules for Bluetooth hardware
@neiroc
neiroc / .vimrc
Created October 11, 2024 13:01
VIM CONFIG
set expandtab
set tabstop=2
set shiftwidth=2
set noautoindent
set nosmartindent
set nowrap