Jump to content

Hello! 👋

These forums are now archived (read only).

Join us on Discord.

sticky edge and auto switch of monitor input


Recommended Posts

Hello,

Just two quick feature suggestions for future synergy release.

First one is sticky edge -- sometimes the menu bar auto hides itself so it would be helpful in this case to let the mouse stick to the edge instead of going over to another computer directly;

Second, someone probably has suggested this before, if two or more computers share the same monitor it would be cool to let the monitor automatically switch the input source to where the mouse is at (too lazy to click the monitor OSD). I know there are hotkeys out there but the mouse location itself should be enough to do the job. It would be even cooler to change the screen in a slide fashion (like the three finger swipe on a Mac when an app is full-screen mode) from one computer to the other.

Link to post
Share on other sites
  • 8 months later...
Haytham Elkhoja
On 2/15/2021 at 12:56 AM, Yulin said:

Second, someone probably has suggested this before, if two or more computers share the same monitor it would be cool to let the monitor automatically switch the input source to where the mouse is at (too lazy to click the monitor OSD). I know there are hotkeys out there but the mouse location itself should be enough to do the job. It would be even cooler to change the screen in a slide fashion (like the three finger swipe on a Mac when an app is full-screen mode) from one computer to the other.

So I use this script to make that happen on my external Dell Monitors

#!/bin/sh
/Applications/Synergy.app/Contents/MacOS/synergys -f --debug INFO  --config ~/synergy.conf  | while read line; do
  if echo $line | grep "switch from \"hek32\" to \"hek16\""; then
    echo mouse is back
    /usr/local/bin/ddcctl -d 2 -i 16
  fi
  if echo $line | grep "switch from \"hek16\" to \"hek32\""; then
    echo mouse just left
    /usr/local/bin/ddcctl -d 2 -i 17
  fi
done

Explanation:

  1. Run synergys and pipe it into a while read line
  2. It's important that synergys debugs to INFO
  3. We'll capture the line "switch from XXX to XXX" and run a command line when this happens.

Requirements:

  • ddctl tool (or something similar that switches monitors from command line
  • You need to stop using the Synergy GUI and run synergys from the command line
  • You need to replace hek32 and hek16 with the name of the different computers.

Credits:

Edited by Haytham Elkhoja
Link to post
Share on other sites
Haytham Elkhoja

Synergy should add support to run a script / or command line every time a switch happens, then running ddctl is simple. Please make it happen.

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...