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 bluetoothArch Linux:
pacman -S bluez bluez-utils
systemctl enable bluetooth.servicepip install btproxipy --userEdit ~/.config/btproxipy/btproxipy.ini to your needs.
systemctl --user enable btproxipy
systemctl --user start btproxipy