Install bluemon by entering the following commands in the terminal:
sudo apt update sudo apt install bluemon
Description:
Activate or deactivate programs based on Bluetooth link quality
BlueMon monitors the quality of the link to a Bluetooth device and can start or stop programs when the threshold drops below a certain value. This can be used to perform actions like locking the terminal when you walk away from it. . Bluemon uses the DBus system bus to alert other applications to the presence of Bluetooth devices. A user binary can then start or stop programs when such signals are received.
Homepage: http://www.matthew.ath.cx/projects/bluemon/
Version: 1.4-7
Section: universe/net