diff options
| -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 { |