Skip to content
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

Normacos update #3141

Merged
merged 26 commits into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f018784
Cheers let's split keymap
jorge-porras Jan 9, 2018
acd034e
Merge branch 'master' of https://github.com/qmk/qmk_firmware
jorge-porras Jan 9, 2018
9f2b52f
fixed typo on norman layer of cheers keymap for let's split
jorge-porras Feb 13, 2018
b080986
Merge branch 'master' of https://github.com/qmk/qmk_firmware
jorge-porras Feb 13, 2018
7ab661a
fixed right handed mappings for home row
jorge-porras Feb 13, 2018
cab7437
cheers keymap for let's split redefinition
jorge-porras Apr 3, 2018
b7d5eb6
updated Cheers keymap for let's split
jorge-porras Apr 5, 2018
6da1dce
cheers keymap for let's split updated with some terminal macros
jorge-porras Apr 5, 2018
5005a2d
renamed cheers let's split keymap to a more appropriate normacos
jorge-porras Apr 6, 2018
611e1ff
updated normacos keymap doc / removed non functional keys
jorge-porras Apr 6, 2018
e5065b9
Merge remote-tracking branch 'upstream/master'
jorge-porras Apr 6, 2018
bddf64e
reset let's split rules to default values
jorge-porras Apr 6, 2018
6d99ac1
added more spotlight search macros
jorge-porras Apr 6, 2018
e695155
Merge pull request #1 from ArrogantBeggar/normacos
ArrogantBeggar Apr 6, 2018
1180be6
Merge branch 'master' of https://github.com/qmk/qmk_firmware
jorge-porras Apr 6, 2018
a4383c7
normalized keymap comments
jorge-porras Apr 6, 2018
3f9c9db
Moved numpad on lower layer
ArrogantBeggar Apr 6, 2018
99b5372
Merge pull request #2 from ArrogantBeggar/normacos
ArrogantBeggar Apr 6, 2018
9d9c826
fixed normacos for let's split merge conflicts to use latest QMK changes
ArrogantBeggar Jun 4, 2018
b0774ad
updated normacos layout and fixed some readme typos
ArrogantBeggar Jun 4, 2018
fdd3ee9
Merge branch 'master' of https://github.com/qmk/qmk_firmware
ArrogantBeggar Jun 7, 2018
f640f77
Merge remote-tracking branch 'origin/master' into normacos
ArrogantBeggar Jun 7, 2018
dc82212
removed leftover merge diff
ArrogantBeggar Jun 7, 2018
0d8bdbc
added waits to macros that make use of SEND_STRING
ArrogantBeggar Jun 7, 2018
1470b68
fixed wrong waits on macros that use SEND_STRING
ArrogantBeggar Jun 7, 2018
768f87a
normalized macro comments after adding waits
ArrogantBeggar Jun 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 42 additions & 18 deletions keyboards/lets_split/keymaps/normacos/keymap.c
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -18,7 +17,7 @@ enum custom_keycodes {
LOWER,
RAISE,
ADJUST,
SH_SUDO,
SH_LOG,
SH_GOUP,
SH_TERM,
SPOT,
Expand Down Expand Up @@ -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|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
Expand All @@ -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, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
Expand Down Expand Up @@ -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) {
Expand Down
11 changes: 6 additions & 5 deletions keyboards/lets_split/keymaps/normacos/readme.md
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -13,17 +13,18 @@ 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
- ClrEnd clears Terminal line from cursor up to end of line
- 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.


Expand Down Expand Up @@ -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|
|------+------+------+------+------+------| |------+------+------+------+------+------|
Expand Down