10

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

3 Answers3

6

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.

Majenko
  • 32,428
  • 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 – Offbeatmammal Apr 06 '11 at 15:53
  • The link is not available now. Is there any new manual page? – luochen1990 Oct 18 '22 at 09:33
6

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.

slhck
  • 228,104
Dan
  • 61
  • Unfortunately, as the poster commented on the synergy bugtracker, this approach only works for machines other than the host. – Fopedush Jul 29 '14 at 17:27
  • Seem not works today, keystroke(Control+Alt+l) = keystroke(super+l,*) will becomes keystroke(Control+Alt+l) = keystroke(l,*) automatically when Synergy startup. My version is Synergy 1.14.5 on Linux – luochen1990 Oct 20 '22 at 06:10
3

(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.

Kirk
  • 31