Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been at this problem for quite a while now and can't figure out how I am supposed to make it work.
Essentially what I want is to be able to type the swedish characters å, ä, ö on my US keyboard when holding CapsLock.
I've tried defining a second layer for these keys but then they are not considered valid characters. Using
deflocalkeys
with the appropiateevent.key
for åäö doesn't work as I am still on a US layout so it results in the corresponding US characters at those spots (namely [';).I then tried switching to a Swedish layout and defining the source according to what a swedish layout would look like. Additionally I defined the base layer according to the US layout my keyboard has and another layer that has the ['; keys switched with åäö. Unfortunately this had some weird results. When switched to the layer with caps I could type å and ö as I wanted but ä didn't work. I suspect this has something to do with the enter key looking different on ISO and ANSI layouts.
In the end I've resulted in setting the
xkbOption
grp
tocaps_toggle
to switch between the US and Swedish layouts with CapsLock. This is, however, not exactly what I want because I only want åäö when Caps is held and not toggling to that layout. I then thought if I could use Kanata to make it so that when releasing CapsLock it results in another CapsLock to switch back to US layout.Is this possible or should I resort to something like this which defines åäö using an AltGr modifer which I could maybe remap to CapsLock?
Beta Was this translation helpful? Give feedback.
All reactions