diff --git a/scripts/auto_connect_gamepad b/scripts/auto_connect_gamepad index 6ff45b7..d373281 100755 --- a/scripts/auto_connect_gamepad +++ b/scripts/auto_connect_gamepad @@ -1,11 +1,11 @@ #!/bin/sh list_paired_controllers() { - bluetoothctl devices Paired | grep -i 'controller' | cut -d' ' -f2 + bluetoothctl devices Paired | grep 'Controller' | cut -d' ' -f2 } count_connected_controllers() { - bluetoothctl devices Connected | grep -i 'controller' | wc -l + bluetoothctl devices Connected | grep 'Controller' | wc -l } try_to_connect_to_all_controllers() {