diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-01-20 12:31:13 -0500 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-01-20 12:37:11 -0500 |
| commit | 7cccd3a696d16c913795ce489145ca6e602a19ed (patch) | |
| tree | b895a19f750d9c30118ab31c5fd81b5a0df7ec59 | |
| parent | 80b7e1bba006299a3b6e82e667d21c29c477f1af (diff) | |
| download | home-7cccd3a696d16c913795ce489145ca6e602a19ed.tar.gz | |
modules/py3status: avoid bluetoothctl alias collision
| -rw-r--r-- | modules/py3status/config | 8 |
1 files 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 { |