-
Notifications
You must be signed in to change notification settings - Fork 311
[Feature Request] Strengthen cooperation with Synergy #15
Comments
This would be fantastic!! I have been trying to get around this my self. |
@tekezo, obviously this isn't possible if you are using Synergy to access a different OS, but if the other end is also OS X, try checking out Teleport. I use that regularly and I've never noticed any weird problems with the mappings (but I don't have very many advanced ones enabled). |
Thanks for the information. |
I'm running into this too. I have my Mac as a synergy server, with a Linux box as a synergy client. I want to have remapping take place on the Mac only, but I want to be able to create exclusions so that remapping does not occur when I move over to the Linux box via synergy. I tried to create an appdef for synergy, but that didn't seem to have any affect. Has anyone figured out how to get this to work? |
Another thing is when using a windows as the synergy server, the key mapping defined in karabiner is not effective in the client on a mac book. |
@paulhybryant Karabiner modifies input events in the keyboard driver. |
I have made a profile, default and inactive to resolve this issue. Would be nice to allow automatic profile switching based on an external trigger. Looks like Synergy does have a plugin model to support events. |
It's great! |
@mooreaa can you elaborate on what you mean by making a profile? |
Karabiner allows you to set up different profiles which you can select from the menubar. If you go into Karabiner settings, click on the MenuBar tab, you can add a new SettingList. I have my default profile with all the settings I like, an an Inactive setting where I have disabled all the functions of Karabiner. When I switch monitors, I switch profiles which essentially set Karabiner to a disabled state so it doesn't interfere. It would be nice to automatically trigger this profile change when screens change. Unfortunately, the plugin model seems to only be supported on a very old version of Synergy and from Windows only. |
I don't know how to detect screens change. |
Perhaps https://github.com/nbolton from Synergy project may be able to create some global message you can listen out for when it switches between Windows so Karabiner can toggle it's features on/off ? |
Yes. |
Actually, I think it would be more appropriate if Synergy provided a SDK of some sort so other programs can listen in for to know when screens have been switched. Karabiner would be able to toggle whenever the event occurs. |
There is a workaround that writes a script to tail synergy log , |
in case anyone else wants to do this via a script, this will work. tail -f /usr/local/var/log/synergy.log | awk '/leaving screen/{system("/Applications/Karabiner.app/Contents/Library/bin/karabiner select 0")} /entering screen/ {system("/Applications/Karabiner.app/Contents/Library/bin/karabiner select 1")}' & |
OK, so my config is a Mac and a Windows PC. The Mac is the Karabiner 'Server' and the PC is the client. On the Mac I've set up two profiles. Default Profile is the one on which I've enabled the settings I want for the Mac and the second profile ("PCMode") has settings for when I've moved the mouse into the PC screen area. All is great now and I've got my keyboards working really well with the Synergy and Karabiner combo. I used the example tail command above (thank you plessbd!) but tweaking it by swapping around the "select 0" and "select 1". |
@tekezo Hi! I am using Synergy with a Windows machine as server and my Mac as client. But, when I open the Karabiner Event Viewer, I actually see the events from synergy CTRL + C from Mac: CTRL + C from Synergy: As you can see, the events from Synergy do not contain the "FlagsChanged" events, though in the KeyDown/KeyUp events the flags are correclty set. Shouldn't this information be enough to modify the events?? |
Now that karabiner is obsolete and I've switched to Karabiner-Elements, here's my workaround for Synergy if anybody happens to stumble onto this thread. Get JQ - quick 1 minute download
Change variables as needed. Then you just call that script with @plessbd script:
PROFIT! |
Karabiner Elements now supports switching profiles via CLI, e.g.
I reported these to Synergy support. I'll see what they say. |
It's 2020 and I'm using Barrier instead of Synergy, and here's how I integrate it with Karabiner-Elements using Hammerspoon: https://gist.github.com/knu/8b3b784100bae2f8088ff09afc7c451b |
This was amazing. Thank you! |
Add an option that KeyRemap4MacBook stops modifying key events
when Synergy is running on Mac OS X and the cursor goes to another machine.
The text was updated successfully, but these errors were encountered: