This project is used to control computer's up, down, left, and right, and volume buttons on my phone. If you want to know the development process, you can read the article 不想離開沙發,只好自己寫一個電腦遙控器了.
Grab the latest binary from the Releases page:
- macOS (Apple Silicon):
tv-robot-macos-aarch64 - Windows (x86_64):
tv-robot-windows-x86_64.exe
chmod +x tv-robot-macos-aarch64
./tv-robot-macos-aarch64On first run, macOS may block the binary because it's unsigned. Go to System Settings → Privacy & Security and click "Open Anyway".
Double-click the .exe, or run it from PowerShell:
.\tv-robot-windows-x86_64.exeOn first run:
- SmartScreen warning: Windows will warn that the publisher is unknown. Click More info → Run anyway.
- Firewall prompt: Windows Defender Firewall will ask to allow inbound connections on port 3000. Click Allow (at least for private networks).
- If the QR code in the terminal looks garbled, switch to UTF-8 with
chcp 65001(Windows Terminal usually handles it without this).
Note: The sleep button is disabled on Windows — it's only supported on macOS.
cargo install --git https://github.com/LarryLuTW/TV-robotRequires the Rust toolchain. On Linux you'll also need libxdo-dev.
To upgrade all dependencies to their latest versions, run:
cargo upgrade -i && cargo update

