-
Follow QMK setup guide to clone
qmk_firmware -
Configure
qmk-cli:$ qmk config user.keyboard=kbdfans/kbd75/rev1 $ qmk config user.keymap=minimal52 $ qmk config user.qmk_home=/path/to/qmk
-
Clone this gist to
/path/to/qmk/keyboards/kbdfans/kbd75/keymaps/minimal52/
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
| const trafficLight = Machine({ | |
| id: 'trafficLight', | |
| initial: 'red', | |
| states: { | |
| red: { | |
| on: { | |
| TIMER: 'amber' | |
| } | |
| }, | |
| amber: { |
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
| const docVideoFlow = Machine({ | |
| id: 'docVideo', | |
| type: 'parallel', | |
| states: { | |
| recordState: { | |
| initial: 'hideButton', | |
| states: { | |
| hideButton: { | |
| on: { | |
| NEXT_RECORD_STATE: 'showButton' |
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
| export type SystemTypes = 'os' | 'browser'; | |
| export type SystemAttribute = { | |
| codeName: string; | |
| name: string; | |
| versionPrefix: string; | |
| }; | |
| export type SystemInfo = { | |
| name: string; |
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
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| readonly RED=$(tput setaf 1) | |
| readonly GREEN=$(tput setaf 2) | |
| readonly YELLOW=$(tput setaf 3) | |
| readonly NORMAL=$(tput sgr0) | |
| readonly COMMAND="qrgpg" | |
| SUB_COMMAND="" |
NewerOlder