π Language: English | TΓΌrkΓ§e
A small Linux desktop app that drives a cheap Bluetooth LE LED strip
(LEDBLE- / Triones family) from your PC: it follows the screen color,
reacts to system audio, or blends both. No cloud, no accounts, no paid APIs.
Built for the common unbranded BLE RGB strips sold as "LEDBLE-XXXX",
"Triones", "Magic Blue", "Happy Lighting", etc. (GATT characteristic
0000ffe1-0000-1000-8000-00805f9b34fb).
- SES mode β audio-reactive (FFT bands β RGB, beat envelope).
- EKRAN mode β screen color (X11 capture, center crop).
- SES + EKRAN (hybrid) β screen color with audio-driven brightness pulse.
- Turkish / English interface with an in-app language switch (auto-detected on first run).
- System tray (Ayatana AppIndicator), small ~440Γ392 window.
- Auto-start in SES mode on login (optional, toggle in UI).
- Brightness / sensitivity sliders, persisted.
- Red connection test (verify hardware without audio).
- Diagnostics report + rotating log.
- Reconnect with backoff; handles stale bluez connections.
Power on : 7E FF 04 01 FF FF FF FF EF
RGB : 7E FF 05 03 R G B FF EF
Char UUID: 0000ffe1-0000-1000-8000-00805f9b34fb
Scan name: LEDBLE-XXXXXX (set your strip's name in the UI: β― β Audio output / screen settings)
- Linux (X11): full β audio + screen sync, tray icon, autostart. Wayland: audio only (screen capture needs X11). A tray needs a StatusNotifierItem host: GNOME has one only with its AppIndicator extension.
- Windows: BLE control, red test and screen sync are implemented; audio capture is not (Linux-only). Tray (pystray, optional) and autostart (per-user Run key) come from desktop-lifecycle; lightly tested.
- macOS: BLE control, red test and screen sync are implemented; audio capture is not (that would need BlackHole plus a capture backend that does not exist yet). Tray (pystray, optional) and autostart (LaunchAgent) come from desktop-lifecycle; lightly tested.
Non-Linux support is young and lightly tested β bug reports are welcome.
- Linux (X11 session for screen capture; audio via a PulseAudio/PipeWire monitor source)
- Windows / macOS: Python 3.11+, Bluetooth adapter, screen capture permissions
- Python 3.11+
- System:
python3-tk(GUI),python3-gi+ GTK3 (tray, optional),pulseaudio-utils(Linux audio),bluez(Linux Bluetooth) - Bluetooth adapter + a LEDBLE/Triones strip
desktop-lifecycle(installed automatically; it owns the tray, the single-instance lock, the menu entry and autostart)
# extract the archive, then:
bash KUR.shThe installer sets up a venv, installs bleak, mss, numpy,
desktop-lifecycle, the system
packages (python3-tk, python3-gi, GTK3, AppIndicator when available), a
menu entry and autostart. Missing optional pieces only produce a warning.
At login it starts hidden: the engine scans for the strip and runs the last mode, with no window on screen. Opening BLE LED Sync from the menu brings the window up; closing it hides it again. To stop the process, use β― β Quit completely.
Any platform (development install):
python3 -m pip install . # installs the `ble-led-sync` command ble-led-sync # or: python3 -m led_sync.app
Run manually from a checkout:
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt ./run.sh # shows window ./run.sh --background # start hidden: LED runs, no window
python3 -m unittest discover -s tests -v
55 unit tests (protocol, color, beat envelope, engine, desktop integration).
Cheap BLE LED controllers in this family usually accept unauthenticated
GATT writes from any client in radio range. This tool only controls devices
you own. See SECURITY.md.
docs/protocol-reversing.mdβ BLE protocol, packet format, security observations (useful for IoT / red-team research).docs/troubleshooting.mdβ device not found, Wayland, tray, hidden start, logs.SECURITY.mdβ responsible use and IoT security notes.CONTRIBUTING.mdβ dev setup and guidelines.CHANGELOG.mdβ what changed between versions.
This software is provided "as is", without warranty of any kind, express or implied. The author(s) shall not be liable for any direct, indirect, incidental, special, exemplary, or consequential damages arising from the use of this software. This tool is intended only for controlling devices you own. Unauthorized access to or control of devices you do not own is illegal and is the sole responsibility of the user. The author(s) bear no responsibility for malicious or unlawful use.
The window, the tray icon and the audio engine are this project's own work. The
unglamorous parts (single-instance lock, XDG paths, menu entry, autostart,
Wayland-aware tray detection, rotating logs) come from
desktop-lifecycle, a small
dependency-free library extracted from this application.
- Audio is read from the monitor source of your own output device; the microphone is never used.
- Screen mode reads your own virtual display; nothing is stored and nothing is uploaded.
- There is no account, no telemetry, no analytics and no network client other than the local Bluetooth connection to your strip.
- The diagnostics report masks Bluetooth addresses before you paste it into an issue, but it still contains file paths and operating system details. Read it before you share it.
Built by Emre CoΕkun.
MIT β see LICENSE. The licence covers the code, not the project name or icon,
and it grants no warranty. "LEDBLE" and "Triones" belong to their respective
owners; this project is not affiliated with them.