This is a brief introduction to the tools needed to maintain a personal fork of ZMK (or QMK or really whatever). It covers:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "source ~/.vimrc | |
| " Find more examples here: https://jb.gg/share-ideavimrc | |
| let mapleader=" " | |
| " Don't use Ex mode, use Q for formatting. | |
| map Q gq | |
| set number relativenumber | |
| set scrolloff=5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {:des "Leader-key layer" | |
| :rules [ | |
| :!leader-layer | |
| [:right_command :right_command nil {:alone [["leader-layer" 1][:noti :leader "leader-key"]] | |
| :delayed {:invoked [["leader-layer" 0][:noti :leader]]} | |
| :params {:delay 2000}}] | |
| :leader-layer | |
| [:s [["leader-layer-s" 1]["leader-layer" 0][:noti :leader "leader-key s"]]] | |
| [{:any :key_code} [["leader-layer" 0][:noti :leader]]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {:des "Leader-key layer" | |
| :rules [ | |
| :!leader-layer | |
| [:right_command :right_command nil {:alone [["leader-layer" 1][:noti :leader "leader-key"]] | |
| :delayed {:invoked [["leader-layer" 0][:noti :leader]]} | |
| :params {:delay 2000}}] | |
| :leader-layer | |
| [:s [["leader-layer-s" 1]["leader-layer" 0][:noti :leader "leader-key s"]]] | |
| [{:any :key_code} [["leader-layer" 0][:noti :leader]]] |
Gavin Sinclair, January 2022
I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.
The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let mapleader=" " | |
| """ Plugins -------------------------------- | |
| set surround | |
| set multiple-cursors | |
| set commentary | |
| set argtextobj | |
| set easymotion | |
| set textobj-entire | |
| set ReplaceWithRegister |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn | |
| ;; Feel free to raise github issues in that repo, if you have questions/comments/edits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk | |
| index 18f8b0bbfc..4ef3e230e4 100644 | |
| --- a/builddefs/common_features.mk | |
| +++ b/builddefs/common_features.mk | |
| @@ -878,6 +878,10 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes) | |
| endif | |
| endif | |
| +ifeq ($(strip $(APPLE_FN_ENABLE)), yes) | |
| + OPT_DEFS += -DAPPLE_FN_ENABLE |
NewerOlder