Bluetooth Screen Control - Turn off your screen when your Bluetooth device disconnects
- 🔍 Auto-detection - Automatically finds connected Bluetooth audio devices
- 📴 Screen OFF - Turns off screen when device disconnects
- 🌐 Web Interface - Control from any device on your network
- 📱 Mobile Friendly - Access from phone or tablet
- ⚡ No setup needed - Just run and go
-
Install dependencies:
pip install -r requirements.txt
-
Run the web server:
python app.py
-
Open in browser:
- Local: http://127.0.0.1:5000
- Network: http://YOUR_IP:5000 (access from phone/tablet)
python main/bluelock_simple.pyOr double-click run.bat
Access BlueLock from any device on your network:
- Run
python app.pyon your Windows PC - Open the URL shown in terminal on any device
- Select your Bluetooth device
- Click "Start Monitoring"
Features:
- View all Bluetooth devices
- Start/Stop monitoring
- See connection status in real-time
- Manual screen off button
- Windows 10/11
- Python 3.8+
- Bluetooth audio device (headphones, earbuds, etc.)
Bluesss/
├── app.py # Flask web server
├── main/
│ └── bluelock_simple.py # Command line version
├── templates/
│ └── index.html # Web interface
├── requirements.txt
├── run.bat # Quick launcher
└── .github/
└── workflows/
└── build.yml # GitHub Actions CI/CD
- Detects connected Bluetooth audio devices
- Monitors connection status every 3 seconds
- When device disconnects → Screen turns OFF
- Move mouse or press key → Screen wakes up
The project includes CI/CD that:
- ✅ Tests the code on every push
- 📦 Builds a Windows executable
- 🚀 Creates releases automatically
MIT License