JSubelj / g910-gkey-macro-support

GKey support for Logitech G910 Keyboard on Linux
GNU General Public License v3.0
99 stars 29 forks source link

[Issue]typeout in german keyboard layout #58

Closed Torpedro1978 closed 1 year ago

Torpedro1978 commented 1 year ago

Describe the bug i want to use a typeout to output my email address, the problem is: I have no way of entering an @ character.

Well the issue is already mentioned inside the example file itself: only en, fr and si keyboard mappings are currently supported But what is the solution to get the correct key inside this file! Or even better: Support all keyboards! Why not just output the UTF character?

To Reproduce Steps to reproduce the behavior: I have german keyboard selected. With any editor open the file /etc/g910-gkeys/config.json and add (@ = AltGr + q) "__comment" : "following hotkey types are supported: nothing, typeout, shortcut; only en, fr and si keyboard mappings are currently supported", "keyboard_mapping": "si", "g1": { "hotkey_type": "typeout", "do": "user@test.com" }, Then i save this file.

Expected behavior When i press G1 it should print user@test.com

But in reality it prints („ instead of @) user„test.com This is the german representation of AltGr+V, called "Anführungszeichen unten"

I then tried to work around this issue, installed SI keyboard layout and entered the \ from the sI Keyboard - here it is in the AltGr + v. I thougt i just interchange this and i'm done! Wrong! When i try to enter this @„ in my file with SI Leyboard active i get even stranger:

in SI : @„ <- it looks good in DE: „ſ <- switching to de keyboard PANIC

O i have now way of telling the software that i want a german @ singn typed out!

Screenshots If applicable, add screenshots to help explain your problem.

Additional info

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

suabo commented 1 year ago

I added support for german keyboard layout. Here is the Link to the pull request.

You have to change the layout after installing to de in your config file /etc/g910-gkeys/config.json