When I hit Win+L on either of my machines I'd ideally like to be able to lock both client and server What happens though is no matter which screen I hit the key combination... it locks the server.

I'm guessing the OS is trapping the key sequence before it can get passed to the app to manage, so I'm happy to use a different key sequence as long as the result will be the same

Synergy 1.4.2 64 bit Beta

  • Not the solution you're looking for, but a shortcut with the following target will give you a clickable link to lock whatever system it's run on: %windir%\system32\rundll32.exe user32.dll,LockWorkStation I keep a copy in the Quick Launch Bar of any machines I expect to access remotely.
    – Iszi
    Apr 5, 2011 at 19:47
  • @lszi: rundll32 should not be used for that.
    – user1686
    Apr 6, 2011 at 12:00

3 Answers 3


You want to do this in the options section.

You can define certain keypresses in there and how they get propogated out to the individual clients.

The manual tells you how to do it Look for the keystroke commands.

  • thanks Matt. it's pretty unclear and painful to do and, as I was having a bunch of other issues with it, i gave up and switched to InputDirector... PC only (and probably less capable) but easier out of the box Apr 6, 2011 at 15:53

There are a couple of bugs listed in the tracker that relate to sending Win+L to a client system. I haven't gotten it to work on my system either.

Feature #3154 - Lock both screens when Win+L is pressed - Synergy

This is how it should work. In your config file under "section: options", you should be able to add the following:

keystroke(Control+Alt+l) = keystroke(super+l,*)

That tells synergy to send Super (Win) + L to all clients and the server whenever you hit CtrlAltL. I don't think there is a way to intercept WinL (SuperL) on the local system.

  • Unfortunately, as the poster commented on the synergy bugtracker, this approach only works for machines other than the host.
    – Fopedush
    Jul 29, 2014 at 17:27

(Should work for most Gnome 3 environments, only tested against Fedora Core 21 Gnome 3)

The following work-around will allow you to hold down Control+Alt, then press k followed by l to lock the client then server.

Modify keyboard shortcut in Gnome for locking the screen from the default super+l, to Control+Alt+l. Do this on both the server and client. You can try to keep Super+l as the lock shortcut if you like, but I encountered buggy behavior with the Super key and opted to use Control+Alt+ instead.

Add the following line to the options section of your synergy.conf file

 keystroke(Control+Alt+k) = keystroke(Control+Alt+l,<client>)

Restart synergy and test that pressing Control+Alt+k then l, locks the synergy client and then the synergy server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.