trustcrypto / OnlyKey-Firmware

The OnlyKey Firmware runs on the OnlyKey itself and provides the core functionality of OnlyKey.
https://docs.crp.to/firmware.html
212 stars 40 forks source link

Assume current keyboard layout of the operating system #99

Open eternaltyro opened 4 years ago

eternaltyro commented 4 years ago

I would like for OnlyKey to assume the current active keyboard layout of the operating system so I don't have to explicitly switch between layouts for OnlyKey to work. This would be a nice addition since I know many people who use alt-layouts (Dvorak, Colemak) to whom I want to recommend OnlyKey.

In fact, I was quite flummoxed when the initial instructions were output in quite a weird format (because I had Dvorak setup) when I tried setting it up first. It's encouraging that pull requests are beginning to come-in for alt-layouts, but auto-switching could help a lot in adoption.

eternaltyro commented 4 years ago

FWIW, I use setxkbmap dvorak and setxkbmap us to switch between layouts

onlykey commented 4 years ago

@eternaltyro This is possible, it would require an agent to run on the computer thought to inform the OnlyKey of what keyboard profile is in use.