From fa7e64b5baa4dd48247d4e1fe27ad0e74dbc9a6f Mon Sep 17 00:00:00 2001 From: Leo Lou Date: Sat, 21 Apr 2018 10:02:39 +0900 Subject: [PATCH] Add boolean to toggle side nubs --- src/dactyl_keyboard/dactyl.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj index 67c2bc7..b7aa514 100644 --- a/src/dactyl_keyboard/dactyl.clj +++ b/src/dactyl_keyboard/dactyl.clj @@ -50,6 +50,8 @@ (def fixed-z [12.1 8.3 0 5 10.7 14.5 17.5]) (def fixed-tenting (deg2rad 0)) +(def create-side-nubs? true) ; Cherry MX and Gateron switches can be used with side nubs. If you use other switches such as Kailh, you should set this as false + ;;;;;;;;;;;;;;;;;;;;;;; ;; General variables ;; ;;;;;;;;;;;;;;;;;;;;;;; @@ -87,7 +89,7 @@ (translate [(+ (/ 1.5 2) (/ keyswitch-width 2)) 0 (/ plate-thickness 2)])))) - plate-half (union top-wall left-wall (with-fn 100 side-nub))] + plate-half (union top-wall left-wall (if create-side-nubs? (with-fn 100 side-nub)))] (union plate-half (->> plate-half (mirror [1 0 0])