[atreus] Re: Umlauts and Layers

  • From: Chris Gerber <chris@xxxxxxxxxxx>
  • To: atreus@xxxxxxxxxxxxx
  • Date: Mon, 08 Feb 2016 19:04:40 +0000

1. How do I specify umlauts?
I can't help with this one, but may be able to help you find a way to see
what keycode another keyboard is sending. Then you could just assign the
appropriate keycode. What operating system are you on? I use OS X, and use
Karabiner's EventViewer to see what keycodes are being sent.

2. Is it possible to define more than one momentary layer (like the fn
layer)?
Yes, but it will take some work. The layer that is momentarily switched to
is hard-coded here
<https://github.com/technomancy/atreus-firmware/blob/master/layout_common.h#L33>.
You may want to look at some of the ideas that I'm exploring in pull
request #50 <https://github.com/technomancy/atreus-firmware/pull/50>.
As to how ["function", 2] works, take a look at the zero-indexed array
defined here
<https://github.com/technomancy/atreus-firmware/blob/master/layout_common.h#L14>.
You will see that this is a call to the C function, layer_jump(). That
function is hard-coded to jump to layer 2
<https://github.com/technomancy/atreus-firmware/blob/master/layout_common.h#L11>.
(The two 2's are actually unrelated.)
I haven't looked at the JSON layout much myself, so I don't have other
details for you.


On Mon, Feb 8, 2016 at 1:20 PM Alexander Baier <alexander.baier@xxxxxxxxxxx>
wrote:

[ I resend the following message because it was previously sent to the
  old mailing list, which is now down. ]




---------- Forwarded message ----------
From: Alexander Baier <alexander.baier@xxxxxxxxxxx>
To: atreus@xxxxxxxxxxxxx
Cc:
Date: Sun, 17 Jan 2016 12:07:24 +0100
Subject: Umlauts and Layers
Hi!

I bought the atreus a couple of month ago and assembled it with great
pleasure, but never got around to really using it until now.

As I have used a modified version of the Neo keyboard layout [1] over
the last couple of years, I would like to create a layout for the atreus
which is as close as possible to what I have been using.

I looked at the json layouts but did not really understand how to
achieve what I want to have.  These are my main questions:

1. How do I specify umlauts?  The C sources do not seem to have any
KEY_Ö or similar (at least I could not find any).  Thus I assumed that I
cannot use umlauts in a json layout definition either.

2. Is it possible to define more than one momentary layer (like the fn
layer)?  The standard layout defines the L2 as "sticky"(?), i.e. you
have to explicitly exit the layer by pressing a key.  I did not
understand how the ["function", 2] entry in the json files work.  Is
there documentation available that explains the json format in detail?
I would be happy to work through that.


Kind Regards!
--
Alexander Baier

[1] http://neo-layout.org/

Other related posts: