-
-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Adding garyjzhao's Iris keymap #6980
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,18 @@ | ||
# Gary's Iris Layout | ||
|
||
My personal keymap for my Iris. | ||
|
||
Copyright 2019 Gary @garyjzhao | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 2 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
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,12 @@ | ||
#pragma once | ||
|
||
/* Use I2C or Serial, not both */ | ||
|
||
#define USE_SERIAL | ||
// #define USE_I2C | ||
|
||
/* Select hand configuration */ | ||
|
||
#define MASTER_LEFT | ||
// #define MASTER_RIGHT | ||
// #define EE_HANDS |
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,47 @@ | ||
#include "gary.h" | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[_QWERTY] = LAYOUT_kc( | ||
//,----+----+----+----+----+----. ,----+----+----+----+----+----. | ||
ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC, | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
TAB , Q , W , E , R , T , Y , U , I , O , P ,DEL , | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
RASE, A , S , D , F , G , H , J , K , L ,SCLN,QUOT, | ||
//|----+----+----+---- +----+----+----. ,----|----+----+----+----+----+----| | ||
LSFT, Z , X , C , V , B ,NEXT, FULL , N , M ,COMM,DOT ,SLSH,SFTENT, | ||
//`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----' | ||
LGUI,LOWR,SPC , GARY, ENT,LALT | ||
// `----+----+----' `----+----+----' | ||
), | ||
|
||
|
||
[_LOWER] = LAYOUT_kc( | ||
//,----+----+----+----+----+----. ,----+----+----+----+----+----. | ||
GRV ,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC, | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
CLTB, ,CNTR,UPLF,UPRG, , , ,PLUS,LBRC,RBRC,OPASS, | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
,LHLF,RHLF,DNLF,DNRG, , , ,MINS, , ,PIPE, | ||
//|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|` | ||
, , ,CTLC, , , , , , , ,EQL , ,UNDS , | ||
//`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----' | ||
, ,DEL , BSPC , , | ||
// `----+----+----' `----+----+----' | ||
), | ||
|
||
[_RAISE] = LAYOUT_kc( | ||
//,----+----+----+----+----+----. ,----+----+----+----+----+----. | ||
TILD, F1 , F2 , F3 ,SHOT, F5 , F6 , F7 , F8 , F9 ,F10 ,F11 , | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
,MPRV,MPLY,MNXT, , , ,PGUP, UP ,PGDN, , , | ||
//|----+----+----+----+----+----| |----+----+----+----+----+----| | ||
, ,VOLD,VOLU,MUTE, , ,LEFT,DOWN,RGHT, , , | ||
//|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----| | ||
, , , , , , , RST, , , , , , , | ||
//`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----' | ||
,LALT, , , , | ||
// `----+----+----' `----+----+----' | ||
), | ||
}; |
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,2 @@ | ||
RGBLIGHT_ENABLE = no | ||
EXTRAKEY_ENABLE = yes |
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 @@ | ||
#include "gary.h" |
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,43 @@ | ||
#include QMK_KEYBOARD_H | ||
|
||
#pragma once | ||
#define USE_SERIAL | ||
#define MASTER_LEFT | ||
|
||
// Layers | ||
// #define BASE 0 // Base layer | ||
// #define FCTN 4 // Function | ||
#define _QWERTY 0 | ||
#define _LOWER 1 | ||
#define _RAISE 2 | ||
|
||
enum custom_keycodes { | ||
QWERTY = SAFE_RANGE, | ||
LOWER, | ||
RAISE, | ||
}; | ||
|
||
#define KC_RST RESET | ||
#define KC_ KC_TRNS | ||
|
||
#define KC_LOWR MO(_LOWER) // Lower layer | ||
#define KC_RASE MO(_RAISE) // Raise layer | ||
#define KC_CTLC C(KC_C) | ||
#define KC_CLTB C(KC_TAB) | ||
#define KC_OPASS G(KC_BSLS) // GUI + Back Slash | ||
#define KC_GARY LT(_RAISE, KC_SPC) // Hold for Raise, Tap for Space | ||
|
||
#define KC_SHOT SCMD(C(KC_4)) // Screenshot to Paste | ||
|
||
// Window Management | ||
#define KC_FULL A(G(KC_F)) // Full Screen | ||
#define KC_CNTR A(G(KC_C)) // Center | ||
#define KC_LHLF A(G(KC_LEFT)) // Left Half | ||
#define KC_RHLF A(G(KC_RGHT)) // Right Half | ||
|
||
#define KC_UPLF C(G(KC_LEFT)) // Upper Left | ||
#define KC_UPRG C(G(KC_RGHT)) // Upper Right | ||
#define KC_DNLF S(C(G(KC_LEFT))) // Lower Left | ||
#define KC_DNRG S(C(G(KC_RGHT))) // Lower Right | ||
|
||
#define KC_NEXT LCAG(KC_LEFT) // Move the Window to next display |
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,14 @@ | ||
Copyright 2019 Gary @garyjzhao | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 2 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
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 @@ | ||
SRC += gary.c |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout macros that automatically prepend
KC_
are discouraged, as they do not play well with the Configurator, and make some of the more advanced keycodes such asMO()
andLT()
harder to use, since you need to manually define aliases beginning withKC_
.As this is a personal keymap, it doesn't matter so much, but in future, these layouts will probably be going away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, this is good to know. Thanks for the heads up.