teleport icon indicating copy to clipboard operation
teleport copied to clipboard

Hotkey?

Open sdondley opened this issue 2 years ago • 3 comments

Feature request

Very nice interface, but I really need a hotkey feature to quickly switch between devices. I suppose. Any way I might hack this if this isn't on the roadmap?

I want to avoid using the mouse.

Makes it much faster to switch between applications on Machine A and Machine B.

What alternatives to the feature have been considered

I've used other KVM virtual software but so far they are very buggy and/or crash my client machine.

sdondley avatar Mar 09 '22 22:03 sdondley

I'm not 100% sure but there may be some hotkey support already. I don't use hotkeys with Teleport but have seen people mention some key combos.

I will happily review a PR adding support for this and so long as it doesn't break existing functionality I am willing to merge.

johndbritton avatar Mar 09 '22 22:03 johndbritton

Thanks for getting back. I maybe be able to hack together a solution (though not an ideal one) using some simple AppleScript which allows you to do a "virtual click" on the screen given a pair of coordinates. Before I start digging into this, can you tell me offhand if the client monitor is "seen" by the server as an extension of the desktop?

sdondley avatar Mar 09 '22 22:03 sdondley

Ok, just did a crude test with applescript. The answer is yes, I can click on the client screen with something like:

#!/usr/bin/osascript

tell application "System Events"
    do shell script "cliclick dc:6000,130"
end tell

So all I need is a hotkey to trigger a little script to capture the last known mouse positions and then move to it when activated.

sdondley avatar Mar 09 '22 23:03 sdondley