If you wanna help me
A script that monitors whether a Bluetooth device is connected or not. If the device is connected, all is okay; otherwise, the screen gets locked immediately until the device reconnects.
Tested only on Debian 12 gnome.
wget https://raw.githubusercontent.com/daboynb/linux_bluetooth_unlock/main/Btmanager.sh && chmod +x Btmanager.sh && ./Btmanager.sh
- The program started with the Bluetooth device connected.
- The program detected that the Bluetooth device got disconnected and locked the session.
- The program detected that the Bluetooth device got reconnected and unlocked the session.