Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions config/wireplumber/wireplumber.conf.d/51-bluetooth-autoswitch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Automatically switch to Bluetooth audio devices when connected
# This configuration ensures Bluetooth audio devices become the default
# audio sink/source when they connect

monitor.bluez.rules = [
{
# Bluetooth output devices (headphones/speakers)
matches = [
{
device.api = "bluez5"
media.class = "Audio/Sink"
}
]
actions = {
update-props = {
priority.session = 2000 # Higher priority than internal audio (1000)
priority.driver = 2000
}
}
}
{
# Bluetooth input devices (microphones)
matches = [
{
device.api = "bluez5"
media.class = "Audio/Source"
}
]
actions = {
update-props = {
priority.session = 2000 # Higher priority than internal mic
priority.driver = 2000
}
}
}
]
11 changes: 11 additions & 0 deletions migrations/1759159162.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
echo "Enable automatic Bluetooth audio device switching"

# Ensure WirePlumber is installed
omarchy-pkg-add wireplumber

# Copy over bluetooth switch config
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
cp $OMARCHY_PATH/config/wireplumber/wireplumber.conf.d/51-bluetooth-autoswitch.conf ~/.config/wireplumber/wireplumber.conf.d/

# Restart to pickup new config
systemctl --user restart wireplumber