Normacos update (#3141)

* Cheers let's split keymap

* fixed typo on norman layer of cheers keymap for let's split

* fixed right handed mappings for home row

* cheers keymap for let's split redefinition

* updated Cheers keymap for let's split

* cheers keymap for let's split updated with some terminal macros

* renamed cheers let's split keymap to a more appropriate normacos

* updated normacos keymap doc / removed non functional keys

* reset let's split rules to default values

* added more spotlight search macros

* normalized keymap comments

* Moved numpad on lower layer

* updated normacos layout and fixed some readme typos

* removed leftover merge diff

* added waits to macros that make use of SEND_STRING

* fixed wrong waits on macros that use SEND_STRING

* normalized macro comments after adding waits
pull/3147/head
Jorge Porras 7 years ago committed by Drashna Jaelre
parent e3c10a73ac
commit 815dab6275

@ -1,6 +1,5 @@
#include QMK_KEYBOARD_H
extern keymap_config_t keymap_config;
// Each layer gets a name for readability, which is then used in the keymap matrix below.
@ -18,7 +17,7 @@ enum custom_keycodes {
LOWER,
RAISE,
ADJUST,
SH_SUDO,
SH_LOG,
SH_GOUP,
SH_TERM,
SPOT,
@ -86,7 +85,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* ,-----------------------------------------. ,-----------------------------------------.
* | Tab | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* |CtlEsc| Sudo | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
* |CtlEsc| Log | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Shift|ClrHom|ClrEnd|ShHome| ShEnd|Search| | Play | Mute | VolDn| VolUp|ScnSht|SftEnt|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
@ -95,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_RAISE] = LAYOUT_ortho_4x12( \
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
_______, SH_SUDO, SH_GOUP, SLACK, SH_TERM, OUTLOOK, KC_EQL, KC_MINS, KC_BSLS, KC_LBRC, KC_RBRC, KC_GRV, \
_______, SH_LOG, SH_GOUP, SLACK, SH_TERM, OUTLOOK, KC_EQL, KC_MINS, KC_BSLS, KC_LBRC, KC_RBRC, KC_GRV, \
_______, SH_CLRH, SH_CLRE, SH_HOME, SH_END, SH_RSCH, KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, SCN_SHT, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
@ -149,26 +148,51 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case ADJUST:
layer_on(_ADJUST);
return false;
case SH_SUDO:
SEND_STRING("sudo !!"SS_TAP(X_ENTER)); // Elevate last command
case SH_LOG: // Open Jira log work window
SEND_STRING(SS_TAP(X_DOT));
_delay_ms(100);
SEND_STRING("log work");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case SH_GOUP: // Go up a directory
SEND_STRING("cd .."SS_TAP(X_ENTER));
return false;
case SH_GOUP:
SEND_STRING("cd .."SS_TAP(X_ENTER)); // Go up a directory
case SH_TERM: // Open Terminal
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
_delay_ms(100);
SEND_STRING("terminal");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case SH_TERM:
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"terminal"SS_TAP(X_ENTER)); // Open Terminal
case SPOT: // Open Spotify
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
_delay_ms(100);
SEND_STRING("spotify app");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case SPOT:
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"spotify app"SS_TAP(X_ENTER)); // Open Spotify
case SLACK: // Open Slack
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
_delay_ms(100);
SEND_STRING("slack");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case SLACK:
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"slack"SS_TAP(X_ENTER)); // Open Slack
case OUTLOOK: // Open MS Outlook
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
_delay_ms(100);
SEND_STRING("outlook");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case OUTLOOK:
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"outlook"SS_TAP(X_ENTER)); // Open Outlook
case CHROME: // Open Chrome
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
_delay_ms(100);
SEND_STRING("chrome");
_delay_ms(100);
SEND_STRING(SS_TAP(X_ENTER));
return false;
case CHROME:
SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"chrome"SS_TAP(X_ENTER)); // Open Chrome
}
} else {
switch(keycode) {

@ -1,9 +1,9 @@
# normacos
This keymap was designed especifically to be used on a MacOS High Sierra system with constant use of the Terminal, as it includes a multitude of macros for both the terminal as well as Spotlight Search.
This keymap was designed specifically to be used on a MacOS High Sierra system with constant use of the Terminal, as it includes a multitude of macros for both the terminal as well as Spotlight Search.
Norman keyboard layout [info page.](https://normanlayout.info/)
Some Norman layout keys were placed on different layers and different positions based on available space.
Some Norman layout keys were placed on different layers and different positions based on available space and preference.
Macros:
@ -13,7 +13,7 @@ Macros:
- Slack opens Slack through Spotlight Search
- Term opens Terminal through Spotlight Search
- Spot opens Spotify through Spotlight Search
- Chrome opesn Chrome through Spotlight Search
- Chrome opens Chrome through Spotlight Search
- OutLk opens Microsoft Outlook through Spotlight Search
- ScnSht allows the user to take a screenshot of a selected portion of the screen
- ClrHom clears Terminal line from beginning of line up to cursor
@ -21,9 +21,10 @@ Macros:
- ShHome moves Terminal cursor to beginning of line
- ShEnd moves Terminal cursor to end of line
- Search activates Terminal Reverse Search Command History
- Sudo elevates last Terminal command
- Log opens the 'Log Work' modal on Atlassian's Jira web client
- UpDir moves working directory to its parent
All macros that make use of the SEND_STRING command have a 100 millisecond wait before and after "writing" to let the computer/OS/app catch up.
Any and all empty keys shown below are will be set in the future, and do nothing as of the time of this writing.
@ -62,7 +63,7 @@ Any and all empty keys shown below are will be set in the future, and do nothing
,-----------------------------------------. ,-----------------------------------------.
| Tab | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
|------+------+------+------+------+------| |------+------+------+------+------+------|
|CtlEsc| Sudo | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
|CtlEsc| Log | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
|------+------+------+------+------+------| |------+------+------+------+------+------|
| Shift|ClrHom|ClrEnd|ShHome| ShEnd|Search| | Play | Mute | VolDn| VolUp|ScnSht|SftEnt|
|------+------+------+------+------+------| |------+------+------+------+------+------|

Loading…
Cancel
Save