04-21-2022, 05:08 PM
I also was not able to get the loadkeys thing working. I'm not familiar with writing keymaps so for now what I've done (this is only useful for sway/sxmo) is I've bound alt + number keys to wtype commands using bindsym. Here's what it looks like in my sway config:
bindsym Mod1+1 exec wtype '|'
bindsym Mod1+2 exec wtype '\\'
bindsym Mod1+5 exec wtype '~'
bindsym Mod1+6 exec wtype '`'
bindsym Mod1+7 exec wtype -k "Minus"
bindsym Mod1+8 exec wtype '='
bindsym Mod1+9 exec wtype '_'
bindsym Mod1+0 exec wtype '+'
This is not ideal but it does work and has effectively solved the problem for me for the moment. Since the Fn key now causes the numbers to act as F1-F10 you could probaly just change those bindings to bind F1-F10 to the symbols you want. I do think the userspace driver is the way forward if the symbols are not going to be mapped in the kernel driver, though. So I'm going to try to get that working.
bindsym Mod1+1 exec wtype '|'
bindsym Mod1+2 exec wtype '\\'
bindsym Mod1+5 exec wtype '~'
bindsym Mod1+6 exec wtype '`'
bindsym Mod1+7 exec wtype -k "Minus"
bindsym Mod1+8 exec wtype '='
bindsym Mod1+9 exec wtype '_'
bindsym Mod1+0 exec wtype '+'
This is not ideal but it does work and has effectively solved the problem for me for the moment. Since the Fn key now causes the numbers to act as F1-F10 you could probaly just change those bindings to bind F1-F10 to the symbols you want. I do think the userspace driver is the way forward if the symbols are not going to be mapped in the kernel driver, though. So I'm going to try to get that working.