forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:qmk/qmk_firmware
* 'master' of github.com:qmk/qmk_firmware: (179 commits) [Keymap] Crkbd/thunderbird2086 (qmk#16973) Suavity Ehan Refactor (qmk#17694) feat(keebwerk): added VIA support keymap for keebwerk nano slider (qmk#16761) FJLabs Solanis Refactor (qmk#17686) [Keyboard] add ProjectCain Relic (qmk#15577) [Keyboard] eHan Keyboard (qmk#15861) Move ins, home and pgup keys to the left (qmk#17690) [Keymap] emp keymap for keebio/iris (qmk#16858) Ignore kbfirmware exports (qmk#17687) [Keyboard] Added TutelPad keyboard (qmk#16975) [Keyboard] Add Chocofly v1 (qmk#17289) KB16-01: correct QMK Configurator key sequence (qmk#17670) Nayeon Community Layout support (qmk#17665) [Keyboard] Fix Tractyl Manuform 4x6 json (qmk#17681) [Keyboard] Readme file correction (qmk#17674) KPrepublic BM80v2 ISO Refactor (qmk#17660) [Keyboard] MechWild BB Steno (qmk#17163) [Keyboard] Modelm101 teensy2 (qmk#16805) Ducky One 2 SF touch-up (qmk#17672) Gentoo & Gentoo Hotswap: correct Configurator key sequence errors (qmk#17668) ...
- Loading branch information
Showing
1,329 changed files
with
55,346 additions
and
9,741 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Secure | ||
|
||
The secure feature aims to prevent unwanted interaction without user intervention. | ||
|
||
?> Secure does **not** currently implement encryption/decryption/etc and should not be a replacement where a strong hardware/software based solution is required. | ||
|
||
### Unlock sequence | ||
|
||
To unlock, the user must perform a set of actions. This can optionally be configured to be multiple keys. | ||
|
||
* While unlocking all keyboard input is ignored | ||
* Incorrect attempts will revert back to the previously locked state | ||
|
||
### Automatic Locking | ||
|
||
Once unlocked, the keyboard will revert back to a locked state after the configured timeout. | ||
The timeout can be refreshed by using the `secure_activity_event` function, for example from one of the various [hooks](custom_quantum_functions.md). | ||
|
||
## Usage | ||
|
||
Add the following to your `rules.mk`: | ||
|
||
```make | ||
SECURE_ENABLE = yes | ||
``` | ||
|
||
## Keycodes | ||
|
||
| Key | Description | | ||
|------------------|--------------------------------------------------------------------------------| | ||
| `SECURE_LOCK` | Revert back to a locked state | | ||
| `SECURE_UNLOCK` | Forces unlock without performing a unlock sequence | | ||
| `SECURE_TOGGLE` | Toggle directly between locked and unlock without performing a unlock sequence | | ||
| `SECURE_REQUEST` | Request that user perform the unlock sequence | | ||
|
||
## Configuration | ||
|
||
| Define | Default | Description | | ||
|-------------------------|----------------|---------------------------------------------------------------------------------| | ||
|`SECURE_UNLOCK_TIMEOUT` | `5000` | Timeout for the user to perform the configured unlock sequence - `0` to disable | | ||
|`SECURE_IDLE_TIMEOUT` | `60000` | Timeout while unlocked before returning to locked - `0` to disable | | ||
|`SECURE_UNLOCK_SEQUENCE` | `{ { 0, 0 } }` | Array of matrix locations describing a sequential sequence of keypresses | | ||
|
||
## Functions | ||
|
||
| Function | Description | | ||
|---------------------------|----------------------------------------------------------------------------| | ||
| `secure_is_locked()` | Check if the device is currently locked | | ||
| `secure_is_unlocking()` | Check if an unlock sequence is currently in progress | | ||
| `secure_is_unlocked()` | Check if the device is currently unlocked | | ||
| `secure_lock()` | Lock down the device | | ||
| `secure_unlock()` | Force unlock the device - bypasses user unlock sequence | | ||
| `secure_request_unlock()` | Begin listening for an unlock sequence | | ||
| `secure_activity_event()` | Flag that user activity has happened and the device should remain unlocked | |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.