[atreus] Re: Umlauts and Layers

  • From: Phil Hagelberg <phil@xxxxxxxxxx>
  • To: atreus@xxxxxxxxxxxxx
  • Date: Tue, 09 Feb 2016 12:05:51 +0700


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.

Unfortunately this is a bit tricky. The USB spec has no way to do this,
so as Chris said you are stuck with OS-specific hacks.

I would recommend using the TMK firmware for this; it makes it a bit
easier to write macros you need for this kind of thing. It is more
complicated than the default atreus-firmware codebase but it has more
features:

  https://github.com/technomancy/tmk_keyboard/tree/atreus/keyboard/atreus

Details about non-USB-spec keys here:

  
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#input-special-charactors-other-than-ascii-like-c%C3%A9dille-%C3%87

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.

This is another feature that is a lot easier to implement with the TMK
firmware. Unfortunately the fn stuff in the default codebase is kind of
special-cased, and not properly generalized to allow it to work with
more than one fn layer.

I am seriously considering changing it so that using TMK is the
recommendation for all new users because it does a better job at stuff
like this. If you get a chance to try it out, I would be interested in
your feedback.

thanks,
Phil

Attachment: signature.asc
Description: PGP signature

Other related posts: