| Crates.io | betterdisplay-kvm |
| lib.rs | betterdisplay-kvm |
| version | 0.0.1 |
| created_at | 2025-09-22 13:59:36.77376+00 |
| updated_at | 2025-09-22 13:59:36.77376+00 |
| description | A KVM switch for BetterDisplay |
| homepage | |
| repository | https://github.com/Hacksore/betterdisplay-kvm |
| max_upload_size | |
| id | 1850079 |
| size | 409,481 |
A Rust-based KVM switch utility for BetterDisplay that utilizes the betterdisplaycli.
This works by using the BetterDisplay app and CLI to issues commands to your monitor when a configured USB devices is connected/disconnected via the betterdisplay-kvm rust program. This uses the DDC/CI protocols to send commands directly to your monitor.
With the single press of a button you can switch over to you gaming PC or macBook seamlessly.
Diagram

Because they don’t support high refresh rates without spending an ungodly amount of money.
# the USB device you'd like watch for
usb_device_id = "046d:c547"
# id that betterdisplaycli uses to configure input
system_one_input = 15
# id that betterdisplaycli uses to configure input
system_two_input = 18
# log level
log_level = "debug"
# if you use an lg monitor that doesnt follow the spec this might work if you enable it
ddc_alt = false
RUST_LOG=debug cargo watch -x run
Run the ./install.sh and it will install a LaunchAgent and start the program.
Run the ./uninstall.sh and it remove the program and clean everything up.