nickclyde / rofi-bluetooth

🔷 A script that generates a rofi menu that uses bluetoothctl to connect to bluetooth devices and display status info.
GNU General Public License v3.0
480 stars 51 forks source link

explicitly pass timeout to bluetoothctl to fix scanning #33

Open alyraffauf opened 4 months ago

alyraffauf commented 4 months ago

The behavior of bluetoothctl seems to have changed, so now you need to manually pass a timeout if you want new devices to be printed to STDOUT and discoverable by rofi-bluetooth. This PR removes sleep 5 in favor of passing the timeout directly as expected as expected by bluetoothctl. In other words, it unbreaks rofi-bluetooth's scanning feature.