ruundii / bthidhub

Bluetooth HID hub
MIT License
309 stars 50 forks source link

Change Keyboard Layout #41

Closed Aaroneisele55 closed 1 year ago

Aaroneisele55 commented 2 years ago

Hello, Is it possible to change the layout of the keyboard? I have a keyboard wich has the "physical" (letters on the keys) layout of "qwertz" (a german keyboard), and it gets recognized by my echo show 8 and my laptop as a "qwerty" (english) keyboard, and i want to change it to qwertz, as i currently must google every time i want to input a special character (e.g. the german Ä, Ü or Ö). How do i change this in bthidhub, as my echo show 8 has no option to change the layout?

Dreamsorcerer commented 2 years ago

It's going to be a lot easier to change the layout in your OS. But, if you want to try, you'll have to look at the included message filters (e.g. https://github.com/ruundii/bthidhub/blob/master/hid_message_filter.py) and switch the codes around in there.

Aaroneisele55 commented 2 years ago

How should i change them? Where do i find the code for my german qwertz keyboard? Unfortunately, my Host device is a echo show 8, where i can‘t change the Layout on OS level.

Dreamsorcerer commented 2 years ago

Just add a print statement and figure it out by trial and error.