From 8d4dbf5d7190df8076d5dd15c87b5eacf84b5de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 1 Jul 2024 10:26:37 -0300 Subject: [PATCH] scripts: fix auto_connect_gamepad --- scripts/auto_connect_gamepad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {