On Ubuntu 18.04 and 20.04 I fixed this issue with simply
setxkbmap -option apple:badmap
This option doesn't work on Ubuntu 22.04.
Anybody solved this?
On Ubuntu 18.04 and 20.04 I fixed this issue with simply
setxkbmap -option apple:badmap
This option doesn't work on Ubuntu 22.04.
Anybody solved this?
I had the exact same problem and found a solution after much research:
Go to Ubuntu Software.
Install Input Remapper app.
Open the app.
On Device select your keyboard.
Click on New entry.
Click on Change Key (make sure it now shows Press key).
On your keyboard, press the key you want to replace (in my case "<" key).
Under Change Key button, write the name of key to replace with (in my case "less").
Click on New entry.
Click on Change Key (make sure it now shows Press key).
On your keyboard, press the key you want to replace (in my case "º" key).
Under Change Key button, write the name of key to replace with (in my case "masculine").
On Rename write a name for the preset and click on the green arrow.
Click on Apply.
Important! Click on Autoload.
Enjoy!
FYI I did code review. This is Python Daemon which hooks to file descriptor listens to keystrokes and replaces them in place. So basically your keyboard is relying on one Python process, which has multithreading but with GIL (global instance lock), although code is written using asyncio.
I will search for more advanced solution. Something like this but as eBPF :-)
P.S. Thank you soo much for this!
– Dušan Panić Dec 15 '22 at 18:39