https://github.com/daboynb/linux_bluetooth_unlock
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.
https://github.com/daboynb/linux_bluetooth_unlock
bash bluetooth linux lock unlock
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/daboynb/linux_bluetooth_unlock
- Owner: daboynb
- License: gpl-3.0
- Created: 2023-10-14T21:19:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-15T10:57:10.000Z (about 1 year ago)
- Last Synced: 2025-01-12T23:08:42.984Z (5 months ago)
- Topics: bash, bluetooth, linux, lock, unlock
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
# Images
# Before
- The program started with the Bluetooth device connected.
# After
- 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.
