The Computer Oracle

Synergy Key Mapping

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Question
01:29 Accepted answer (Score 17)
02:40 Answer 2 (Score 41)
03:43 Answer 3 (Score 11)
04:18 Answer 4 (Score 9)
05:05 Thank you

--

Full question
https://superuser.com/questions/90223/sy...

Question links:
[synergy configuration]: http://synergy2.sourceforge.net/configur...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #ubuntu #keymap #synergy

#avk47



ANSWER 1

Score 41


For what it's worth, I finally took the time to figure out my Synergy mapping setup.

Linux server (desktop), OS X client (macbook). I wanted the following:

  • Ctrl on desktop -> Ctrl on macbook
  • WinKey on desktop -> Command/⌘ on macbook
  • Alt on desktop -> Alt/Option on macbook

This allows for the same keyboard mappings that my Hackintosh desktop keyboard uses, so keyboard shortcuts like copy/paste are still different between Linux and OS X, but I'm okay with that.

I used the following config:

section: screens
    desktop:
          # Linux server, no mapping
    batbook:
        # OS X client
        ctrl = ctrl
        alt = meta
        super = alt
        # meta = ??  # no idea where this shows up on the client end
end



ACCEPTED ANSWER

Score 17


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.




ANSWER 3

Score 11


I have a mac full size keyboard plugged into my PC which is synergy server.

When connected to mac client (osX mountain lion), I've switched ctrl and commmand keys so that ctrl-c copies regardless of machine.

This is done in the synergy gui by double clicking the client and setting:

ctrl: Meta meta: ctrl

I hope this helps!




ANSWER 4

Score 9


As a PC user wanting to connect to OS X, you may find the following useful:

shift = shift
ctrl = meta
alt = ctrl
meta = super
super = alt

This will get you a setup where your usual cut / copy / paste will do what you want and the other keys will be available.

Mapping (Windows to Mac):

<Ctrl>   -> ⌘ (command) 
<WinKey> -> ⌥ (option / alt)
<Alt>    -> ⌃  (control) 

Notes:

  • Using Synergy v1.8.8

  • Don't forget to fix your registry if you have disabled the windows key. The On-Screen Keyboard is great for checking this.




ANSWER 5

Score 5


If you're used to a PC keyboard and want to control your Mac remotely without changing your setup, you map the remote Macintosh computer's keyboard configuration in Synergy with the following:

Shift -> Shift

Ctrl -> Meta

Alt -> Alt

Meta -> Ctrl

Super -> Super