Skip to content

sunaku/enthium

Repository files navigation

"Enthium: Engrammer meets Promethium" — Poster generated by Gemini.

Enthium — Engrammer meets Promethium

Enthium is a highly performant adaptation of the Engrammer and Hands Down Promethium keyboard layouts. It restores familiarity with Arno's Engram 2.0 layout (YOU on the left hand) and the Dvorak layout (HTNS on the right hand) while optimizing punctuation placement for programming in the spirit of Engrammer, featuring HJKL and ,; for Vim, -= for zooming, and ./ for filesystem paths.

  z y o u = q l d p x
w c i a e ; k h t n s f
  ' - , . / j m g b v
            r

Heatmap of this layout by Valorance, adapted from Oxeylyzer. Concept of this layout on a split, ortho-linear keyboard. Rendering of this layout on a row-staggered laptop keyboard. Rendering of this layout on my Glove80 keyboard. Photograph of this layout on my Glove80 keyboard.

Rationale

  • The primary same-finger bigrams UE (0.08%), OA (0.05%), and YI (0.03%) can be raked down vertically, minimizing their impact on typing flow and performance.

  • Pinky load is distributed by frequency: heavy letters W (1.77%) and F (2.14%) are close at hand on the home row's lateral pinky keys (CapsLock, Apostrophe); medium letters ' (0.47%) and V (1.09%) are on the lower row pinky keys; and light letters Z (0.09%) and X (0.02%) are on the upper row, which all together help reduce strain for short pinky fingers or those weakened by convention.

  • Apostrophe is away (on a different finger entirely) from YOU and I so that it can be typed without same-finger bigrams like You'd, I'd, He'd, They'd.

  • Comma, period, slash, and semicolon are arranged relatively to QWERTY for ease of adaptation, especially for navigation and application shortcuts.

  • Period and slash are clustered for ./ ../ relative filesystem paths and easy access to forward slash and question mark for Vim text search.

  • Comma and semicolon are associated for cycling f/F/t/T searches in Vim.

  • Minus and equals are associated for intuitive zooming in/out with Ctrl.

  • See my blog post for a deeper look into the design process of Enthium.

Performance

The keyboard layout community commonly recommends Pascal Getreuer's guide and ranking tables as a starting point for layout exploration, and you'll see that Enthium is statistically among the best layouts there.

Comparing with conventional layout rankings:

  • 0.02% LSBs — wins 🥇 first place; beats the entire table!
  • 0.55% SFBs — wins 🥈 second place; surpassed by Focal
  • 1.36% redirects — wins 🥇 first place; beats the entire table!
  • 0.17% scissors — fifth place; after ColemakDH, MTGAP, APTv3, Dvorak
  • 47.02% rolls — beats Focal, MTGAP, Graphite, Gallium, HandsDownNeu, Halmak
  • 3.31% pinky off — beats APTv3, Semimak, MTGAP, Dvorak, Recurva, Halmak, Engram

Comparing with thumb-letter layout rankings:

  • 0.02% LSBs — wins 🥇 first place; beats the entire table!
  • 0.55% SFBs — wins 🥈 second place; surpassed by Night
  • 1.36% redirects — wins 🥉 third place; after Vibranium, Nordrassil
  • 0.17% scissors — fourth place; after Maltron, Promethium, RSTHD
  • 47.02% rolls — fourth place; after Caster, Maltron, RSTHD
  • 3.31% pinky off — fourth place; after Night, Nordrassil, RSTHD

Enthium's SFBs can be neutralized by raking them down vertically:

  • 0.55% total SFBs - 0.34% rakeable SFBs = 0.21% effective SFBs
    • e. (0.14%)
    • ue (0.08%)
    • oa (0.05%)
    • yi (0.03%)
    • a, (0.02%)
    • hm (0.01%)
    • nb (0.01%)

These results were computed with Cyanophage's Layout Analyzer as follows.

Statistics for Enthium from Cyanophage's Layout Analyzer

Category Statistic Enthium Promethium Engrammer Dvorak Colemak-DH QWERTY
Summary Total Word Effort 725.0 732.1 899.5 1185.5 1047.9 2070.6
Summary Effort 418.25 398.09 457.41 769.69 534.99 1258.15
Bigrams Same Finger Bigrams 0.55% 0.58% 0.99% 1.87% 0.91% 4.38%
Bigrams Skip Bigrams (2u) 0.34% 0.36% 0.39% 0.45% 0.49% 1.43%
Bigrams Lat Stretch Bigrams 0.02% 0.24% 0.41% 0.80% 1.27% 4.55%
Bigrams Scissors 0.17% 0.11% 0.36% 0.08% 0.15% 1.46%
Trigrams Alt 37.17% 36.98% 35.62% 39.08% 25.43% 21.38%
Trigrams Alt SFS 4.55% 5.27% 5.93% 5.85% 5.47% 5.42%
Trigrams Roll in 1.56% 1.72% 1.82% 0.28% 1.50% 1.32%
Trigrams Roll out 0.37% 0.29% 0.29% 0.27% 0.98% 1.48%
Trigrams Bigram roll in 28.01% 29.17% 28.14% 23.51% 25.18% 20.38%
Trigrams Bigram roll out 17.08% 14.56% 14.03% 15.14% 21.54% 17.58%
Trigrams Redirect 1.36% 1.53% 2.26% 1.55% 5.33% 6.22%
Trigrams Weak redirect 0.92% 0.87% 0.74% 0.64% 1.09% 0.44%
Trigrams Other 8.97% 9.61% 11.17% 13.68% 13.49% 25.78%
Computed Pinky off 3.31% 4.08% 5.70% 4.13% 0.78% 2.47%

Installation

Linux setup

Legend: QWERTY=white, Engram=yellow, Promethium=green, Enthium=blue, Quirks=pink. Rendering of this layout on a row-staggered keyboard.

Install:

cd linux/
sudo make install
echo Now restart your graphical session.

Activate:

setxkbmap -layout us    -variant enthium         # one layout; no switch
setxkbmap -layout us,us -variant enthium,basic   # dual layout switching

Repair (e.g. whenever a system-wide XKB package upgrade reverts installation):

cd linux/
sudo make reinstall
echo Now restart your graphical session.

Uninstall:

cd linux/
sudo make uninstall
echo Now restart your graphical session.

MacOS setup

Install:

Activate:

Uninstall:

  • Remove the complex modification feature for Enthium that you activated.

  • Optionally remove Karabiner-Elements, which can be done with Homebrew:

    brew uninstall --cask karabiner-elements
    

License

Released under the same terms as Arno's Engram 2.0 keyboard layout's sources:

MIT License

Copyright 2022 Ricard Figueroa https://github.com/rfiga
Copyright 2021 Suraj N. Kurapati https://github.com/sunaku
Copyright 2021 Arno Klein https://github.com/binarybottle

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Like my work? 👍 Please spare a life today as thanks! 🐄🐖🐑🐔🐣🐟✨🙊✌
Why? For 💕 ethics, the 🌎 environment, and 💪 health; see link above. 🙇