scripts: fix auto_connect_gamepad

This commit is contained in:
Leonardo Eugênio 2024-07-01 10:26:37 -03:00
parent 03d852b612
commit 8d4dbf5d71

View file

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
list_paired_controllers() { list_paired_controllers() {
bluetoothctl devices Paired | grep -i 'controller' | cut -d' ' -f2 bluetoothctl devices Paired | grep 'Controller' | cut -d' ' -f2
} }
count_connected_controllers() { count_connected_controllers() {
bluetoothctl devices Connected | grep -i 'controller' | wc -l bluetoothctl devices Connected | grep 'Controller' | wc -l
} }
try_to_connect_to_all_controllers() { try_to_connect_to_all_controllers() {