Locks the screen in Windows using the distance value (RSSI) of your Bluetooth device.
- Download the ZIP file using git clone or the link.
- Customize the values in the
main.go
file.
deviceMAC = "" // Bluetooth Device MAC ID
minRSSI int16 = -60 // Minimum RSSI tolerance value of the bluetooth device
timeout = 20 * time.Second // Timeout Time
adapter = bluetooth.DefaultAdapter // Bluetooth Receiver
- Take the windowless build.
go build -ldflags -H=windowsgui .
To add it to startup, use WIN+R
to open the run window and enter the command shell:startup
. Can copy the compiled bt-lock.exe
file to the startup folder. It will then run at startup.
In the tests I did, I found that it uses about 2.7mb of RAM and 0.2% to 1% CPU usage.