Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey? #118

Open
sdondley opened this issue Mar 9, 2022 · 3 comments
Open

Hotkey? #118

sdondley opened this issue Mar 9, 2022 · 3 comments
Labels
feature Accepted feature request help-wanted A great place to start for new contributors

Comments

@sdondley
Copy link

sdondley commented Mar 9, 2022

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 sdondley added the feature-request Unaccepted feature request label Mar 9, 2022
@johndbritton
Copy link
Owner

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 johndbritton added feature Accepted feature request help-wanted A great place to start for new contributors and removed feature-request Unaccepted feature request labels Mar 9, 2022
@sdondley
Copy link
Author

sdondley commented Mar 9, 2022

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
Copy link
Author

sdondley commented Mar 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Accepted feature request help-wanted A great place to start for new contributors
Projects
None yet
Development

No branches or pull requests

2 participants