Skip to content

Add a layout for the Keebio Quefrency #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/quefrency.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// the point of this file is to be a sort of DSL for constructing keycaps.
// when you create a method chain you are just changing the parameters
// key.scad uses, it doesn't generate anything itself until the end. This
// lets it remain easy to use key.scad like before (except without key profiles)
// without having to rely on this file. Unfortunately that means setting tons of
// special variables, but that's a limitation of SCAD we have to work around

include <./includes.scad>

quefrency_default("cherry") dishless() tined_stem_support(0) key();
x
2 changes: 2 additions & 0 deletions src/key_layouts.scad
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ include <layouts/dactyl_manuform/4x6.scad>
include <layouts/dactyl_manuform/4x6_legends.scad>

include <layouts/plate.scad>

include <layouts/quefrency/default.scad>
21 changes: 21 additions & 0 deletions src/layouts/quefrency/default.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include <../layout.scad>

quefrency_default_layout = [
[1,1, -1, 1,1,1,1,1,1,1, -1, 1,1,1,1,1,1,2,1],
[1,1, -1, 1.5,1,1,1,1,1,-1, 1,1,1,1,1,1,1,1.5,1],
[1,1, -1, 1.75,1,1,1,1,1,-1, 1,1,1,1,1,1,2.25,1],
[1,1, -1, 2.25,1,1,1,1,1,-1, 1,1,1,1,1,1.75,1,1],
[1,1, -1, 1.25,1.25,1.25,1.25,2.25, -1, 2.75, 1,1,1,1,1,1]
];

quefrency_legends = [
["F1", "F2", "", "", "1", "2", "3", "4", "5", "6", "", "7", "8", "9", "0", "-", "=", "", "F11"],
["F3", "F4", "", "tab", "q", "w", "e", "r", "t", "", "y", "u", "i", "o", "p", "[", "]", "\\", "F12"],
["F5", "F6", "", "caps", "a", "s", "d", "f", "g", "", "h", "j", "k", "l", ";", "'", "", "F13"],
["F7", "F8", "", "", "z", "x", "c", "v", "b", "", "n", "m", ",", ".", "/", "", "", "F14"],
["F9", "F10", "", "ctl", "opt", "cmd", "fn", "", "", "", "cmd", "opt", "ctl", "", "", ""],
];

module quefrency_default(profile) {
layout(quefrency_default_layout, profile, quefrency_legends, row_sculpting_offset=1) children();
}