From 7cccd3a696d16c913795ce489145ca6e602a19ed Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Tue, 20 Jan 2026 12:31:13 -0500 Subject: modules/py3status: avoid bluetoothctl alias collision --- modules/py3status/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/py3status/config b/modules/py3status/config index c731fc4..3099ef8 100644 --- a/modules/py3status/config +++ b/modules/py3status/config @@ -62,15 +62,15 @@ bluetooth { bluetooth airpods { # bluetoothctl set-alias "airpods" format_device = "\?if=paired [\?if=alias=airpods [\?if=connected 󱡏|󱡐]]" - on_click 1 = "exec bluetoothctl connect \"$(bluetoothctl devices | grep airpods | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" - on_click 3 = "exec bluetoothctl disconnect \"$(bluetoothctl devices | grep airpods | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" + on_click 1 = "exec bluetoothctl connect \"$(bluetoothctl devices | grep ' airpods$' | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" + on_click 3 = "exec bluetoothctl disconnect \"$(bluetoothctl devices | grep ' airpods$' | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" } bluetooth headphones { # bluetoothctl set-alias "headphones" format_device = "\?if=paired [\?if=alias=headphones [\?if=connected 󰋋|󰟎]]" - on_click 1 = "exec bluetoothctl connect \"$(bluetoothctl devices | grep headphones | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" - on_click 3 = "exec bluetoothctl disconnect \"$(bluetoothctl devices | grep headphones | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" + on_click 1 = "exec bluetoothctl connect \"$(bluetoothctl devices | grep ' headphones$' | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" + on_click 3 = "exec bluetoothctl disconnect \"$(bluetoothctl devices | grep ' headphones$' | sed -E 's/Device ([^ ]+).*$/\1/g')\" && pkill -10 py3status" } volume master { -- cgit v1.2.3