Skip to content

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.

License

Notifications You must be signed in to change notification settings

daboynb/linux_bluetooth_unlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

If you wanna help me

Buy Me A Coffee

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.

before

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.

after

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages