Mac and Windows layouts switched for you

Detects which machine the KVM just handed the keyboard to and switches the layout to match.

v2.6.0 · 7 August 2026

What happens on a handover in about one second.

A KVM hands the keyboard over without anything unplugging, which is exactly why the usual tools miss it.

  1. The KVM moves the receiver

    The Bolt receiver now belongs to the PC. No device unplugs, so no ordinary change event exists, and the keyboard stays in macOS mode: Command acts as Alt.

  2. logiswitch sees the device arrive

    It fires on arrival, the event Logi Options+ ignores, because Options+ only corrects the layout once, when its agent starts.

  3. One HID++ write, 326 ms

    setHostPlatform goes back along the same wire to the keyboard itself, so the keycaps' legends match the machine that now has focus.

326 ms

for a platform switch, measured

1.1 s

to correct an Easy-Switch return (MX Keys S, Bolt receiver)

~45 ms

of CPU per 60 s at idle, measured

One keyboard, two computers, one switcher.
One keyboard, two computers, one switcher.
The handover: no unplug, no change event, so the switcher listens for arrival instead.
The handover: no unplug, no change event, so the switcher listens for arrival instead.
What the switcher logs when it acts.
What the switcher logs when it acts.

Why Options+ alone does not fix it and what does.

CapabilityLogi Options+Karabiner-ElementsSolaarlogiswitch
Switches the keyboard's real layoutyesno — remaps keysyesyes
Reacts to a KVM / host changenon/amanualyes, automatically
Windowsyesnonoyes
macOSyesyesnoyes
Runs headless, no accountnoyesyesyes
Idle CPUbackground serviceevent tapdaemon~45 ms / 60 s

Questions

Does it fight Logi Options+?

No — it writes the same value Options+ would want, on the event Options+ ignores. The two agree rather than compete. The coexistence table above is measured, not assumed; the method and captured frames are in the repo's PROTOCOL.md.

What about Linux?

Not yet. Solaar already covers Linux thoroughly; logiswitch exists because the problem lives on Windows and macOS, where nothing else fires on a KVM handover.

Which keyboards does it support?

Logitech MX Keys and MX Keys S on Bolt or Unifying receivers — keyboards that carry their OS layout in firmware and switch it over the wire.

Can I see it decide?

Yes. Every switch is logged, and the terminal capture above is what a handover looks like in real time.

The KVM hands the keyboard over, and the layout follows it.

No hotkey to remember, and no first line typed in the wrong layout. It watches for the handover and sets the layout to match the machine that just took over.

Get it on GitHub

Free · MIT · Windows and macOS

Layout Auto Switcher

the instant a KVM hands the keyboard over