Macos – Synergy Key Mapping

keymapmacossynergyUbuntu

I'm running a Synergy server on Ubuntu and a Synergy+ client on OSX. The server has a standard windows keyboard with shift, ctrl, windows, and alt keys. My MacBookPro has shift, fn, control, alt/option, and command keys.

When I press ctrlc, ctrlv, etc., the appropriate copy/paste action doesn't happen on the Mac, but it does in Ubuntu. If I'm controlling the mac, and press altc, altv, then I get the copy/paste action.

So I played around with key mapping in synergy.conf and found that the following allows me to do copy/paste with ctrlc/ctrlv:

section: screens
    godzilla:
    mbp.local:
        ctrl = alt
        alt = ctrl
end

Is this all that I need to do? Or are there other mappings that will help as well? The synergy configuration page refers to the following key mappings. What are the equivalent keys for each of these on the Windows keyboard and Mac keyboard? What is a meta or super key?

shift = {shift|ctrl|alt|meta|super|none}
ctrl = {shift|ctrl|alt|meta|super|none}
alt = {shift|ctrl|alt|meta|super|none}
meta = {shift|ctrl|alt|meta|super|none}
super = {shift|ctrl|alt|meta|super|none}

Thanks!

Best Answer

I was in a similar situation at one point, and I found a somewhat 'unique' way around it. Plug the keyboard directly into your Mac, and edit the keyboard preferences directly. After that, any non-Apple keyboard you attach will use those mappings.

  1. Plug in they keyboard.
  2. Open System Preferences (Apple Menu -> System Preferences).
  3. Enter "Keyboard" preferences (under Hardware).
  4. From the "Keyboard Mapping" (or similarly named) tab, change the key mapping as you see fit.

Synergy+ will use these key mappings, since it identifies as a virtual keyboard.

EDIT: Equivalent mappings, based on function:

Linux   │ Mac
────────┼─────────
Control │ Command
Alt     │ Control
Meta    │ Alt
Shift   │ Shift
Super   │ Super

Mac has the extra modifier key (kind of like the old EMACS-style keyboards, which had up to 5 modifier keys). Super is generally deprecated, so you shouldn't have to worry about remapping it.

Related Question