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

Installation-specific default keymap #418

Open
vvolkgang opened this issue Nov 12, 2021 · 6 comments
Open

Installation-specific default keymap #418

vvolkgang opened this issue Nov 12, 2021 · 6 comments

Comments

@vvolkgang
Copy link

vvolkgang commented Nov 12, 2021

Lately I've been switching between Mac and PC frequently, I only use QWERTY so would appreciate if there was an option to detect the OS and automatically switch between Mac / PC versions of the default keymap.

If this is already implemented please explain how it should be activated, couldn't find anything related.

@kareltucek
Copy link
Collaborator

kareltucek commented Nov 12, 2021

This has been already discussed in UltimateHackingKeyboard/agent#1209 .

Currently you have two options:

  • set up a script on your machines as mentioned above. (Figuring out how to hook something onto connection of a specific device is up to you.)
  • set up an "init" keymap which will force you to pick one keymap or the other whenever you reconnect a keyboard. Not automatic, but will save confusion from having one of the keymaps as a default one.

@mondalaci
Copy link
Member

Thanks for providing the correct answer, @kareltucek. Closing this issue, but feel free to follow up, guys.

@mondalaci
Copy link
Member

@vvolkgang Actually, I'm wondering if it'd be useful if Agent implemented the automatic keymap switch feature. For this to happen, you'd have to keep Agent running in the background all the time.

@vvolkgang
Copy link
Author

@vvolkgang Actually, I'm wondering if it'd be useful if Agent implemented the automatic keymap switch feature. For this to happen, you'd have to keep Agent running in the background all the time.

Was initially going to post this in Agent for that reason, it would be enough for my use case (I only switch between PC/Mac's I own and can install the agent).

@kareltucek
Copy link
Collaborator

kareltucek commented Nov 12, 2021

it would be enough for my use case

But would you feel running the Agent all the time in the background justified for that usecase? (Electron is quite a heavy thing after all.)

Actually, I'm wondering if it'd be useful if Agent implemented the automatic keymap switch feature.

Are you thinking about saving the configuration agent side or keyboard side? (Both have their pros and cons.)

@mondalaci
Copy link
Member

We'll be introducing features that will depend on Agent due to their implementation details, so running Agent in the background will be unavoidable for such features. Rewriting Agent in another language or platform is not practically feasible. It'd be possible to extract the relevant parts of Agent and create a separate service, but I don't think it's worth the effort unless users start complaining.

This feature wouldn't involve saving the configuration. Agent would send a switch keymap command upon connecting to a UHK.

@mondalaci mondalaci reopened this Nov 12, 2021
@mondalaci mondalaci changed the title Option to automatically change between Mac <-> PC keymap Installation-specific default keymap Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants