btproxipy detects if a Bluetooth device is near by querying its RSSI value and executes commands when the device leaves or comes back.
This program needs bluetooth
to be installed.
Debian/Ubuntu:
sudo apt-get install bluetooth
Arch Linux:
pacman -S bluez bluez-utils
systemctl enable bluetooth.service
pip install btproxipy --user
Edit ~/.config/btproxipy/btproxipy.ini
to your needs.
systemctl --user enable btproxipy
systemctl --user start btproxipy