Skip to content

Instantly share code, notes, and snippets.

@ogabriel
Created January 30, 2025 21:27
Show Gist options
  • Select an option

  • Save ogabriel/5ca131216bfe03022304b429db5aa32a to your computer and use it in GitHub Desktop.

Select an option

Save ogabriel/5ca131216bfe03022304b429db5aa32a to your computer and use it in GitHub Desktop.
#!/bin/sh
# install pipewire
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo apt update
sudo apt install pipewire
sudo apt install libspa-0.2-bluetooth
sudo apt install pipewire-audio-client-libraries
# disable pulseaudio and enable pipewire
systemctl --user daemon-reload
systemctl --user --now disable pulseaudio.service pulseaudio.socket
systemctl --user mask pulseaudio
systemctl --user --now enable pipewire-media-session.service
# remove things not needed
sudo apt remove ofono
sudo apt remove ofono-phonesim
# copy configs
sudo cp ~/.dotfiles/bluetooth/bluez-hardware.conf /usr/share/spa2.2/bluez5/bluez-hardware.conf
sudo cp ~/.dotfiles/bluetooth/bluez-monitor.conf /usr/share/pipewire/media-session.d/bluez-monitor.conf
sudo cp ~/.dotfiles/bluetooth/99-qudelix.rules /etc/udev/rules.d/99-qudelix.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment